SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    rollover and rollout jQuery

    hi,
    i am trying to implement tool tip on a div which i positioned on a image.while a rollover alert as a example work fine, but i have a div which has a image. and i want it to open up in fade in sort of way when i over that positioned placement.how can i make my div display none until its hovered upon?
    All those who wander aren't lost.

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,332
    Mentioned
    192 Post(s)
    Tagged
    4 Thread(s)
    You cannot respond to a hover action on an element that is not there (hidden).
    Try wrapping it in another element (a DIV) and apply the JQuery event handling to *that* element - targeting your image.
    A simple approach is to change the class of your "hidden" element with JQuery when the "wrapper" element is hovered.
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains


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
  •