Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 25
Trades: 0
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
 
 
Register now for full access!
Old 11-30-2006, 04:08 AM Re: Dropdown Menu
Novice Talker

Posts: 14
Name: rakesh
Trades: 0
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, 01:24 PM Re: Dropdown Menu
Novice Talker

Posts: 14
Name: rakesh
Trades: 0
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, 05:49 PM Re: Dropdown Menu
Average Talker

Posts: 25
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.13232 seconds with 12 queries