Reply
Dropdown Menu
Old 11-26-2006, 08:57 PM Dropdown Menu
Average Talker

Posts: 25
I want to add a script to an image on a website, so that when a person puts their cursor on it, a menu with different links will pop up under it.

It doesn’t necessarily have to be done in JavaScript, if there is a better way.

Also I want the links to open in new windows with specific sizes.

If anyone has a good way to do this let me know.

Thanks in advance.
Magiccupcake is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-30-2006, 03:08 AM Re: Dropdown Menu
Novice Talker

Posts: 14
Name: rakesh
Actually im looking for the same thing too soo please help out here.....thanks magiccupcake u took me off the trouble from starting a new thread
rash219 is offline
Reply With Quote
View Public Profile
 
Old 11-30-2006, 12:24 PM Re: Dropdown Menu
Novice Talker

Posts: 14
Name: rakesh
Quote:
Originally Posted by rash219 View Post
Actually im looking for the same thing too soo please help out here.....thanks magiccupcake u took me off the trouble from starting a new thread
hey guys i have been lookin all over fro the code jus tell if this will work

======================================

in main html............
<ul id="nav">
<li>Sunfishes
<ul>
<li><a href="">Blackbanded sunfish</a></li>
<li><a href="">Shadow bass</a></li>
<li><a href="">Ozark bass</a></li>
<li><a href="">White crappie</a></li>
</ul>
</li>

in css......

ul {
padding: 0;
margin: 0;
list-style: none;
}
li {
float: left;
position: relative;
width: 10em;
}
li:hover ul { display: block; }
li:hover ul, li.over ul{ display: block; }
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;
rash219 is offline
Reply With Quote
View Public Profile
 
Old 11-30-2006, 04:49 PM Re: Dropdown Menu
Average Talker

Posts: 25
I am not exactly sure what you are going for there. But I tried it and I don't think it really did what you wanted.
Magiccupcake is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dropdown Menu
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11493 seconds with 12 queries