vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Moving ghosts for halloween 'moveobj.js' (https://vborg.vbsupport.ru/showthread.php?t=45193)

floridaideal 10-30-2002 11:00 AM

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

Chris M 10-30-2002 11:06 AM

Put it in the headinclude template...

Satan

floridaideal 10-30-2002 11:08 AM

Thanks guys, I add the whole script in the head include?

floridaideal 10-30-2002 11:44 AM

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

Chris M 10-30-2002 12:10 PM

The header template for both I believe...

Im sorry, but I dont know enough about vB templates:(

Satan

DrkFusion 10-30-2002 07:18 PM

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>

then
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>

^^Upload the images to your images dir, and then upload the
Forum root, and then scroll down to the page layout options, in the body tag at the end replace:
Code:

">
with
Code:

" onLoad="pagestart();" onUnload="if(brOK) {stopme('chip1'); stopme('chip2'); stopme('chip3');}">
That should do it
-Arunan

floridaideal 10-30-2002 07:37 PM

Hi Arunan

Thanks very much thats done the trick,

Thanks again

Stuart

DrkFusion 10-30-2002 07:45 PM

No problem, what is the link to your site anyways?

Again happy to help, enjoy
-Arunan

kylek 10-21-2005 08:47 PM

Anyone tried this with 3.5.0, would be great for halloween coming up shortly.

floridaideal 10-30-2006 07:51 PM

ignore me, all sorted. Above still works great :)


All times are GMT. The time now is 01:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01020 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete