Jump to content

webcomic #selection thing


catman03
 Share

Recommended Posts

hello all,i have had many troubles over this one fairly simple code because im going out of town tomorrow(to this retreat where i cant bring my laptop(its a school thing)).anyway,im going to launch my site when i get back this friday and so i need to get this done now.because of this i am hurrying and am now know as a total moron on the newgrounds programming forum because of it.ok,so i have this code:<center><form name="mywebcomics" onChange="go()"><select name="id" id="id"><option selected>007</option><option>006</option><option>005</option><option>004</option><option>003</option><option value="http://www.google.com/">002</option><option>001</option></select><script type="text/javascript"><!--function go(){location=document.mywebcomics.id.options[document.mywebcomics.id.selectedindex].value}//--></script><input type="submit" value="Go" action="selection.php" method="get"></form></center></p></center><br>and once i fll in the values(google is obviously just to test it)i need it to select which webcomic to view fro the page.but it doesn't seem to work.any ideas?pls and ty,catman03 president of chaotix gamez :)

Link to comment
Share on other sites

As per the subject of your question, are you trying to link to certain areas within a single page using the #? If so, I don't see anywhere in your code where you actually specify that #. I would recommend either changing the values of the options from "001", "002", etc. to "#001", "#002", etc or changing your java script:

<script type="text/javascript"><!--function go(){location= "#" + document.mywebcomics.id.options[document.mywebcomics.id.selectedindex].value}//--></script>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...