HTML Bookmarks

[Total: 0    Average: 0/5]

This allows you to place your common web sites into a select list and then go directly to those pages.

Head Code:

<SCRIPT language=JavaScript>

<!--
function go_to_station(){
        if (document.stationform.stationselect.options[0].selected){
                window.location.href = "http://www.yahoo.com";} 
        else if (document.stationform.stationselect.options[1].selected)                
        {       window.location.href = "http://www.excite.com";}
        else if (document.stationform.stationselect.options[2].selected)                
        {       window.location.href = "http://www.altavista.com";}   
        else if (document.stationform.stationselect.options[3].selected)                
        {       window.location.href = "http://www.webcrawler.com";}    
        else if (document.stationform.stationselect.options[4].selected)                
        {       window.location.href = "http://www.infoseek.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>

Body Code:

      <CENTER>
      Select a search engine from the list to go to it's 
      site 
      <FORM name=stationform><SELECT name=stationselect 
      onchange=textValue() size=5> <OPTION>Yahoo<OPTION>Excite<OPTION>Alta 
        Vista<OPTION>WebCrawler<OPTION>Infoseek</OPTION></SELECT> <BR>
      <P><INPUT name=stationbutton onclick=go_to_station() type=button value=Go!> 

      <P><INPUT maxLength=35 name=stationtext size=35> 
      <P></FORM></P></CENTER>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *