HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Drop down menu problem
Post new topic   Reply to topic    HTML Help Forum Index -> DHTML
View previous topic :: View next topic  
Author Message
Jrnyfn



Joined: 04 Oct 2006
Posts: 2

PostPosted: Wed Oct 04, 2006 8:41 pm     Drop down menu problem Reply with quote

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

PostPosted: Thu Oct 05, 2006 6:10 am     Reply with quote

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

PostPosted: Thu Oct 05, 2006 4:50 pm     Drop down menu Reply with quote

Here is the url for my webpage and it isn't a background fader. On my webpage, this scrip pulls down like a drop down menu....... http://www.angelfire.com/planet/smjm1982/index.html.. You will see the drop down menu
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Tue Oct 10, 2006 5:19 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> DHTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial