SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: MouseOvers...

  1. #1
    SitePoint Addict
    Join Date
    May 2000
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Whats the best way to create mouseovers?

    I hear there are several ways, and im wondering why that is... I mean why not just one way?

    are there pros and cons to the different ways of doing it?
    and if so, which way is the better way?

    after telling me which way i should accomplish it...
    can you give me a short run down on how to do it?

    thank you so much

  2. #2
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The following URL links to an article on creating mouse overs with JavaScript using JavaScript and pre-loading images is the best way to go when working with images). There is also a link within the article for a code generator. If you simply want text links to change color or become bold, you should probably use CSS. Java, on the other hand, is a bit too heavy for simple mouseovers.
    http://webdeveloper.internet.com/jav...load_roll.html


    ------------------
    IMHO,
    Westmich
    ***********************
    Your opportunity on the web is now!
    westmichiganweb.com

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2000
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post solution - in the tags

    I find that when I am using javascript mouseovers I use them IN the tages, that makes the independent, easy to edit, and you dont ahve to track down a script in the head and body. For example, if I had a table wih a cell, and I wanted the cells background color to be red when someone puts their mouse over it, I would go like this:

    <TABLE BGCOLOr="blue">
    <TD onMouseOver="bgColor='red'" onMouseOut="bgColor='blue'">
    ----TEXT IN THE CELL----
    </TD>
    </TABLE>

    Like so. go ahead and have fun!

    -IT Master


  4. #4
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: solution in the tags

    Placing instructions just in the tags takes advantage of the Document Object Model for Netscape and IE. Correct me if I am wrong, but I believe this can only be used in the latest browsers and causes compatibility issues and limitations.
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2000
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Your probably right

    Your probably right, browser capabilities and browser history isnt my strong point... Good advice, westmich!


    -IT Master


Bookmarks

Posting Permissions

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