Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
Need a lil help ... |
Page: 1 | Reply |
Oct 2nd 2003 | #123116 Report |
Member since: Apr 24th 2003 Posts: 9 |
Hey, I was wondering if anyone knew how to make it so that a typical pulldown menu would link to a given page when one of the pulldown menu options is selected WITHOUT having to use a button to intiate the link transfer. In other words, the pulldown menu starts at a specific option, the user click the pulldown menu to expand it, the user then selects an option from the pulldown menu, and upon selecting that option the user is directed to the approriate link that corresponds to that option. Ultimately, I'm trying to implement this here: http://www.einhander.net/writings Thank you for any help you can provide! :D |
Reply with Quote Reply |
Oct 2nd 2003 | #123128 Report |
Member since: Jul 25th 2003 Posts: 489 |
[code] function formHandler(){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } [/code] And just add a forum with the pull down menu, put url for value. By the way you need add the javascript tag (I'm stupid, don't know how to post code on this board, someone help!) Hope it helps Cheers |
Reply with Quote Reply |
Oct 3rd 2003 | #123194 Report |
Member since: Apr 24th 2003 Posts: 9 |
I'm still highly confused ... how exactly do I go about using that code?
|
Reply with Quote Reply |
Oct 3rd 2003 | #123200 Report |
Member since: Mar 24th 2002 Posts: 3114 |
you'll need a bit more than that, I think. First, name your form to, say.. "form". Then name your select - tag to, say.. "bobby". Then, put the necessary stuff into your option tags, as in the value. So, in "I.COVER", put <option value='cover.html'> or something. Then, make a small javascript function, like this (from the top of my head, might not work) : function take_us(){ window.location=document.form.bobby.value; } And in the form EDIT: not the form tag, the select - tag, this; onchange=take_us() .......I just woke up, as usual, so it might be all fu**ed. :o |
Reply with Quote Reply |
Oct 3rd 2003 | #123260 Report |
Member since: Jul 25th 2003 Posts: 489 |
Here I don't have anytime, but I did have one of those things at my first web page here http://darkbo.hypermart.net/news.shtml just go check out the source code I bet you'll figure out in no time, gtg run.... |
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |