That script looks rather convoluted.
On first glance, I'd say you may have to initialise i again when you use that routine a second or third time.
Alternatively, turn it into a separate javascript, e.g. slideshow.js that you can call up, using different sets of pictures.
Ad
05-15-2005, 02:20 PM
M.J
05-15-2005, 02:26 PM
i will try that ....
thanks 4 ur reply :)
M.J
05-17-2005, 03:31 AM
i tried what u just said but it didn't work and i still have the same problem..
**************************************************
i attach a zip file to this Thread
* test.html
(it view 1 set of pictures and it is working fine .. this code call 4 java script file)
* code1.js
* code2.js
* code3.js
* code4.js
* p1.jpg
* p2.jpg
* p3.jpg
* p4.jpg
***************************************
if i duplicate the code in the file test.html in order to have 2 set of pictures with the same animation .. i am going to have this errore :
'(tdiv.style.left)' is null or not an object
***************************************
i hope this information can help u to fix that error
RealBlackStuff
05-17-2005, 10:15 AM
When I duplicate that code, a second picture shows under the first moving lot.
The second picture does not change, it remains fixed on the red sunset.
No errors however.
My PC does not have MS Java, I uninstalled that and put Sun Java JRE 1.5.0.2 on instead.
That might be the reason.
You'll have to experiment yourself with this, I don't have the time I'm afraid.