Last edited by Big Frank; 16 April 2009 at 12:23 PM.
If someone tried to make me dig my own grave I would say No.
They're going to kill me anyway and I'd love to die the way I lived:
Avoiding Manual Labour.
I think it's taken for granted that on this site we will be faced with large graphics - it is after all a graphics website and I did apologise for the rather large size. Your customers, on the other hand, are on a performance car parts website and anyway with an animation that large they will not see the various slides of the animatyion because by the time they load they'll have moved off to another page. Remember, users do not linger the way you do on your own site.
Until last week for the past 4 years all I had was 128kbs ISDN. I am therefore fairly bandwidth-aware. I now have 512kbs ADSL. Party time!
If someone tried to make me dig my own grave I would say No.
They're going to kill me anyway and I'd love to die the way I lived:
Avoiding Manual Labour.
As Availor say's Flash can do this fairly easily. You can view a demo HERE
If you hit the Refresh button it should start with a random image each time. The sequence of display is also random. The swf loads one of 7 jpg's (each about 16Kbs each so it should only take 4 seconds per jpg to load on a 56 Kb dial-up connection)
On BF's point, your animated gif size of 252Kb is a bit large, but if I remember correctly gif files download and display sequentially, so each gif in your file is (252/7 = 36Kb) so as soon as that first 36Kb gif is loaded it displays. (8 seconds on a 56 Kb dial-up connection). However that said it still has to load all the other images etc on your page whilst it still chugs away at downloading this 252Kb gif file. Finally the animated gif route has the BIG disadvantage of only being able to use gifs thus restricted to 256 colours and for photographs not as small as jpg's.
Egg
Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
Thanks very much, looks cool
Frank, what sort of size should i be aiming at if i stick with an animated gif? i've been reading the links from a4hire and Availor and learning from them so hopefully i'll be able to change it soon <bit trial and error, first no doubt>I think it's taken for granted that on this site we will be faced with large graphics - it is after all a graphics website and I did apologise for the rather large size. Your customers, on the other hand, are on a performance car parts website and anyway with an animation that large they will not see the various slides of the animatyion because by the time they load they'll have moved off to another page. Remember, users do not linger the way you do on your own site.
Until last week for the past 4 years all I had was 128kbs ISDN. I am therefore fairly bandwidth-aware. I now have 512kbs ADSL. Party time!
is it really large? the whole page (and animation) loads for me in seconds, i've set the time between frames but the whole gif loads quickly, i understand what you saying but my aim was not for them linger to see the various slides but rather have a random image each time someone visits the site
Suunto,
Yes it will. You've viewd your page numerous times. When you view a web page all the images etc are held in your computer cache (temporary internet files), so the second time you view it it doesn't download from the web server but loads from your computers cache, so it will appear to load in a second as it doesn't have to fetch everything from the web server the second time.the whole page (and animation) loads for me in seconds
One way of calculating how quickly your page will download is to add the file size of every image on the page (plus any background image). Say this comes to 400Kb's. Now to calculate how long this page takes for a visitor on a 56kb dial-up connection devide 400Kb by 4 = 100. So your site will take approx 100 seconds to download in full. Far to long. You cannot ignore dial up visitors.
Egg
Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
Thanks Egg,
your right, i can't ignore dial up visitors, i really didn't realise it was too big, when Big Frank said it was too big, i went into internet options and deleted the temporary internet files and tried it again. it was still quick so i will change it but at the end of the day my aim was for it display a random image each time so i will give the java a go, thanks again
Your file size is almost just an aside. I think the conclusion of this thread is that you are certainly using the wrong tool for the job. If you want to display a random image every time somebody loads your home page an animated gif is not the tool for the job. I would use PHP, Javascript or, as a last resort, Flash, but never GIF.
If someone tried to make me dig my own grave I would say No.
They're going to kill me anyway and I'd love to die the way I lived:
Avoiding Manual Labour.
Suunto, do you want the images to rotate once on the page? Or are you happy with each time somone visits they get a random image?
I'd start a revolution, if I could get up in the morning.
Bookmarks