PDA

View Full Version : Scripts



Stargrrl
02-21-2006, 07:45 PM
I've placed this script on my web page:

http://amydawnelle.com/temp/index2.htm

and it works fabulous except for the fact that when I view it in Mozilla Firefox the scroll bar dissapears and reappears making the screen jump from right to left.

When I view the same code here in Dynamic Drive:

http://www.dynamicdrive.com/dynamicindex3/leaves.htm

again using Firefox, it doesn't happen. Just on my page. Any help would be awesome as I think my client is going to really like the script, it'll be a shame if we can't use it.

Thanks!
Amelia :cool:

PS does this work on MAC? I didnt see that info anywhere...

Twey
02-21-2006, 07:49 PM
Happens for me on the demo page too. Just stop the leaves going off the bottom of the screen:
if (Ypos[i] > WinHeight - 60) {
Ypos[i]=-60;... where 60 is the height of the image, in pixels.

Stargrrl
02-21-2006, 08:03 PM
Thanks! That worked perfectly...

A