1
THCowboy
onLoad="getTime()" in body tag doesn't work
  • 2006/7/12 19:31

  • THCowboy

  • Just popping in

  • Posts: 84

  • Since: 2005/6/28


Hi there!

I am trying to add some javascript to this page
http://www.tablehockeyheaven.com/king_of_table_hockey/

I added the script to the head tag of my theme.html and then added onLoad="getTime()" to the body tag of theme.html

If you go to the page above you will see the gif's trying to load over and over again.

Can anybody see why that is? should this script work with xoops?

Thanks

2
Dave_L
Re: onLoad="getTime()" in body tag doesn't work
  • 2006/7/12 20:07

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The Javascript looks like it's working correctly:

le="color: #000000"><?php newtime = window.setTimeout("getTime();", 1000);
is causing the function to run once/second.

It's probably not looking in the right directory for the image files, so you'll need to add more of the path in the image filenames:

le="color: #000000"><?php c1 = new Image(); c1.src = "1c.gif"; ...

3
THCowboy
Re: onLoad="getTime()" in body tag doesn't work
  • 2006/7/12 20:27

  • THCowboy

  • Just popping in

  • Posts: 84

  • Since: 2005/6/28


Thanks Dave_L

I think I have done that in the past too!

I fixed it by putting the gifs into the folder the script
was looking for.... I knew it was something simple.

Cheers, Warren