Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-17-2002, 01:11 PM   PM User | #1
Vanessa
New to the CF scene

 
Join Date: Jun 2002
Location: Leeds
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Vanessa is an unknown quantity at this point
Drop down menus

Hello,
I'm having trouble with my drop down menu's. Basically I've got 3 drop down menu's for my links and the top one is working fine, but the bottom 2 open up the link that is in the top drop down menu- If that doesn't make sense... here's the URL http://www.geocities.com/nessdog42/links.html

What script am I missing??
Thanks.
Vanessa is offline   Reply With Quote
Old 06-17-2002, 02:47 PM   PM User | #2
JohnKrutsch
Regular Coder

 
Join Date: Jun 2002
Location: The Planet Earth Code Poet: True
Posts: 282
Thanks: 0
Thanked 1 Time in 1 Post
JohnKrutsch is an unknown quantity at this point
It is becasue your changePage function only refers to the first select box, you could modify it like this:

<script type="text/javascript">
function changePage(uri){
newPage=window.open(uri,"NewPage","height=480,width=640,location=no,scrollbars=yes,menubar=no,toolba r=no,resizable=yes,status=yes");
}
</script>

then in each of the select tags do something like this:

<select name="pages" size="1" onChange="changePage(this.options[this.selectedIndex].value);">


<select name="creative" size="1" onChange="changePage(this.options[this.selectedIndex].value);">

<select name="other" size="1" onChange="changePage(this.options[this.selectedIndex].value);">

This way you are passing in the value for the page you would like to go to.
JohnKrutsch is offline   Reply With Quote
Old 06-17-2002, 03:15 PM   PM User | #3
Vanessa
New to the CF scene

 
Join Date: Jun 2002
Location: Leeds
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Vanessa is an unknown quantity at this point
thanks
Vanessa is offline   Reply With Quote
Old 06-17-2002, 03:28 PM   PM User | #4
Vanessa
New to the CF scene

 
Join Date: Jun 2002
Location: Leeds
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Vanessa is an unknown quantity at this point
It's still not working- I'm inept grrrr.
Vanessa is offline   Reply With Quote
Old 06-17-2002, 03:41 PM   PM User | #5
JohnKrutsch
Regular Coder

 
Join Date: Jun 2002
Location: The Planet Earth Code Poet: True
Posts: 282
Thanks: 0
Thanked 1 Time in 1 Post
JohnKrutsch is an unknown quantity at this point
I went back to your page and did not see where you updated the code. Post the code that is not working or change it online so we can see it. Otherwise we can't effectively help you.
JohnKrutsch is offline   Reply With Quote
Old 06-17-2002, 08:12 PM   PM User | #6
Vanessa
New to the CF scene

 
Join Date: Jun 2002
Location: Leeds
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Vanessa is an unknown quantity at this point
Sorry about that mate, I was working on it on a test page... here's the link

http://www.geocities.com/nessdog42/illustration.html
Vanessa is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:35 AM.


Advertisement
Log in to turn off these ads.