|
-
Jun 16th, 2001, 09:04 PM
#1
Thread Starter
Member
Using the onmouse event...
I was wanting to resize a text area and put text into it using the mouseover event, and was wondering how to do so....
-
Jun 16th, 2001, 09:17 PM
#2
Fanatic Member
Try this out:
<html>
<head><title></title>
<script>
function getBig(){
document.frmText.txtInfo.rows = 10;
document.frmText.txtInfo.cols = 20;
}
function getNormal(){
document.frmText.txtInfo.rows = 4;
document.frmText.txtInfo.cols = 10;
}
</script>
</head>
<body>
<form NAME = "frmText">
<textarea ROWS = "4" COLS = "10" NAME = "txtInfo" ONMOUSEOVER = "getBig();" ONMOUSEOUT = "getNormal();"></textarea>
</form>
</body>
</html>
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|