|
Post by CD on Jul 11, 2005 15:48:14 GMT -8
x.X I can't seem to get them to work wihtout actually putting them inside of the input tag. But I need them remotely done for a code. This is what I got to. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Bitch</title> <style type="text/css"> .text1 { background-color: #111111; } .text2 { background-color: #AAAAAA; } </style> </head> <body>
<form action="post"> <input name="the"> </form>
<script type="text/javascript"> var form1 = document.forms;
for(b=0;b<form1.length;b++){ var aIN = document.forms[0].getElementsByTagName("INPUT"); document.write(aIN.length);
for(a=0;a<aIN.length;a++){ aIN[a].className="text2"; aIN[a].onfocus="this.className='text1';"; aIN[a].onblur="this.className='text2';"; }
} </script>
</body> </html>
Last Edit: Jul 11, 2005 15:48:38 GMT -8 by CD
|
|
|
Post by Marty on Jul 11, 2005 17:35:06 GMT -8
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Bitch</title> <style type="text/css"> .text1 { background-color: #111111; } .text2 { background-color: #AAAAAA; } </style> </head> <body>
<form action="post"> <input name="the"> </form>
<script type="text/javascript"> var form1 = document.forms;
for(b=0;b<form1.length;b++){ var aIN = document.forms[0].getElementsByTagName("INPUT"); document.write(aIN.length);
for(a=0;a<aIN.length;a++){ aIN[a].className="text2"; aIN[a].onfocus=function(){this.className='text1';}; aIN[a].onblur=function(){this.className='text2';}; }
} </script>
</body> </html>
|
|
|
Post by CD on Jul 11, 2005 18:03:44 GMT -8
Thanks Marty. x.X I feel stupid now. XD
|
|