Results 1 to 3 of 3

Thread: Menu on hover

  1. #1
    Join Date
    Aug 2008
    Location
    Connecticut
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Menu on hover

    I would like to have a menu which has two images--one that is the default-the other is the image when it is mouseovered.

    So, how would I code this?

    ~iE

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    The way to go would be javascript:
    Code:
    <img src="http://content.mobango.com/media/picture/gif/00000012/thumbnail/size_125x90/159183.gif_125x90.gif" onmouseover="this.src='http://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Smiley_head_happy.png/50px-Smiley_head_happy.png'" onmouseout="this.src='http://content.mobango.com/media/picture/gif/00000012/thumbnail/size_125x90/159183.gif_125x90.gif'" />
    There maybe a way though, can you send me your menu?
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by Nile View Post
    The way to go would be javascript.
    Actually, you can do this with CSS. The technique is called CSS sprites and it's usually a smoother and more accessible option.

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
  •