The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
This is in reference to the modification "Multi-purpose use of a plugin Tabbed Filmstrip". 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: Code:
<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>
Code:
<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();">
You can see this in action here. P.S.: Also for some reason in FF the buttons I put do not work. Or the marquee stops. Any ideas why?? |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|