HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1249
Number of posts: 3348

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
IFrame Scroller Posted by R.W.B. on 14 Jan 2003 at 2:00 PM
Any help on why when a IFrame loads on a website that sometimes it hesitates or gets stuck and won't scroll? This problem does not happen every time the page loads. I can not regenerate this problem, it happens when it wants to. Any suggestions or solutions?
Report
Re: IFrame Scroller Posted by owen1 on 14 Jan 2003 at 2:05 PM
: Any help on why when a IFrame loads on a website that sometimes it hesitates or gets stuck and won't scroll? This problem does not happen every time the page loads. I can not regenerate this problem, it happens when it wants to. Any suggestions or solutions?
:
check if it only happens on your machine. most likely the browser is loading the page. nothing to worry about really. probably you machine is slow.


http://owensoft.20m.com
check out my current projects: http://www.owensoft.net

Report
Re: IFrame Scroller Posted by R.W.B. on 14 Jan 2003 at 2:21 PM
: : Any help on why when a IFrame loads on a website that sometimes it hesitates or gets stuck and won't scroll? This problem does not happen every time the page loads. I can not regenerate this problem, it happens when it wants to. Any suggestions or solutions?
: :
: check if it only happens on your machine. most likely the browser is loading the page. nothing to worry about really. probably you machine is slow.
:

: http://owensoft.20m.com
: check out my current projects: http://www.owensoft.net
:
:
It has happened on multiple machines. But as I mentioned, it does it whenever it wants to! There's not one thing I can pin point it to. It happens about 1 out every 8 times.
Report
Re: IFrame Scroller Posted by R.W.B. on 14 Jan 2003 at 2:23 PM
: : : Any help on why when a IFrame loads on a website that sometimes it hesitates or gets stuck and won't scroll? This problem does not happen every time the page loads. I can not regenerate this problem, it happens when it wants to. Any suggestions or solutions?
: : :
: : check if it only happens on your machine. most likely the browser is loading the page. nothing to worry about really. probably you machine is slow.
: :

: : http://owensoft.20m.com
: : check out my current projects: http://www.owensoft.net
: :
: :
: It has happened on multiple machines. But as I mentioned, it does it whenever it wants to! There's not one thing I can pin point it to. It happens about 1 out every 8 times. Also, it is a automatic scroller that starts when the page is loaded and stops when the mouse hovers over it. Does it matter where it's loading in the script?


Report
Re: IFrame Scroller Posted by owen1 on 14 Jan 2003 at 2:40 PM

:Also, it is a automatic scroller that starts when the page is loaded and stops when the mouse hovers over it. Does it matter where it's loading in the script?


you should have said so in the first place, might be a bug in the scroller code, you should check the code again - if you wrote it.


http://owensoft.20m.com
check out my current projects: http://www.owensoft.net

Report
Re: IFrame Scroller Posted by R.W.B. on 14 Jan 2003 at 3:00 PM
:
: :Also, it is a automatic scroller that starts when the page is loaded and stops when the mouse hovers over it. Does it matter where it's loading in the script?
:
:
: you should have said so in the first place, might be a bug in the scroller code, you should check the code again - if you wrote it.
:

: http://owensoft.20m.com
: check out my current projects: http://www.owensoft.net
:
: Here is the code that makes it scroll, it is from dynamicdrive.com. I can not point anything in the code that looks odd.
***************************
<div id="datacontainer" style="position:absolute;left:0;top:10;width:100%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">

<!-- ADD YOUR SCROLLER COMMENT INSIDE HERE--------------------->

<!-- END SCROLLER CONTENT---------------------------------------->

</div>

<script language="JavaScript1.2">

//<iframe> script by Dynamicdrive.com

//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=2

function initialize(){
marqueeheight=document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top=5
thelength=dataobj.offsetHeight
scrolltest()
}

function scrolltest(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top=5
setTimeout("scrolltest()",50)
}

window.onload=initialize

</script>
************************************

Report
Re: IFrame Scroller Posted by owen1 on 14 Jan 2003 at 3:17 PM
:function scrolltest(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top=5
setTimeout("scrolltest()",50)
}

