Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 22nd, 2004, 02:47 PM
squirrelj squirrelj is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 322 squirrelj User rank is Corporal (100 - 500 Reputation Level)squirrelj User rank is Corporal (100 - 500 Reputation Level)squirrelj User rank is Corporal (100 - 500 Reputation Level)squirrelj User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 21 h 18 m 52 sec
Reputation Power: 7
Drop Down Menu

I am using this code to produce a drop down menu however would like it to go vertically down my page and the drop down menu to come out at the side. How do i do this and is it possible. here is the code i am using

<html>
<head>
<title>Figby Industries, Inc.</title>
<script language="JavaScript" src="menu.js">
</script>
</head>
<body style="margin-left:0; margin-top:0;">
<table border="0" cellpadding="4">
<tr>
<td ID="menu-products" width="100" bgcolor="silver"
onMouseOver="Menu('products');" onMouseOut="Timeout('products');">
<a href="products.html"><b>Products</b></a>
</td>
<td ID="menu-sales" width="100" bgcolor="Silver"
onMouseOver="Menu('sales');" onMouseOut="Timeout('sales');">
<a href="sales.html"><b>Sales</b></a>

<td ID="menu-service" width="100" bgcolor="Silver"
onMouseOver="Menu('service');" onMouseOut="Timeout('service');">
<a href="service.html"><b>Service</b></a>
</td>
<td ID="menu-staff" width="100" bgcolor="Silver"
onMouseOver="Menu('staff');" onMouseOut="Timeout('staff');">
<a href="staff.html"><b>Staff</b></a>
</td>
<td ID="menu-jobs" width="100" bgcolor="Silver"
onMouseOver="Menu('jobs');" onMouseOut="Timeout('jobs');">
<a href="jobs.html"><b>Employment</b></a>
</td>
</tr>
</table>
<div ID="products" STYLE="position:absolute; visibility: hidden">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr> <td width="100%" ID="p1"
onMouseOver="Highlight('products','p1');"
onMouseOut="UnHighlight('products','p1');">
<a href="equip.html">Equipment</a></td></tr>
<tr> <td width="100%" ID="p2"
onMouseOver="Highlight('products','p2');"
onMouseOut="UnHighlight('products','p2');">
<a href="supplies.html">Supplies</a></td></tr>
</table>
</div>
<div ID="sales" STYLE="position:absolute; visibility: hidden">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr> <td width="100%" ID="s1"
onMouseOver="Highlight('sales','s1');"
onMouseOut="UnHighlight('sales','s1');">
<a href="prices.html">Price List</a></td></tr>
<tr> <td width="100%" ID="s2"
onMouseOver="Highlight('sales','s2');"
onMouseOut="UnHighlight('sales','s2');">
<a href="order.html">Order Form</a></td></tr>
<tr> <td width="100%" ID="s3"
onMouseOver="Highlight('sales','s3');"
onMouseOut="UnHighlight('sales','s3');">
<a href="specials.html">Specials</a></td></tr>
</table>
</div>
<div ID="service" STYLE="position:absolute; visibility: hidden">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr> <td width="100%" ID="r1"
onMouseOver="Highlight('service','r1');"
onMouseOut="UnHighlight('service','r1');">
<a href="support.html">Support</a></td></tr>
<tr> <td width="100%" ID="r2"
onMouseOver="Highlight('service','r2');"
onMouseOut="UnHighlight('service','r2');">
<a href="cservice.html">Contact Us</a></td></tr>
</table>
</div>
<div ID="staff" STYLE="position:absolute; visibility: hidden">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr> <td width="100%" ID="t1"
onMouseOver="Highlight('staff','t1');"
onMouseOut="UnHighlight('staff','t1');">
<a href="staff.html">Meet the Staff</a></td></tr>
</table>
</div>
<div ID="jobs" STYLE="position:absolute; visibility: hidden">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr> <td width="100%" ID="j1"
onMouseOver="Highlight('jobs','j1');"
onMouseOut="UnHighlight('jobs','j1');">
<a href="jobs.html">Job Listings</a></td></tr>
</table>
</div>
<img align="center" src="logo.gif" width="486" height="180" border="0" alt=""><br>
<h1>Welcome to Figby Industries!</h1>
<p>Welcome! This is the home page of Figby Industries,
your source for all sorts of imaginary products. Follow the links
below or use the menu above to learn more about our company
and our products.
</p>
<ul>
<li><a href="products.html"><b>Products</b></a></li>
<li><a href="sales.html"><b>Sales</b></a></li>
<li><a href="service.html"><b>Service</b></a></li>
<li><a href="staff.html"><b>Staff</b></a></li>
<li><a href="jobs.html"><b>Employment</b></a></li>
</ul>
</body>
</html>

Reply With Quote
  #2  
Old May 22nd, 2004, 02:50 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 15th Plane (12000 - 12499 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 12,025 Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 12 h 15 m 49 sec
Reputation Power: 628
You need to post the code in the menu.js file, because that is the code that is controlling the menu.
Comments on this post
squirrelj disagrees!

Reply With Quote
  #3  
Old May 22nd, 2004, 02:56 PM
squirrelj squirrelj is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 322 squirrelj User rank is Corporal (100 - 500 Reputation Level)squirrelj User rank is Corporal (100 - 500 Reputation Level)squirrelj User rank is Corporal (100 - 500 Reputation Level)squirrelj User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 21 h 18 m 52 sec
Reputation Power: 7
var inmenu=false;
var lastmenu=0;
function Menu(current) {
if (!document.getElementById) return;
inmenu=true;
oldmenu=lastmenu;
lastmenu=current;
if (oldmenu) Erase(oldmenu);
m=document.getElementById("menu-" + current);
box=document.getElementById(current);
box.style.left= m.offsetLeft;
box.style.top= m.offsetTop + m.offsetHeight;
box.style.visibility="visible";
m.style.backgroundColor="aqua";
box.style.backgroundColor="aqua";
box.style.width="108px";
}
function Erase(current) {
if (!document.getElementById) return;
if (inmenu && lastmenu==current) {
return;
}
m=document.getElementById("menu-" + current);
box=document.getElementById(current);
box.style.visibility="hidden";
m.style.backgroundColor="silver";
}
function Timeout(current) {
inmenu=false;
window.setTimeout("Erase('" + current + "');",500);
}
function Highlight(menu,item) {
if (!document.getElementById) return;
inmenu=true;
lastmenu=menu;
obj=document.getElementById(item);
obj.style.backgroundColor="Silver";
}
function UnHighlight(menu,item) {
if (!document.getElementById) return;
Timeout(menu);
obj=document.getElementById(item);
obj.style.backgroundColor="Aqua";
}

Reply With Quote
  #4  
Old May 22nd, 2004, 04:03 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 15th Plane (12000 - 12499 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 12,025 Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 12 h 15 m 49 sec
Reputation Power: 628
I looked at the menu.js code, but didn't see how to modify the script to have it slide out horizonally.

Below is a link to some other free javascript menus, that may better suit the layout you are trying to achieve.

Javascript Menus

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Drop Down Menu


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek