 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
Jrnyfn
Joined: 04 Oct 2006 Posts: 2
|
Posted: Wed Oct 04, 2006 8:41 pm Drop down menu problem |
|
|
|
Here is my problem .... I am making a webpage using angelfire. I put a drop down menu code on my webpage and it fails to link to the url I put into the script.... I finally added a go tab and when I press the tab and it linked me to my angelfire's webshell. The url I added for the drop down menu to link to was aol, but it failed to do so. If I didn't add the go button, nothing happened. I tried e-mailing the writer of this script only to get a mail demon. Here is the code, maybe somebody could help me....
<html>
<head>
<title>The Select bgFader By Aaron Connelly</title>
<script langauge="javascript">
/*
By: Aaron Connelly
E-Mail: MAUWDIBataol.com
for non-comercial uses only - Other contact at the E-Mail address above
This Credit Must stay intact for use!!!!!!!!!!
*/
//How fast the fadeing is going
var speed=100
//The Font size
var size=15
//Don't Edit
var cf1="0"
var cf2="0"
function animate(){
var f1=new Array()
f1[1]="0"
f1[2]="15"
f1[3]="35"
f1[4]="55"
f1[5]="95"
f1[6]="100"
f1[7]="130"
f1[8]="140"
f1[9]="190"
f1[10]="230"
f1[11]="240"
f1[12]="256"
f1[13]="240"
f1[14]="220"
f1[15]="190"
f1[16]="120"
f1[17]="90"
f1[18]="70"
f1[19]="30"
f1[20]="10"
f1[21]="0"
var f2=new Array()
f2[1]="0"
f2[2]="15"
f2[3]="35"
f2[4]="55"
f2[5]="75"
f2[6]="95"
f2[7]="100"
cf1=(cf1==21)?1:++cf1
cf2=(cf2==7)?1:++cf2
/*
**IMPORTANT**
To Change the colors play with the 256 & 2 & 0
*/
document.forms[0].menuBg.style.backgroundColor="rgb(256," + f1[cf1] + ",2)"
document.forms[0].menuBg.style.color="rgb(0," + f2[cf2] + ",256)"
document.forms[0].menuBg.style.fontWeight="bold"
document.forms[0].menuBg.style.fontSize=size
//Don't Edit
setTimeout("animate()",speed)
}
window.onload=animate
</script>
</head>
<body>
<!--Put whatever you want for the select-->
<form>
<SELECT name="menuBg">
<option value="Whatever" selected>Select a Topic
<option value="Whatever">Javascript
<option value="Whatever">DHTML
<option value="Whatever">Java
<option value="Whatever">Perl
<option value="Whatever">C++
</select>
</form>
</body>
</html> |
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Thu Oct 05, 2006 6:10 am |
|
|
|
| The script you have posted is a background fader. It has nothing to do with linking to sites. |
|
Jrnyfn
Joined: 04 Oct 2006 Posts: 2
|
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Tue Oct 10, 2006 5:19 am |
|
|
|
Do you know HTML or Javascript?
It doesn't seem like it. The javascript you have is a fader script. It is nothing to do with your dropdown.
Your dropdown is doing exactly what you have set it to do. When you choose an option and submit it the form uses the GET method to request the submitted data.
You can see that in the URL querystring.
If you want the page to goto a URL then you need to use a Javascript jump menu.
http://javascript.internet.com/navigation/jump-menu.html |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|