Results 1 to 3 of 3

Thread: Facebox on hover over link text?

  1. #1
    Join Date
    Mar 2011
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Facebox on hover over link text?

    1) Script Title: Facebox image and content viewer (v 1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ebox/index.htm

    3) Describe problem: I got this to work fine, linking to an external file, clicking on the link text, but I would like instead for the external file facebox to pop up on hovering over the text instead of clicking. Is this possible?

    Cheers

    Chris

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,076
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Where you have:

    Code:
    <script type="text/javascript">
        jQuery(document).ready(function($) {
          $('a[rel*=facebox]').facebox() 
        })
    </script>
    Add the highlighted:

    Code:
    <script type="text/javascript">
        jQuery(document).ready(function($) {
          $('a[rel*=facebox]').facebox() 
          $('a[rel*=facebox]').bind('mouseenter', function(){$(this).trigger('click');});
        })
    </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2011
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Excellent!

    thank you very much.

    C

Similar Threads

  1. Problem with CSS IMAGE GALLERY (Image on text link hover)
    By userforum in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 10-14-2012, 05:43 PM
  2. How to add text to Facebox?
    By Daventry in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-07-2011, 01:59 PM
  3. Resolved Facebox link jumps to new line in Firefox
    By JPry in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 10-23-2010, 04:20 PM
  4. How to ADD text to Facebox image??
    By bluetooter in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 10-17-2010, 05:20 AM
  5. Image changes on Link Hover?
    By Hikoto in forum JavaScript
    Replies: 6
    Last Post: 12-03-2006, 07:02 PM

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
  •