why is the "scrolltest()" setting it's own time out? try calling setTimeout("scrolltest()",50) outside of the "scrolltest()" function. Probably the scrolltest() function is continously set a time out for it self. otherwise stop scrolling the window - if you don't like it.


http://owensoft.20m.com
check out my current projects: http://www.owensoft.net

Report
Re: IFrame Scroller Posted by R.W.B. on 14 Jan 2003 at 3:32 PM
: :function scrolltest(){
: dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
: if (parseInt(dataobj.style.top)<thelength*(-1))
: dataobj.style.top=5
: setTimeout("scrolltest()",50)
: }
:
: why is the "scrolltest()" setting it's own time out? try calling setTimeout("scrolltest()",50) outside of the "scrolltest()" function. Probably the scrolltest() function is continously set a time out for it self. otherwise stop scrolling the window - if you don't like it.
:

: http://owensoft.20m.com
: check out my current projects: http://www.owensoft.net
:
: If it was continously set then it would happen 100% of the time. I need the IFrame to scroll because of the mass information to be displayed. Have you ever heard of these IFrame bugs I am having? By taking the setTimeout("scrolltest()",50) outside the function I get a run time error of dataobj. Does this IFrame need to load before or after anything else?

Report
Re: IFrame Scroller Posted by R.W.B. on 14 Jan 2003 at 3:44 PM
: : :function scrolltest(){
: : dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
: : if (parseInt(dataobj.style.top)<thelength*(-1))
: : dataobj.style.top=5
: : setTimeout("scrolltest()",50)
: : }
: :
: : why is the "scrolltest()" setting it's own time out? try calling setTimeout("scrolltest()",50) outside of the "scrolltest()" function. Probably the scrolltest() function is continously set a time out for it self. otherwise stop scrolling the window - if you don't like it.
: :

: : http://owensoft.20m.com
: : check out my current projects: http://www.owensoft.net
: :
: : If it was continously set then it would happen 100% of the time. I need the IFrame to scroll because of the mass information to be displayed. Have you ever heard of these IFrame bugs I am having? By taking the setTimeout("scrolltest()",50) outside the function I get a run time error of dataobj. Does this IFrame need to load before or after anything else?
:
: Never mind I think I got it fixed, Thanks for your help!

Report
Re: IFrame Scroller Posted by shelby72 on 4 Dec 2008 at 9:52 PM
: :
: : :Also, it is a automatic scroller that starts when the page is loaded and stops when the mouse hovers over it. Does it matter where it's loading in the script?
: :
: :
: : you should have said so in the first place, might be a bug in the scroller code, you should check the code again - if you wrote it.
: :

: : http://owensoft.20m.com
: : check out my current projects: http://www.owensoft.net
: :
: : Here is the code that makes it scroll, it is from dynamicdrive.com. I can not point anything in the code that looks odd.
: ***************************
: <div id="datacontainer"
: style="position:absolute;left:0;top:10;width:100%"
: onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">
:
: <!-- ADD YOUR SCROLLER COMMENT INSIDE HERE--------------------->
:
: <!-- END SCROLLER CONTENT---------------------------------------->
:
: </div>
:
: <script language="JavaScript1.2">
:
: //<iframe> script by Dynamicdrive.com
:
: //Specify speed of scroll. Larger=faster (ie: 5)
: var scrollspeed=cache=2
:
: function initialize(){
: marqueeheight=document.all? parent.document.all.datamain.height :
: parent.document.getElementById("datamain").getAttribute("height")
: dataobj=document.all? document.all.datacontainer :
: document.getElementById("datacontainer")
: dataobj.style.top=5
: thelength=dataobj.offsetHeight
: scrolltest()
: }
:
: function scrolltest(){
: dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
: if (parseInt(dataobj.style.top)<thelength*(-1))
: dataobj.style.top=5
: setTimeout("scrolltest()",50)
: }
:
: window.onload=initialize
:
: </script>
: ************************************
:
:
I'm having the same problem with the scrolling not working in Explorer. I get the following error:

I have installed this contribution and and am having the following errors with IE:

It displays the text in the box, but doesnt scroll.

Line 24

Char : 1

Error : Access is Denied

Code : 0

URL: ........../mainnews.php

How do I fix this?




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.