Results 1 to 3 of 3

Thread: Text and Image Crawler does not work with tooltip

  1. #1
    Join Date
    Aug 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Angry Text and Image Crawler does not work with tooltip

    1) Script Title: Text and Image Crawler

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

    3) Describe problem:

    Сrawler.js divides the tape for two div with 10 pictures (for example, if pictures 20).
    The first div with a negative bias, the second positive.
    Code:
    <div style="position: absolute; white-space: nowrap; top: 1px; left: -1353px"> <a href title="hint"><img src="">... </a></ div>
      <div style="position: absolute; white-space: nowrap; top: 1px; left: 712px"> <a href title="hint"><img src="">... </a></ div>
    And there is a script which tooltip.js link <a href title="hint"> makes a nice tooltip with a handler
    Code:
    <script>
     $ (Document). Ready (function (){$(" a "). EasyTooltip ()}); 
    </script>
    Why this handler does not work for the entire contents of the div with the left:-1353px. ? How fixed this bug?

    Also onmouseover="showhint()" don't work in Text and Image Crawler.

    Demo can be found here.
    Last edited by ravencrow; 08-12-2011 at 02:21 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't think this is valid jQuery code:

    Code:
    $ (Document). Ready (function (){$(" a "). EasyTooltip ()});
    It should be:

    Code:
    $(document).ready(function(){$("a").easyTooltip();});
    But that probably won't work if the document ready fires before crawler is done. Is your crawler in a table? If so are you using IE 7 or less to test? In that case crawler doesn't init until after document ready, it goes on window.onload.

    Even in newer IE and other browsers, the exact timing may be off, probably as crawler has to wait for its images to load.

    You could try:

    Code:
    $(window).load(function(){$("a").easyTooltip();});
    And as long as the crawler isn't in a table, that might work for all. If it's in a table, there may or may not be problems in IE 7 and less. There could still be timing issues.

    If you want more help, make the above suggested change to:

    Code:
    $(window).load(function(){$("a").easyTooltip();});
    And:

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ravencrow (08-12-2011)

  4. #3
    Join Date
    Aug 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks John, it's work
    Code:
    $(window).load(function(){$("a").easyTooltip();});

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
  •