Results 1 to 5 of 5
Related
-
NEED HELP WIT BAND DIV OVERLAY(asap) Forum: Myspace Forum
Replies: 1 -
Need an Availablity Script ASAP! Forum: Javascript Forum
Replies: 1 -
Need Linking Help ASAP Forum: HTML Forum
Replies: 4
-
10-26-2009, 02:21 PM #1
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
-
10-27-2009, 03:08 PM #2bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
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>
-
10-28-2009, 09:39 AM #3
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.
-
10-28-2009, 11:33 AM #4bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Re: Need help asap! Greatly appriciated.
No problem, you're very welcome.
-
10-30-2009, 02:33 AM #5
Re: Need help asap! Greatly appriciated.
Thanks for the code I needed that one also.