need help with javascript
need help with javascript
i am trying to get an animated gif to play after another gif has finished animating on a webpage, someone sugested to me to use javascrpt timing to load a page after the animation has finished in the same window, i had looked for the coding for it on the net but with little suces, if anyone could help me with this problem or give me the coding for it i would be greatful.
I'm not sure but if I were you just google for java functions or java timing. A problem with using that sometimes when it includes graphics is that slow computers with slow connections it turns out not looking so great.
Jonas
Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
if that's all that's on the page, just do a refresh and point to a different url in html. depends on exactly what you're doing i guess.
this bad example loads a page displaying image 1 and 10 seconds later it refreshes to image 2. this doesn't just swap out an image though. it actually refreshes the window with a new url.
this bad example loads a page displaying image 1 and 10 seconds later it refreshes to image 2. this doesn't just swap out an image though. it actually refreshes the window with a new url.
Code: Select all
<html>
<head>
<meta http-equiv="refresh" content="10;URL=http://www.mydomain.com/image2.gif>
</head>
<body bg color=-#ffffff">
<p> <img src="http://www.mydomain.com/image1.gif"</p>
</body>
</html>
oops forgot to log in.
thnx pete, works a treat, i stil havnt finished it properly yet but you can have a look at what i have got so far.
http://myweb.tiscali.co.uk/scottswebpage
and any coments on it would be good aswel.
at the moment it is not suitable for dial up conections as the files are so big, hopefuly i may convert it into a flash website, but my skills with flash are limited at the moment.
so if you do have a dial up connection u may have to go throught it once, and then load the main page again so that the animations play at the same time.
thnx pete, works a treat, i stil havnt finished it properly yet but you can have a look at what i have got so far.
http://myweb.tiscali.co.uk/scottswebpage
and any coments on it would be good aswel.
at the moment it is not suitable for dial up conections as the files are so big, hopefuly i may convert it into a flash website, but my skills with flash are limited at the moment.
so if you do have a dial up connection u may have to go throught it once, and then load the main page again so that the animations play at the same time.
*GD*