Page 1 of 1
need help with javascript
Posted: Wed Nov 16, 2005 8:25 pm
by Guest
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.
Posted: Wed Nov 16, 2005 10:45 pm
by jonas
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.
Posted: Thu Nov 17, 2005 1:30 am
by Pete
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.
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>
Posted: Sat Nov 26, 2005 1:12 am
by scott
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.
Posted: Sat Nov 26, 2005 7:12 pm
by Guest
I can't be bothered logging in righ now. The website looks cool. The problem is right now I'm on the slow part of my connection eg 60kbs when usually it's 1mbs and it take ages to load. BTW I am Microman171