need help with javascript

Discuss any other topics here
Post Reply
Guest

need help with javascript

Post 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.
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post 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.
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
Pete
Posts: 46
Joined: Tue Jul 12, 2005 2:07 pm

Post 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>
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post 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.
*GD*
Guest

Post 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
Post Reply