i have 2 text fields and when i click on a text it highlights the whole box but the problem is thast it only highlights 1 box instaed of 2 boxes. heres the javascript im using
if u wonna try it out the page is http://monstermatt2.pcriot.com/test/HTML Code:<html><head><title>(Type a title for your page here)</title> <script type="text/javascript"> function select_all() { var text_val=eval("document.form1.type"); text_val.focus(); text_val.select(); } function select_all() { var text_val=eval("document.form1.type1"); text_val.focus(); text_val.select(); } </script> </head> <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> <form name=form1 method=post action='' ''> <input type="text" name="type" size="70" onClick="select_all();" value="text1"> <p> <input type="text" name="type1" size="70" onClick="select_all();" value="text2"> </p> </form> </body> </html>
also
if anyone has a script that site viewers can comment on the page without being registerd (like on some sites u have to register to make comments) and only
Name
your comment
can u pm me or reply in here thx
(im making a video page)


2Likes
LinkBack URL
About LinkBacks
Reply With Quote



