What is the code to Change value of textbox when the mouse is over an image ?
Like helpline for bbcode . Either in Javascript or php , thanks .
Like helpline for bbcode . Either in Javascript or php , thanks .
| Code: |
|
<html> <head> <script language="JavaScript" type="text/javascript"> <!-- function displayText() { var frm = document.forms[0]; frm.txt1.value = 'Image Mouseover'; frm.txt2.value = 'Image Mouseover'; } function hideText() { var frm = document.forms[0]; frm.txt1.value = ''; frm.txt2.value = ''; } // --> </script> </head> <body> <form name="frm1" onsubmit="return summary();"> <input type="text" name="txt1" value="" /><br /> <textarea name="txt2" rows="5" cols="20"></textarea> </form> <img src="myimage.gif" onmouseover="displayText()" onfocus="displayText()" onmouseout="hideText()" onblur="hideText()" /> </body> </html> |