|
-
Apr 15th, 2001, 07:45 AM
#1
Thread Starter
Addicted Member
-
Apr 15th, 2001, 07:50 AM
#2
Monday Morning Lunatic
It uses JavaScript and DHTML to scroll it along. Just right click on the image and choose "View Source".
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 15th, 2001, 07:58 AM
#3
Thread Starter
Addicted Member
Yeh I kind of already did that, the problem is that as I'm new to JavaScropt and that, I need to know which code belongs to scrolling the image and which is for other bit's. Can some just show me the part which does the scrolling so that I may be able to apply it to my own image.
THANKS IN ADVANCE
-
Apr 19th, 2001, 11:27 PM
#4
PowerPoster
this is the function which makes the image scroll:
Code:
function tick() {
if (ver ==3) return
if (ns){
document.first.offset(-pix,0);
document.second.offset(-pix,0);
if (document.first.left <= again) document.first.left = ImgWidth;
if (document.second.left <= again) document.second.left = ImgWidth;
}
else {
newpix = document.all["first"].style.pixelLeft - pix;
newpix2 = document.all["second"].style.pixelLeft - pix;
document.all["first"].style.pixelLeft = newpix;
document.all["second"].style.pixelLeft = newpix2;
if (document.all["first"].style.pixelLeft <= again) document.all["first"].style.pixelLeft = ImgWidth;
if (document.all["second"].style.pixelLeft <= again) document.all["second"].style.pixelLeft = ImgWidth;
}
setTimeout('tick()', time);
}
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|