11-06-2009, 09:28 PM
You can also take a look at this :
Source from:
http://www.webdeveloper.com/forum/archiv...43687.html
Code:
onmouseover="functionToExecute('<some argument here for text area's text>')". a simple demo:
<html>
<head>
<title>Example</title>
<script type="text/javascript">
function changeText(val){
var txtArea = document.getElementById('imgdesc');
txtArea.value = val;
}
</script>
</head>
<body>
<textArea id="imgdesc"></textArea>
<img src="img1.gif" alt="Image 1" onmouseover="changeText(this.alt)">
<img src="img2.gif" alt="Image 2" onmouseover="changeText(this.alt)">
<img src="img3.gif" alt="Image 3" onmouseover="changeText(this.alt)">
<img src="img4.gif" alt="Image 4" onmouseover="changeText(this.alt)">
<img src="img5.gif" alt="Image 5" onmouseover="changeText(this.alt)">
<img src="img6.gif" alt="Image 6" onmouseover="changeText(this.alt)">
</body>
</html>
http://www.webdeveloper.com/forum/archiv...43687.html