52 users online (0 members and 52 guests)  


  Results 1 to 5 of 5

Related

  1. NEED HELP WIT BAND DIV OVERLAY(asap)    Forum: Myspace Forum
    Replies: 1
  2. Need an Availablity Script ASAP!    Forum: Javascript Forum
    Replies: 1
  3. Need Linking Help ASAP    Forum: HTML Forum
    Replies: 4
  1. #1
    corma's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2009
    Posts
    2

    Exclamation Need help asap! Greatly appriciated.

    Hi,

    I am in desperate need of something for my website. I need a text box that when different words are typed in it takes you to a destination page depending on what you typed in the box.

    For example:
    I would like for a person to type in a name like: jacksmith
    and hitting the go button it would take them to http://www.mywebsite.com/jacksmith.html

    I do not want a drop down menu as i dont want the other names to be able to see all the other choices.

    Anyone out there can help me? I would be eternally grateful.

    Corma

  2. #2
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Need help asap! Greatly appriciated.

    Hi there Corma,

    and a warm welcome to these forums.

    does this help...
    Code:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="language" content="english"> 
    <meta http-equiv="Content-Style-Type" content="text/css">
    <meta http-equiv="Content-Script-Type" content="text/javascript">
    
    <title></title>
    
    <script type="text/javascript">
    function goThere(){
       df=document.forms[0]
       df[1].onclick=function() {
       location.href='http://www.mywebsite.com/'+df[0].value+'.html';
      }
     }
    
    if(window.addEventListener){
       window.addEventListener('load',goThere,false);
     }
    else { 
    if(window.attachEvent){
       window.attachEvent('onload',goThere);
      }
     }
    </script>
    
    </head>
    <body>
    
    <form action="#">
    <div>
    <label>filename: <input type="text"></label>
    <input type="button" value="go there">
    </div>
    </form>
    
    </body>
    </html>
    

  3. #3
    corma's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2009
    Posts
    2

    Re: Need help asap! Greatly appriciated.

    Thanks so much. You are my hero. This is exactly what i was looking for. Kudos and many thanks.

  4. #4
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Need help asap! Greatly appriciated.

    No problem, you're very welcome.

  5. #5
    getsmart's Avatar
    Disabled

    Status
    Offline
    Join Date
    Oct 2009
    Location
    Carbondale PA
    Posts
    5

    Re: Need help asap! Greatly appriciated.

    Thanks for the code I needed that one also.



Tags for this Thread