Results 1 to 6 of 6

Thread: Image Fade In on link rollover

  1. #1
    Join Date
    Apr 2010
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Arrow Image Fade In on link rollover

    Hey there,

    I'm looking for some type of script that will fade in an image when a user rolls over a link. I've found a few things on Google but I what I want, I couldn't find.

    What I want is when a user rolls over a link in one div, an image will fade in in another div.

    Any help would be great! I swear I'll love you forever. Thank you kind soul who answers me.

    -Jick

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    The fading part is the stamper. Not that it isn't doable, but fading in and out is a very very CPU intensive scripting process that can grind your site to a halt for those with lower than a T-3 connection.

    Obviously Flash can do it, but there are issues with that as well. JavaScript will probably be the answer.

    Have you looked into LightBox 2 ?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Apr 2010
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    I'm more talking along the lines of:

    http://wiki.github.com/madrobby/scri.../effect-appear

    Where the image appears but not in the same div

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    So you just take the source of that page as given:

    Code:
    <div id="appear_demo" style="display:none; width:80px; height:80px; background:#c2defb; border:1px solid #333;"></div>
    <ul>
      <li><a href="#" onclick="$('appear_demo').appear(); return false;">Click here for a demo!</a></li>
      <li><a href="#" onclick="$('appear_demo').hide(); return false;">Reset</a></li>
    </ul>
    And just put the JS on the dive where you want the image to appear.

    example:

    Code:
    <html>
    <head>
    <title appearing images</title>
    </head>
    
    <body>
    <div>
    <ul>
      <li><a href="#" onclick="$('appear_demo').appear(); return false;">Click here for a demo!</a></li>
      <li><a href="#" onclick="$('appear_demo').hide(); return false;">Reset</a></li>
    </ul>
    </div>
    
    <div><p>This is some other dive where nothing but this text appears. Nothing special about it here.</p></div>
    
    <div id="appear_demo" style="display:none; width:80px; height:80px; background:#c2defb; border:1px solid #333;"><p>The Image will appear down here!</p></div>
    </body>
    </html>
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jickpictures View Post
    I'm more talking along the lines of:

    http://wiki.github.com/madrobby/scri.../effect-appear

    Where the image appears but not in the same div
    Thanks so much for the link. Hope I can find more info from it.

    __________________
    The Joneses
    Last edited by clausiaa2; 04-19-2010 at 03:03 PM.

  6. #6
    Join Date
    Apr 2010
    Location
    New York
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you try some jquery scripts ?

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
  •