www.webdeveloper.com
Results 1 to 4 of 4

Thread: Can you roll over text and a graphic changes?

Hybrid View

  1. #1
    Join Date
    Dec 2002
    Posts
    3

    Can you roll over text and a graphic changes?

    Hello,

    Is it possible to have live text on a page and when you roll over it, a graphic changes?

    Regards,
    It has been said that if you were to put 100 monkeys in a room for an infinite amount of time and gave each one a typewriter, eventually they would reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know that's not true...

    James Fielding

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    According to the 4.01 Spec ONMOUSEOVER is valid for "[a]ll elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE [and] TITLE". (http://www.w3.org/TR/html4/index/attributes.html) I don't know about browser support, but as it certainly won't work for the 1 or so in 10 of us that do not use JavaScript give it a try with the SPAN element. But as with all JavaScript, make sure your page makes sense without it.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Dec 2002
    Posts
    3
    ok thanks
    It has been said that if you were to put 100 monkeys in a room for an infinite amount of time and gave each one a typewriter, eventually they would reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know that's not true...

    James Fielding

  4. #4
    Join Date
    Nov 2002
    Location
    Hampshire, England
    Posts
    42
    Hi,

    You might be interested to see an example of image swapping using CSS (no javascript).

    http://www.meyerweb.com/eric/css/edge/popups/demo2.html

    It won't work in all browsers, but it's worth a look.

    Paul

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles