The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Moving ghosts for halloween 'moveobj.js'
Hello all
OK little help needed please I am trying to stick a couple of moving ghosts on my forum for Halloween but am having a little trouble getting it to work. The website I am using for the js files and info is http://www.dynamicdrive.com/dynamicindex4/flyimage.htm I have tried editing the forumhome and forumdisplay templates to get this to work. I have 3 bits of text, a javascript file and 2 ghost gifs to use but just can't get them to move about. Does anyone know if I am editing the wrong files or doing something I shouldnt? Thanks Stuart |
#2
|
||||
|
||||
Put it in the headinclude template...
Satan |
#3
|
|||
|
|||
Thanks guys, I add the whole script in the head include?
|
#4
|
|||
|
|||
I cant work this out ok 3 groups of text:
(this goes into the <head> section of your page) <script language="JavaScript" SRC="moveobj.js"> </script> <script> var chip1; var chip2; var chip3; //add or delete more variables, depending on how many images you're using function pagestart() {checkbrOK(); chip1=new Chip("chip1",60,80); chip2=new Chip("chip2",60,80); chip3=new Chip("chip3",60,80); //add or delete more of the above, depending on how many images you're using if(brOK) { movechip("chip1"); movechip("chip2"); movechip("chip3"); //add or delete more of the above, depending on how many images you're using } } </script> (This next one goes into the <body> section of your page, outside any other tags) <DIV ID="chip1" STYLE="position:absolute; width:47; height:68;"> <A HREF="some.html"><IMG SRC="../ballon3.gif" BORDER=0></a> </DIV> <DIV ID="chip2" STYLE="position:absolute; width:47; height:68;"> <A HREF="some.html"><IMG SRC="../ballon4.gif" BORDER=0></a> </DIV> <DIV ID="chip3" STYLE="position:absolute; width:47; height:68;"> <A HREF="some.html"><IMG SRC="../ballon2.gif" BORDER=0></a> </DIV> (And this one goes inside the <body> tag itself) <body onLoad="pagestart();" onUnload="if(brOK) {stopme('chip1'); stopme('chip2'); stopme('chip3');}" > So can anyone please tell me what templates I need to edit for it please? Can't get it to work myself! Thanks Stuart |
#5
|
||||
|
||||
The header template for both I believe...
Im sorry, but I dont know enough about vB templates Satan |
#6
|
||||
|
||||
Hey Made it work on my site
http://www.noxmedia.net/support/ Do it like this in headerinclude before $headnewpm add: Code:
<script language="JavaScript" SRC="moveobj.js"> </script> <script> var chip1; var chip2; var chip3; //add or delete more variables, depending on how many images you're using function pagestart() {checkbrOK(); chip1=new Chip("chip1",60,80); chip2=new Chip("chip2",60,80); chip3=new Chip("chip3",60,80); //add or delete more of the above, depending on how many images you're using if(brOK) { movechip("chip1"); movechip("chip2"); movechip("chip3"); //add or delete more of the above, depending on how many images you're using } } </script> at the beginning of the header add: Code:
<DIV ID="chip1" STYLE="position:absolute; width:47; height:68;"> <A HREF="some.html"><IMG SRC="images/ballon3.gif" BORDER=0></a> </DIV> <DIV ID="chip2" STYLE="position:absolute; width:47; height:68;"> <A HREF="some.html"><IMG SRC="images/ballon4.gif" BORDER=0></a> </DIV> <DIV ID="chip3" STYLE="position:absolute; width:47; height:68;"> <A HREF="some.html"><IMG SRC="images/ballon2.gif" BORDER=0></a> </DIV> Forum root, and then scroll down to the page layout options, in the body tag at the end replace: Code:
"> Code:
" onLoad="pagestart();" onUnload="if(brOK) {stopme('chip1'); stopme('chip2'); stopme('chip3');}"> -Arunan |
#7
|
|||
|
|||
Hi Arunan
Thanks very much thats done the trick, Thanks again Stuart |
#8
|
||||
|
||||
No problem, what is the link to your site anyways?
Again happy to help, enjoy -Arunan |
#9
|
|||
|
|||
Anyone tried this with 3.5.0, would be great for halloween coming up shortly.
|
#10
|
|||
|
|||
ignore me, all sorted. Above still works great
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|