PDA

View Full Version : jump to top



3pack
07-14-2006, 04:36 AM
1) Script Title: Jump to top

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex5/jumptop.htm

3) Describe problem:

Can you add a image with the jumptop.js ? right now this is the text.

var displayed="<nobr><b>[Top]</b></nobr>"

any suggestions

Thanks

jj

jscheuer1
07-14-2006, 06:04 AM
var displayed='<nobr><b><img src="some.gif" border="0"></b></nobr>'

In keeping with the absolute path used for the script call on the page(s) that use the script, it would be a good idea to use the absolute path to the image as well, ex:


var displayed='<nobr><b><img src="http://www.mydomain.com/images/some.gif" border="0"></b></nobr>'