Email conversation
From | Vinny |
To | Me |
Subject | Falling snow Javascript query |
Date | 16 May 2004 05:57 |
Hello-
I have learnt a lot from your website on creating javascript based falling
images for website. I appreciate your outstanding website reference. The
query I have relates to controlling the falling snow/object to one portion
of the browser window rather than the object jumping across the whole
window screen. I am using an angel instead of snow and am using 1 angel in
qty. I want it to browse in an area of the window that excludes the text
and pictures. Is it possible and if so, how can I accomplish this.
Thanks for all your support.
Vinny
URL reference: http://xx.x.xxx.x/xxxxxxx.xxxx
From | Me |
To | Vinny |
Subject | Re: Falling snow Javascript query |
Date | 17 May 2004 09:26 |
Vinny,
I notice that the width of the area you want it to use never changes, and
it is on the left, so it should be a simple case of forcing the script to
believe that is the size of the window.
There is no need to measure window width, as you always want the image to
move within the same width area, so use
doc_width = 295
You should be able to edit that number to make it fit, but 295 is a good
start.
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/