Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Textarea Prob
#3
You can also take a look at this :
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>
Source from:
http://www.webdeveloper.com/forum/archiv...43687.html
Reply


Messages In This Thread
Textarea Prob - by Scorpion - 11-06-2009, 02:23 PM
RE: Textarea Prob - by Gaijin - 11-06-2009, 06:37 PM
RE: Textarea Prob - by zone - 11-06-2009, 09:28 PM
RE: Textarea Prob - by Scorpion - 11-07-2009, 04:29 AM
RE: Textarea Prob - by Gaijin - 11-07-2009, 08:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)