Results 1 to 2 of 2

Thread: Using the onmouse event...

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45

    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....

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    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
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width