View Full Version : microsoft drop down menu
Weapon
September 30th, 2001, 18:19
hmmm it doesn't matter coz I found out that the script won't wonk if I have iframes.... anyways do you know of a scrip like this http://www.myacen.net/~otashki/new_page_1.htm where my links go in the box and when I click the go button it visits the link?
Bruce
September 30th, 2001, 18:25
Check out http://brainjar.com or http://dynamicdrive.com
Weapon
September 30th, 2001, 19:50
nope that don't work:(
neG.oNe
September 30th, 2001, 20:40
try http://www.simplythebest.net/info/dhtml_menus.html
Weapon
October 1st, 2001, 00:15
thanx, but u know how to add a target to the link on this script? http://www.simplythebest.net/info/dhtmlscript79.html
neG.oNe
October 1st, 2001, 18:05
Originally posted by Weapon
thanx, but u know how to add a target to the link on this script? http://www.simplythebest.net/info/dhtmlscript79.html
im not sure what you're asking...do you mean like make a link to a page or something like that
Weapon
October 1st, 2001, 18:16
hmmm it doesn't matter coz I found out that the script won't wonk if I have iframes.... anyways do you know of a scrip like this http://www.myacen.net/~otashki/new_page_1.htm where my links go in the box and when I click the go button it visits the link?
Weapon
October 1st, 2001, 20:54
some1? any1? plzzzzzz..:o
meow
October 1st, 2001, 21:11
You know no one but me helps ya. And I'm busy. :biggrin2:
Weapon
October 1st, 2001, 22:34
c'mon be a pal plzzz?:D
Weapon
October 2nd, 2001, 02:20
hello?:(
Weapon
October 2nd, 2001, 17:34
:( :(
niv
October 2nd, 2001, 19:06
Yuck, those are pointless. DHTML sucks, I'd rather one put the links to certain sections upfront, rather than having to enable Active Scripting in order to go somewhere. :p
crj
October 2nd, 2001, 21:25
the one at dynamic drive works great... you need to customize a bit but it works
Weapon
October 2nd, 2001, 22:29
no i meant i wanted one like this http://www.myacen.net/~otashki/new_page_1.htm with my links inside and when I click go, it goes to the link
tandoc
October 2nd, 2001, 22:56
you should be able to find one @ dynamicdrive.com or you can use this one i have found using 1st page
<script language="JavaScript">
<!--
function go_to_station(){
if (document.stationform.stationselect.options[0].selected){
window.location.href = "http://www.mydesktop.com/javascript/";}
else if (document.stationform.stationselect.options[1].selected)
{ window.location.href = "http://www.mydesktop.com/javascript/scripts/";}
else if (document.stationform.stationselect.options[2].selected)
{ window.location.href = "http://www.mydesktop.com/javascript/help/";}
else if (document.stationform.stationselect.options[3].selected)
{ window.location.href = "http://www.mydesktop.com/javascript/books/";}
else if (document.stationform.stationselect.options[4].selected)
{ window.location.href = "http://www.mydesktop.com/javascript/irc/";}
else if (document.stationform.stationselect.options[5].selected)
{ window.location.href = "http://www.mydesktop.com/javascript/help/links/";}
return true;
}
function textValue(){
var stationInteger, stationString
stationInteger=document.stationform.stationselect.selectedIn dex
stationString=document.stationform.stationselect.options[stationInteger].text
document.stationform.stationtext.value = "Go to " + stationString +"!" }
//-->
</script>
</head>
<h1>Go! Menu</h1>
<center>
Simply select where you would like to go and click the Go! Button.<p>
<form name="stationform">
<select name="stationselect" onChange="textValue()" multiple size="5">
<option>Home
<option>JS Examples
<option>JS Help
<option>#JavaScript
</select>
<br><p>
<input type="button" name="stationbutton" value="Go!" onClick="go_to_station()">
<p>
<input type="text" name="stationtext" value="" size="35" maxlength="35">
<p>
</form>
Weapon
October 2nd, 2001, 23:17
peace dude, but what if I don't want that bottom window? u know the one that says the description?
ashben
October 3rd, 2001, 05:01
HierMenus: http://www.webreference.com/dhtml/hiermenus/
Live-in-action @ www.ashben.net
Weapon
October 3rd, 2001, 16:06
dude thats not what I wanted this is
I].....hmmm it doesn't matter coz I found out that the script won't wonk if I have iframes.... anyways do you know of a scrip like this http://www.myacen.net/~otashki/new_page_1.htm where my links go in the box and when I click the go button it visits the link?.....[/I]
meow
October 3rd, 2001, 17:06
:eek: Are you wonking!?!
:D
Look what I learnt in JavaScript class!
<html>
<head>
<title>~ Luve is in the air ~</title>
<script type="text/javascript" language="javascript">
<!--
function Meow()
{
var meow = window.document.weepform.weepselect.selectedIndex;
window.location.href = window.document.weepform.weepselect[meow].value;
}
//-->
</script>
</head>
<body>
<form name="weepform">
<select size="4" name="weepselect">
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.freewebspace.net">fws</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.myacen.net/~otashki">weeps</option>
</select>
<br>
<input type="button" value="Luve!" onClick="Meow();">
</form>
</body>
</html>
:)
Weapon
October 3rd, 2001, 18:41
:D :biggrin2: it don't work:biggrin2: :D
meow
October 3rd, 2001, 18:47
It does too! You're hopeless. :rolleyes: And I don't buy that you can't get it to work. ogre2
niv
October 3rd, 2001, 18:47
Can't you use perl? :rolleyes:
FORM:
<form action="crap.pl" method="get">
<select name="abspath">
<option value="crappy/text.html">Crappy Text
<option value="crappy/whatever.html">Crappy Something
</select>
<input type="submit" value="Go">
</form>
#!/usr/bin/perl
use CGI qw/:param/;
$crap = param("abspath");
open(CRAP, $crap);
@listblah = ("Content-type: text/html\n\n");
@list = <CRAP>;
unshift (@list, @listblah);
print @list;
close(CRAP);
Dusty
October 3rd, 2001, 19:09
What's the need for so complicated a script for such a simple function?
HTML file:
<form action="/url/to/script.pl" method="get">
<select name="doesntmatter">
<option value="/url/to/opt/1">Option 1</option>
<option value="/url/to/opt/2">Option 2</option>
</select>
<input type="submit" value="Go">
</form>
Perl script:
#!/usr/bin/perl
($junk,$url)=split(/=/,$ENV{'QUERY_STRING'});
$url=~s/%(..)/pack("c",hex($1))/ge;
print "Location: ".$url."\n\n";
meow
October 3rd, 2001, 19:10
OOOIIII!!! Sorry, I missed the script tag when I pasted. :biggrin2: And a couple of semicolons. :p
I've added the crap above. :ditsy2:
Dusty
October 3rd, 2001, 20:30
And a couple of semicolons.That didn't matter, semicolons are optional in JavaScript anyway.
meow
October 3rd, 2001, 20:43
I use them and I forgot them. Is that OK with you?
Besides they can't always be ignored. Even I have sucked that much up. I prefer uniform code. Use them once, use them always.
This is my last post in the matter so no need to start a new -----ing war. The HTML forum has been a friendly place. Let's try to keep it that way.
Weapon
October 3rd, 2001, 20:57
hehehhehe I AM RIGHT:D
meow
October 3rd, 2001, 21:06
You could have READ the code...then you MAYBE had spotted it. :devious2:
Weapon
October 3rd, 2001, 22:55
| |)||) j00 f00, | 3\/3|\| (H@|\|G3d |t t00:D
Weapon
October 3rd, 2001, 22:58
oh and can i ask u something:
how do I make the box a certain size?
how do I make the box a certain color?
how do I make the button a certain color
how do I make the button a certain size
how do I make it that a word appear in the box but when clicked upon don't go to a link
and last of all I have an iframe, how do I make the links target as the iframe?:D
I WAS RIGHT! I WAS RIGHT! :D
Dusty
October 4th, 2001, 14:36
I use them and I forgot them. Is that OK with you?Never said it wasn't, just said that that wasn't the reason your script didn't work.
I prefer uniform code.Ditto.
This is my last post in the matter so no need to start a new -----ing war.I only single out foolish ideas vocally supported by a number (that number is one) members of this forum, not to start a "-----ing war" but to try to see that they don't perpetuate. Had Le-- err, that member simply said "backgrounds aren't the best way but that's how I do it" and had that member not taken the hostility outside of the argument and into an unrelated thread by insulting me, the argument probably would have ended much quicker.
tandoc
October 5th, 2001, 00:37
Originally posted by Weapon
oh and can i ask u something:
how do I make the box a certain size?
how do I make the box a certain color?
how do I make the button a certain color
how do I make the button a certain size
how do I make it that a word appear in the box but when clicked upon don't go to a link
and last of all I have an iframe, how do I make the links target as the iframe?:D
I WAS RIGHT! I WAS RIGHT! :D
u can do it using CSS... I think
meow
October 5th, 2001, 08:03
Yup, it takes CSS.
I *think* this is a correct way to target the iframe, but you may want to check on that.
Change this bit:
window.location.href = window.document.weepform.weepselect[meow].value;
to this:
parent.NameOfFrame.location.href = window.document.weepform.weepselect[meow].value;
where NameOfFrame is the name of your iframe.
LeX
October 5th, 2001, 10:38
Assuming that an iframe functions like normal frames, you can try this: http://www.freewebspace.net/forums/showthread.php?s=&postid=100983#post100983
Not sure if it will work or not.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.