Results 1 to 6 of 6

Thread: MouseOver and MouseOut function

  1. #1

    Thread Starter
    Member
    Join Date
    May 1999
    Location
    Tulsa,OK,USA
    Posts
    56

    Post

    Hi,
    Can somebody help me out. I got this code from CNET about mouseover and mouseout but when I tried to put in my webpage it doesn't work?
    Is there any restriction to the call of mouseover and mouseout function?

    <SCRIPT language="vbscript">
    Sub Link1_OnMouseOver()
    Link1.style.color = "red"
    End Sub
    Sub Link1_OnMouseOut()
    Link1.style.color = "blue"
    End Sub
    </SCRIPT>

    <a href="" id="Link1">


  2. #2
    Guest

    Post

    You need IE4/5 it won't work with netscape.

  3. #3

    Thread Starter
    Member
    Join Date
    May 1999
    Location
    Tulsa,OK,USA
    Posts
    56

    Post

    I am using IE5.0

  4. #4

    Thread Starter
    Member
    Join Date
    May 1999
    Location
    Tulsa,OK,USA
    Posts
    56

    Post

    Is this the same thing that I posted ealier? or is the better way to do?
    And can somebody explain me all about it?<STYLE type=text/css>
    .blfont {
    COLOR: #99ccff
    }
    .redfont {
    COLOR: #cc0033
    }
    .yllwfont {
    font-family: Verdana, Arial;
    font-size: 11px;
    font-weight: bold;
    COLOR: #FFFF33
    }
    .bluefont {
    COLOR: #99CCFF
    font-family: Verdana, Geneva, Lucida, Arial;
    font-size: 11px;
    }
    .navbit {
    font-family: Verdana, Geneva, Lucida, Arial;
    font-size: 11px;
    }
    .whitefont {
    COLOR: #ffffff
    }
    A:hover {
    COLOR: #ff0000
    }
    A:link {
    COLOR: #333399
    }


  5. #5
    Guest

    Post

    Code:
    <SCRIPT language="vbscript">
    Sub Link1_OnMouseOver()
    Link1.style.color = "black"
    End Sub
    Sub Link1_OnMouseOut()
    Link1.style.color = "blue"
    End Sub
    </SCRIPT>
    
    <a href="" id="Link1">LINK</a>
    works

    but the style with the a.hover and a.link is a nicer/better way to do it, that way you'll support other browsers to and its more standard .

    -Azzmodan

  6. #6
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    <a href="http://www.e-bizinternet.com" onMouseOver="myFunction()" onMouseOut="myOtherFunction">e-biz internet</a>

    ------------------
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer

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