www.webdeveloper.com
Results 1 to 4 of 4

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

  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,

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,277
    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.

  3. #3
    Join Date
    Dec 2002
    Posts
    3
    ok thanks

  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