| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jun 2004 Location: Ontario , Canada
Posts: 1,103
![]() ![]() ![]() | Link Drop Down Hey everyone, I want to know howto make a dropdown list where you click a link (hyperlinck) and a list of more links apear. Just like above ^ (NP$ store, Active Threads, Live Chat, Domain Services, and quick links all have the exact thing i want) how can i do this?
__________________ "Dont argue with an idiot, he will just drag you down to his level and beat you with expeirence. Dont argue with me, ill drag you down to my level and beat you with a baseball bat" :D |
| |
| | #2 (permalink) |
| Professional Monkey Join Date: Jul 2005 Location: Escaped from the zoo
Posts: 907
![]() ![]() |
__________________ Webmaster Words |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Jun 2004 Location: Ontario , Canada
Posts: 1,103
![]() ![]() ![]() | no thats not what i need.. I want it where you click a link, not select one from a dropdown list.
__________________ "Dont argue with an idiot, he will just drag you down to his level and beat you with expeirence. Dont argue with me, ill drag you down to my level and beat you with a baseball bat" :D |
| |
| | #5 (permalink) |
| NamePros Member Join Date: May 2005 Location: Canada
Posts: 171
![]() | I believe you're looking for the same sort of menu as this forum has. It uses dhtml i believe. There many scripts out there for it. I've used the ultimate Drop Down Menu before and really liked it. Give it a try, here You can see it in action at the address in my signature.
__________________ www.twocrazyducks.com - Two Crazy Ducks Web Hosting - Lethbridge, Alberta www.lasara.org - Lethbridge Area Search and Rescue themuellers.ca - The Mueller Family Webpage jobsitestructures.com - Job Site Structures Ltd. - for all your site office and accomodation needs! |
| |
| | THREAD STARTER #6 (permalink) |
| Senior Member Join Date: Jun 2004 Location: Ontario , Canada
Posts: 1,103
![]() ![]() ![]() | i dont see why everyone is giving me the wrong info click "NP$ Store"Thats exactly what i want, nothing els.
__________________ "Dont argue with an idiot, he will just drag you down to his level and beat you with expeirence. Dont argue with me, ill drag you down to my level and beat you with a baseball bat" :D |
| |
| | THREAD STARTER #8 (permalink) |
| Senior Member Join Date: Jun 2004 Location: Ontario , Canada
Posts: 1,103
![]() ![]() ![]() | Im too lazy to look through thousands of tutorials ;(
__________________ "Dont argue with an idiot, he will just drag you down to his level and beat you with expeirence. Dont argue with me, ill drag you down to my level and beat you with a baseball bat" :D |
| |
| | THREAD STARTER #10 (permalink) |
| Senior Member Join Date: Jun 2004 Location: Ontario , Canada
Posts: 1,103
![]() ![]() ![]() | same thing
__________________ "Dont argue with an idiot, he will just drag you down to his level and beat you with expeirence. Dont argue with me, ill drag you down to my level and beat you with a baseball bat" :D |
| |
| | #11 (permalink) |
| Pro Coder & Designer Join Date: Apr 2005 Location: Netherlands
Posts: 967
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | mike i can make exactly the same example: www.npgeek.com click on NP$ Auction. with the same effect aswell if needed ![]() btw its not free
__________________ aween web development |
| |
| | #12 (permalink) |
| NamePros Member Join Date: Dec 2003 Location: Warrington, UK
Posts: 174
![]() | search google for Sothink DHTML Menu Maker
__________________ www.Scene-Power.com - ***YOUR DEDICATED SERVER SOLUTIONS*** |
| |
| | #13 (permalink) |
| Senior Member Join Date: Apr 2005 Location: Joliet, Illinois
Posts: 1,177
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I will make you a simple little code, easily editable... Code: <!-- Original code by RageD -->
<p align=left><font color=blue>Site Navagation</font><!-- Style_sheet --><style type="text/css" title="drop_menu">
.Main_menu {
border: 1px solid #ffffff;
background-color: #000099;
padding-left: 3px;
line-height: 100%;
width: 150;
cursor: hand;
}
.Main_menu_over {
border: 1px solid #ffffff;
background-color: green;
padding-left: 3px;
line-height: 100%;
width: 150;
cursor: hand;
}
.Sub_menu {
border: 1px solid #ffffff;
background-color: #ffffff;
padding-left: 10px;
line-height: 100%;
width: 150;
cursor: hand;
}
.Sub_menu_over {
border: 1px solid #ffffff;
background-color: #ffffff;
padding-left: 10px;
line-height: 100%;
width: 150;
cursor: hand;
}
a.main_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a:visited.main_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a:hover.main_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a.sub_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a:visited.sub_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a:hover.sub_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
</style><!-- Script_code --><script language="JavaScript" type="text/javascript">
<!-- //
function toggle_dropmenu(id){
count = 1;
while (count <= 10){
var step = id+'_'+count;
if (document.getElementById(step)){
document.getElementById(step).style.display = (document.getElementById(step).style.display == 'block') ? 'none' : 'block';
}
count++;
}
}
function roll_dropmenu(id, roll_class){
document.getElementById(id).className = roll_class;
}
//-->
</script><!-- Menu_Code_stylesheet -->
<div id="Main_1" class="Main_menu" onmouseover="roll_dropmenu('Main_1','Main_menu_over')" onmouseout="roll_dropmenu('Main_1','Main_menu')">
<a href="javascript:void(0)" id="main_text_1" class="main_text" onClick="toggle_dropmenu('sub1')">Navagation</a>
</div>
<div id="sub1_1" class="Sub_menu" onmouseover="roll_dropmenu('sub1_1','Sub_menu_over')" onmouseout="roll_dropmenu('sub1_1','Sub_menu')" style="display: none">
<a href="blah.com" class="sub_text" target="_self">Blah</a><br />
</div>
<div id="sub1_2" class="Sub_menu" onmouseover="roll_dropmenu('sub1_2','Sub_menu_over')" onmouseout="roll_dropmenu('sub1_2','Sub_menu')" style="display: none">
<a href="blah.com" class="sub_text" target="_self">blah</a><br />
</div>
<div id="sub1_3" class="Sub_menu" onmouseover="roll_dropmenu('sub1_3','Sub_menu_over')" onmouseout="roll_dropmenu('sub1_3','Sub_menu')" style="display: none">
<a href="blah.com class="sub_text" target="_self">blah</a><br />
</div>
<div id="sub1_4" class="Sub_menu" onmouseover="roll_dropmenu('sub1_4','Sub_menu_over')" onmouseout="roll_dropmenu('sub1_4','Sub_menu')" style="display: none">
<a href="blah.com" class="sub_text" target="_self">Blah</a><br />
</div>
<div id="sub1_5" class="Sub_menu" onmouseover="roll_dropmenu('sub1_5','Sub_menu_over')" onmouseout="roll_dropmenu('sub1_5','Sub_menu')" style="display: none">
<a href="blah.com" class="sub_text" target="_self">Blah</a><br />
</div>
<div id="sub1_6" class="Sub_menu" onmouseover="roll_dropmenu('sub1_6','Sub_menu_over')" onmouseout="roll_dropmenu('sub1_6','Sub_menu')" style="display: none">
<a href="blah" class="sub_text" target="_self">Blah</a><br />
</div>
<div id="Main_2" class="Main_menu" onmouseover="roll_dropmenu('Main_2','Main_menu_over')" onmouseout="roll_dropmenu('Main_2','Main_menu')">
<a href="javascript:void(0)" id="main_text_2" class="main_text" onClick="toggle_dropmenu('sub2')">Blah</a>
</div>
<div id="sub2_1" class="Sub_menu" onmouseover="roll_dropmenu('sub2_1','Sub_menu_over')" onmouseout="roll_dropmenu('sub2_1','Sub_menu')" style="display: none">
<a href="http://blah.com" class="sub_text" target="_self">blah</a><br />
</div>
<div id="sub2_2" class="Sub_menu" onmouseover="roll_dropmenu('sub2_2','Sub_menu_over')" onmouseout="roll_dropmenu('sub2_2','Sub_menu')" style="display: none">
<a href="http://blah.com" class="sub_text" target="_self">Blah</a><br />
</div>
<div id="sub2_3" class="Sub_menu" onmouseover="roll_dropmenu('sub2_3','Sub_menu_over')" onmouseout="roll_dropmenu('sub2_3','Sub_menu')" style="display: none">
<a href="http://blah.com" class="sub_text" target="_self">blah</a><br />
</div>
<div id="sub2_4" class="Sub_menu" onmouseover="roll_dropmenu('sub2_4','Sub_menu_over')" onmouseout="roll_dropmenu('sub2_4','Sub_menu')" style="display: none">
<a href="http://blah.com" class="sub_text" target="_self">Blah</a><br />
</div>
<div id="sub2_5" class="Sub_menu" onmouseover="roll_dropmenu('sub2_5','Sub_menu_over')" onmouseout="roll_dropmenu('sub2_5','Sub_menu')" style="display: none">
<a href="http://www.angelfire.com/rebellion2/xboxclan/rules.html" class="sub_text" target="_self">FC Tryout Rules</a><br />
</div>
<div id="sub2_6" class="Sub_menu" onmouseover="roll_dropmenu('sub2_6','Sub_menu_over')" onmouseout="roll_dropmenu('sub2_6','Sub_menu')" style="display: none">
<a href="http://blah.com" class="sub_text" target="_self">blah</a><br />
</div>
<div id="sub2_7" class="Sub_menu" onmouseover="roll_dropmenu('sub2_7','Sub_menu_over')" onmouseout="roll_dropmenu('sub2_7','Sub_menu')" style="display: none">
<a href="Blah" class="sub_text" target="_self">Blah</a><br />
</div>
<style type="text/css" title="drop_menu">
.Main_menu {
border: 1px solid #ffffff;
background-color: #000099;
padding-left: 3px;
line-height: 100%;
width: 150;
cursor: hand;
}
.Main_menu_over {
border: 1px solid #ffffff;
background-color: green;
padding-left: 3px;
line-height: 100%;
width: 150;
cursor: hand;
}
.Sub_menu {
border: 1px solid #ffffff;
background-color: #ffffff;
padding-left: 10px;
line-height: 100%;
width: 150;
cursor: hand;
}
.Sub_menu_over {
border: 1px solid #ffffff;
background-color: #ffffff;
padding-left: 10px;
line-height: 100%;
width: 150;
cursor: hand;
}
a.main_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a:visited.main_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a:hover.main_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a.sub_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a:visited.sub_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
a:hover.sub_text { font: 11px Verdana; color: #0000ff; text-decoration: none; font-weight: none; font-style: none; }
</style><!-- Script_code --><script language="JavaScript" type="text/javascript">
<!-- //
function toggle_dropmenu(id){
count = 1;
while (count <= 10){
var step = id+'_'+count;
if (document.getElementById(step)){
document.getElementById(step).style.display = (document.getElementById(step).style.display == 'block') ? 'none' : 'block';
}
count++;
}
}
function roll_dropmenu(id, roll_class){
document.getElementById(id).className = roll_class;
}
//-->
</script><!-- Menu_Code_stylesheet -->
<div id="Main_3" class="Main_menu" onmouseover="roll_dropmenu('Main_3','Main_menu_over')" onmouseout="roll_dropmenu('Main_3','Main_menu')">
<a href="javascript:void(0)" id="main_text_3" class="main_text" onClick="toggle_dropmenu('sub3')">Blah</a>
</div>
<div id="sub3_1" class="Sub_menu" onmouseover="roll_dropmenu('sub3_1','Sub_menu_over')" onmouseout="roll_dropmenu('sub3_1','Sub_menu')" style="display: none">
<a href="http://blah.com" class="sub_text" target="_self">Blah</a><br />
</div>
<div id="sub3_2" class="Sub_menu" onmouseover="roll_dropmenu('sub3_2','Sub_menu_over')" onmouseout="roll_dropmenu('sub3_2','Sub_menu')" style="display: none">
<a href="http://blah.com" class="sub_text" target="_self">Blah</a><br />
</div>
</SCRIPT> ????: NamePros.com http://www.namepros.com/programming/106070-link-drop-down.html ????: NamePros.com http://www.namepros.com/showthread.php?t=106070 umm... This IS JavaScript BTW... -Thanks -RageD This code was made about 2 years ago when I started webdesign... For a working example check out my OLD, very OLD clan site, scroll down to get to navigation... You may edit as needed... Site: Working Example
Last edited by RageD; 07-13-2005 at 11:01 AM.
|
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| phpLinkTrader - PHP Link Exchange Manager - Only $5.00 | shakez | For Sale / Advertising Board | 0 | 07-10-2005 05:55 PM |
| .name clearance sale! *crazy cheap* - domainsite.com | fleaking | Domains For Sale - Make Offer | 0 | 06-29-2005 03:02 AM |
| New Redemption Period / Onhold Link Popularity Reports | dropscripts | For Sale / Advertising Board | 1 | 01-16-2004 06:49 AM |
| New Link Popularity Reports and More! | dropscripts | For Sale / Advertising Board | 1 | 12-17-2003 06:31 AM |