Results 1 to 5 of 5

Thread: mouseover ToolTip Script

  1. #1
    Join Date
    Sep 2011
    Location
    MD
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mouseover ToolTip Script

    Someone please help.
    The very first line in the script below appears to be needed, with the ajax.googleapis.com part.

    OK, but there's a whole bunch of other stuff, and I've successfully converted it all to my site, and it works like a charm. I'd just like to know if there's a way to make it work without that line. Like an alternative to that line, or at least help me understand what it does.

    I've tried removing it, the "src" part to the end of the statement and sure enough, it keeps it from working properly.

    What is the work around, if any, instead of having that line?

    Thanks,

    Chimbo



    Tooltip script:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

    <link rel="stylesheet" type="text/css" href="ddimgtooltip.css" />

    <script type="text/javascript" src="ddimgtooltip.js">

    /***********************************************
    * Image w/ description tooltip v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
    ***********************************************/

    </script>

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    This line
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    is a link to the jQuery javascript library hosted on googles server. jQuery is needed for the tooltip script to work. If you will you can download it, and put it on your own server, but you still need a link to it. There is really no workaround if you want to use this tooltip script
    http://www.dynamicdrive.com/dynamici...agetooltip.htm

  3. #3
    Join Date
    Sep 2011
    Location
    MD
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by azoomer View Post
    This line
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    is a link to the jQuery javascript library hosted on googles server. jQuery is needed for the tooltip script to work. If you will you can download it, and put it on your own server, but you still need a link to it. There is really no workaround if you want to use this tooltip script
    http://www.dynamicdrive.com/dynamici...agetooltip.htm
    Thats fine, but it seems like for the code I've learned to implement, there is still some 'secret' code, which I'd rather know what it does, instead of blindly having to use it.

    But thanks for your help, I'll go through this too.

  4. #4
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    It isn't a really "secret", and you could easily look through the jQuery API to learn more about it.

    Removing the line is possible, but would require a complete redesign of the script.
    Verzeihung!

  5. #5
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    If you prefer to avoid jQuery, then here is an example of another tooltip script that doesn't require jQuery:
    http://www.dynamicdrive.com/dynamici...oontooltip.htm

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
  •