Search in forum:
Search


Author Message
Post09/29/2008 at 12:19pm (UTC)    
Post subject: Go menu

Code:
<script language="JavaScript">
/*
Visit http://java-scripts.net or http://wsabstract.com
For this script and more
*/

function go_to_station(){
if (document.stationform.stationselect.options[0].selected){
   window.location.href = "http://www.java-scripts.net";}   
else if (document.stationform.stationselect.options[1].selected)      
{  window.location.href = "http://freewarejava.com";}
else if (document.stationform.stationselect.options[2].selected)      
{  window.location.href = "http://dynamicdrive.com";}   
else if (document.stationform.stationselect.options[3].selected)      
{  window.location.href = "http://reallybig.com";}
return true;   
}

function textValue(){   
  var stationInteger, stationString   
  stationInteger = document.stationform.stationselect.selectedIndex   
  stationString = document.stationform.stationselect.options[stationInteger].text   
  document.stationform.stationtext.value = "Go to " + stationString +"!"   }
</script>  <center> <p> <form name="stationform"> <select name="stationselect" onChange_fckprotectedatt=" onChange="textValue()"" multiple size="5"> <option>JavaScript <option>Java <option>DHTML Stuff <option>Web Building </select>  <br><p> <input type="button" name="stationbutton" value="Go!" onClick_fckprotectedatt=" onClick="go_to_station()""> <p> <input type="text" name="stationtext" value="" size="35" maxlength="35"> <p> </form> </center>

______________
Post09/29/2008 at 12:45pm (UTC)    
Post subject:

hi
i try the code i got a nice menu with GO bottun and empty field.
but nothing work maybe i miss some thing
please explain to us how it's work ... thanks
best wishes Razz
______________
Post09/30/2008 at 1:47pm (UTC)    
Post subject:

mymahdi wrote:
hi
i try the code i got a nice menu with GO bottun and empty field.
but nothing work maybe i miss some thing
please explain to us how it's work ... thanks
best wishes Razz



I agree.

@ mythcomeback why does not the code work? or how does it work?
Please explain! In fact, please do not share the codes before you do try the code whether it works or not!!
______________
- If you love your own-free-website, fight against to spams and spammers! Please support us, let's remove all the spammers together! We don't want to see spams and spammers on OFW board!

- The only language of the board is English / Englisch / Anglaise / Ingl├ęs / Inglese / İngilizce / Angielski / Английский / Αγγλικά / 英语 / 英语简体英文. So please write in just English!

Own-free-website.com

Post10/03/2008 at 9:32am (UTC)    
Post subject:

Code is working .
preview:
http://mythcomeback.page.tl/GO-menu.htm
Display posts from previous:   


Powered by phpBB © 2001, 2005 phpBB Group