PDA

View Full Version : drop down menu links



Weapon
March 2nd, 2002, 02:11
any one know where I can find a script for a drop down menu link navigation system?

Canuckkev
March 2nd, 2002, 02:52
I'm not sure, but maybe try looking on the internet.

Weapon
March 2nd, 2002, 03:28
:rolleyes: why did u think I ask?

keith
March 2nd, 2002, 04:13
php? cgi?

Weapon
March 2nd, 2002, 04:59
php! :D , but cgi is okay

spec
March 2nd, 2002, 13:12
I believe that if you want it to drop down realtime you need it to be java .. or flash

Dusty
March 2nd, 2002, 13:21
Realtime?

You: "I'd like to select option four from the menu"
JavaScript: "Poof, you're there!"
PHP: "I'll get back to you in six to eight weeks."

:D

It doesn't really matter how you do it.

In JavaScript:

page.html:


<form>
<select onChange="location.href=this.options[selectedIndex].value">
<option value="http://www.url1.com/">URL1</option>
<option value="http://www.url2.com/">URL2</option>
<option value="http://www.url3.com/">URL3</option>
</select>
</form>

In Perl:

page.html


<form action="script.pl">
<select name="menu">
<option value="http://www.url1.com/">URL1</option>
<option value="http://www.url2.com/">URL2</option>
<option value="http://www.url3.com/">URL3</option>
</select>
</form>

script.pl:


#!perl

$url=($ENV{'QUERY_STRING'}=~/menu=(.*)/);
print "Location: ".$url."\n\n";

In PHP:

page.php


if($page!=""){
header("Location: ".$menu);
}else{
print "<form action=\"page.php\">\n";
print "<select name=\"menu\">\n";
print "<option value=\"http://www.url1.com/\">URL1</option>\n";
print "<option value=\"http://www.url2.com/\">URL2</option>\n";
print "<option value=\"http://www.url3.com/\">URL3</option>\n";
print "</select>\n";
print "</form>\n";
}

(Edited twice because this board likes to replace "JavaScript" with "java script" for some reason.)

echobeatz666
March 3rd, 2002, 11:45
try http://www.milonic.com/menu. It's very good and customizable. I've got it set up my site,(http://simucentre---------- ) it uses two .js files to do what it does.

keith
March 3rd, 2002, 12:50
steer clear of javascript whenever humanly possible...

alexs_catch22
March 11th, 2002, 22:14
You can also define a hotspot that pops-up a menu on a mouseover.

Here is a way you can change the styles and colors like this:

<script language="JavaScript">
<!--
function fwLoadMenus() {
if (window.fw_menu_0) return;
window.fw_menu_0 = new Menu("root",87,17,"Arial, Helvetica, sans-serif",10,"#000000","#Anycolor","#anycolor","#anycolor");
fw_menu_0.addMenuItem("TITLE1");
fw_menu_0.addMenuItem("TITLE2");
fw_menu_0.hideOnMouseOut=true;

fw_menu_4.writeMenus();
} // fwLoadMenus()

//-->
</script>
<script language="JavaScript1.2" src="fw_menu.js"></script>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
<script language="JavaScript1.2">fwLoadMenus();</script>
<img name="indexshtml" src="ImageUrl" width="718" height="500" border="0" usemap="#m_index.shtml"><!-- fwtable fwsrc="yourname" fwbase="index.shtml" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<map name="m_index.shtml">
<area shape="rect" coords="375,105,456,119" href="http://Your-URL.com" onMouseOut="FW_startTimeout();" onMouseOver="window.FW_showMenu(window.fw_menu_0,375,121);" >
</map>


Download the Javascript needed for this script:

http://catch22design.com/hosting/fw_menu.js

byrdgirl13
March 16th, 2002, 15:46
http://www.htmlgoodies.com has a script that worked fine for me when i used it...
but i believe it uses JavaScript, so if you don't like that, sorry...

[lhomme]
March 17th, 2002, 23:01
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

[lhomme]
March 17th, 2002, 23:01
Btw - why would a person not have javascript enabled and approximately what percent of people are this way?

guitarnerd
March 18th, 2002, 00:18
I see nothing wrong with Javascript!

I will get you my redirect PERL script if you want. If you have an html editor add a drop down list. and...

<form method="post" action="Path to the script"> in your source. And set the Value to the URL you would like for each...I guess I would say...Variable in the Drop down list. This is WAY easy in a html editor, especially DreamWeaver
Let me know if you want the script

AussieE
March 19th, 2002, 00:09
Ooo, nice... I'd been wondering the same thing.. Thanks, Dusty! :D

FlashMan
March 19th, 2002, 07:52
damn where i can find to learn about JavaScript and PHP and CGI and ASP and .. that's all:D

With best regards.

Jan
March 19th, 2002, 08:05
Originally posted by FlashMan
damn where i can find to learn about JavaScript and PHP and CGI and ASP and .. that's all:D

You can try asking specific questions here (http://www.freewebspace.net/forums/forumdisplay.php?s=&forumid=18) :classic2:

meow
March 19th, 2002, 08:54
:rolleyes:
Nice touch, mod lady.:biggrin2: