Results 1 to 2 of 2

Thread: Jump to top Link help

  1. #1
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jump to top Link help

    Hello, im using the Jump to top Link script from here and everything is working except I want to use an image instead of text. How would I do this? Here is what I want to use:
    Code:
    img src="includes/templates/pure_black/images/float3-top2.gif
    Thanks!

  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

    Consider using:

    http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm

    It's more robust. However, the current script you have can be edited -

    At the very top of the jumptop.js file we see:

    Code:
    /***********************************************
    * Jump To Top Link Script- © Dynamic Drive (www.dynamicdrive.com)
    * Last updated Nov 13th, 03'.
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    //Specify the text to display
    var displayed="<nobr><b>[Top]</b></nobr>"
    
    ///////////////////////////Do not edit below this line////////////
    Change that to:

    Code:
    /***********************************************
    * Jump To Top Link Script- © Dynamic Drive (www.dynamicdrive.com)
    * Last updated Nov 13th, 03'.
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    //Specify the text to display
    var displayed='<img src="includes/templates/pure_black/images/float3-top2.gif" alt="">';
    
    ///////////////////////////Do not edit below this line////////////
    One thing to keep in mind though is that the path to the image as listed in its src attribute is relative to the page(s) using the script, not to the script itself. If there is any question or if the same script will be use by pages in different folders on your site, use the absolute path to the image.
    - John
    ________________________

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

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
  •