PDA

View Full Version : Iframe Scroller Continuous Scrolling Question



Cody
11-26-2006, 05:42 PM
1) Script Title: Iframe scroller

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/iframe-scroller.htm

3) Describe problem:

I am very grateful for the scripts on Dynamic Drive. I do not have any real Java, Html, PHP, and ad nauseum experience.
The Iframe scroller suits my needs for a simple scroller on my site, but I was wondering if there is a way to get it to coninuously scroll without the text just jumping in and filling the frame after it reaches the end of the available data for the scroller and restarts. I have been reading the previous posts about the scroller, but couldn't locate an answer to this question.
Any help is greatly appreciated.

Thank you,
Cody
www.aldersonarts.com

Ha Ha! After I posted this I noticed that the snow effect script http://www.dynamicdrive.com/dynamicindex3/snow.htm causes the scroller to pause when the snowflakes go over top the Iframe.

ddadmin
11-27-2006, 01:54 AM
It's possible to edit the scroller so the animation is continuous when it hits the end, though the changes to the script in order to archive this isn't trivial. If I find the time I'll add such an update, assuming there is enough interest in it. The Conveyour belt slideshow (http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm) script is one of the scripts that was modified to be continous scroll btw.

Cody
11-27-2006, 07:17 AM
I'm interested in such an update. Surely that is all that is needed . . . Right? ;)

ddadmin
11-27-2006, 09:52 AM
Lol well it's a start, one person that is :)

Cody
11-27-2006, 02:52 PM
The conveyor belt slideshow really wouldn't work for what I want it for. I really like the Iframe scroller because the content can be stored and manipulated in an external html document. This makes it quite easy to update information I want my visitors to see.
Also, unless there is a voting thingy somewhere around here I have to wait for others that try out this script to be motivated enough to join a forum and post a thread about the need for continuous scrolling. How can you be so cruel to such a lowly peasant? :D

Cody
11-28-2006, 05:35 PM
As a temporary fix I added some line breaks that correspond to about the height of the Iframe which gives the illusion of continuous scrolling. It works okay in IE 6 and Firefox 2. I didn't check it with any other browsers.

dgimeno
03-26-2014, 09:50 AM
I made a little change that gives a continuous-like look:


function scrollDiv(){
dataobj.style.top=(parseInt(dataobj.style.top)-scrollspeed)+"px";
if (parseInt(dataobj.style.top)<-thelength) {
dataobj.style.top=(thelength % 2)+"px"; ///dataobj.style.top="5px";
}
setTimeout("scrollDiv()",40);
}