EquinoxWorld
06-23-2011, 02:42 PM
This is in reference to the modification "Multi-purpose use of a plugin Tabbed Filmstrip (https://vborg.vbsupport.ru/showthread.php?t=264213)". I am basically trying to load the marquee on pause on page load and use the buttons to start, pause, scroll left or right. My problem is if I use JavaScript it only stops the marquee after page-load and not before so the marquee starts a bit and then after the page load the JavaScript command kicks in and stops it; I want to be able to stop it as soon as the page loads and not after.
I am using this in headinclude template:
<script language="JavaScript">
window.onload=function(){
myMarquee.stop();
}
function function1(){
document.all.myMarquee.direction = "left";
}
function function2(){
document.all.myMarquee.direction = "right";
}
function function3(){
document.all.myMarquee.stop();
}
function function4(){
document.all.myMarquee.start();
}
</script>
For the marquee and buttons I am using this:
<marquee id="myMarquee" BEHAVIOR=ALTERNATE> {vb:raw film_seriti}a></marquee>
<img src="http://aniworlds.net/members/equinox/albums/random-renders/1874-left.png" onclick="function1();">
<img src="http://aniworlds.net/members/equinox/albums/random-renders/1877-stop.png" onclick="function3();">
<img src="http://aniworlds.net/members/equinox/albums/random-renders/1876-start.png" onclick="function4();">
<img src="http://aniworlds.net/members/equinox/albums/random-renders/1875-right.png" onclick="function2();">
This makes the marquee stop after the page load which is what the window.onload=function(){myMarquee.stop();} command is for. It waits until it loads all the html loads then executes that JavaScript command. I use this because I want the marquee to load in pause position. The only problem is that since the marquee is html it starts to load the marquee as the page loads and then after it's done loading then the JavaScript stops the marquee (but after it had already started). I want the marquee to load on pause completely before the html loads. Is there any way to do that?? If there is anyone who has any ideas please let us know. Any feedback will be appreciated. Thank you for your time.
You can see this in action here (http://aniworlds.net/forums/).
P.S.: Also for some reason in FF the buttons I put do not work. Or the marquee stops. Any ideas why??
I am using this in headinclude template:
<script language="JavaScript">
window.onload=function(){
myMarquee.stop();
}
function function1(){
document.all.myMarquee.direction = "left";
}
function function2(){
document.all.myMarquee.direction = "right";
}
function function3(){
document.all.myMarquee.stop();
}
function function4(){
document.all.myMarquee.start();
}
</script>
For the marquee and buttons I am using this:
<marquee id="myMarquee" BEHAVIOR=ALTERNATE> {vb:raw film_seriti}a></marquee>
<img src="http://aniworlds.net/members/equinox/albums/random-renders/1874-left.png" onclick="function1();">
<img src="http://aniworlds.net/members/equinox/albums/random-renders/1877-stop.png" onclick="function3();">
<img src="http://aniworlds.net/members/equinox/albums/random-renders/1876-start.png" onclick="function4();">
<img src="http://aniworlds.net/members/equinox/albums/random-renders/1875-right.png" onclick="function2();">
This makes the marquee stop after the page load which is what the window.onload=function(){myMarquee.stop();} command is for. It waits until it loads all the html loads then executes that JavaScript command. I use this because I want the marquee to load in pause position. The only problem is that since the marquee is html it starts to load the marquee as the page loads and then after it's done loading then the JavaScript stops the marquee (but after it had already started). I want the marquee to load on pause completely before the html loads. Is there any way to do that?? If there is anyone who has any ideas please let us know. Any feedback will be appreciated. Thank you for your time.
You can see this in action here (http://aniworlds.net/forums/).
P.S.: Also for some reason in FF the buttons I put do not work. Or the marquee stops. Any ideas why??