PDA

View Full Version : How to make jump to top script jump to different URL



Brett
01-11-2005, 03:23 AM
Script: Jump to top
http://dynamicdrive.com/dynamicindex5/jumptop.htm

The description for the 'jump to top' script states that 'you can easily alter this script to navigate to a URL instead'. Unfortunately, I'm new to all of this. How do I make the change to have the script jump to a different URL rather than to the top of the current page.

Thanks for your help.......Brett

simonf
01-11-2005, 10:12 AM
Hi

Change the following var to whatever you want:

var logolink='javascript:window.scrollTo(0,0)'

I.E: var logolink='http://www.dynamicdrive.com'

rgds,Simonf:cool:

Brett
01-12-2005, 01:47 AM
Thanks for the help