Results 1 to 4 of 4

Thread: Mouse Over

  1. #1
    Join Date
    Nov 2008
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Mouse Over

    Hi All:

    I am curious to know if there is a code for when someone moves their mouse over a link graphic it will shine or enlarge.
    Thanks,
    eletricfrog

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    you have to make two images: the regular image, and the "mouseover" image. for example:
    Code:
    <img src="image.jpg" onmouseover="src='shinyimage.jpg'" onmouseout="src='image.jpg'">
    If you don't put the "onmouseout" attribute, then the image won't change back to its original state. you could put a third image there.

  3. #3
    Join Date
    Nov 2008
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Resolved

    Thank you so much

  4. #4
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    This can also be achieved through CSS. You can make one image, and then make the position of the background change on rollover. This is a much better way to do some rollovers as it means there is no pre loading of the mouseover image and also means people who have JavaScript disabled can also view the rollover.

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
  •