Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 37

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Location
    UK
    Posts
    216

    Default Animated gifs on a website :)

    hi all, i've made an animated gif of subarus in xtreme to add to the index page of my website.
    The idea i was hoping to get, was the cars would be random whenever anyone looked at the site but it always starts from the first cars (frame) and each set of cars is displayed after that at the time frame i've set

    is there anyway to get it so instead of the first frame always showing, it might happen to come in on the third frame or any other frame ..........as if the animated gif was working all the time and it just depended on when the site come up on your browser as to what frame it fell on. hope that makes sense http://i47.photobucket.com/albums/f1...acing/ets1.gif
    http://i47.photobucket.com/albums/f1...acing/ets2.gif
    http://i47.photobucket.com/albums/f1...acing/ets3.gif


  2. #2

    Default Re: Animated gifs on a website :)

    An animated gif file will always start with the 1st frame so it will always look the same.
    You probably need to find a java script or applet that will display random images.
    Bruce
    ----------------------------------------------------------
    Happiness is free for the taking, Please take some for yourself
    Artist For Hire

  3. #3
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Animated gifs on a website :)

    I don't know of a way to get a single animated gif start on a random frame.

    I do know that you can use javascript and using multiple animated gif files you can randomly select a file to start and randomly select another one to begin when the first and subsequent files end.

    I don't have any sample code for that at this time.

    A search on google will probably return several results about how to do that.

    EDIT: Looks like Bruce where there with good advice before I was
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  4. #4
    Join Date
    Dec 2000
    Location
    Hautes Pyrénées, France
    Posts
    5,083

    Default Re: Animated gifs on a website :)

    Holy mother of Kazan, how big are those gifs???

    I just checked. 253Kb... a little large for an index page opening graphic, don't you think?
    Last edited by Big Frank; 10 October 2006 at 06:26 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.

  5. #5
    Join Date
    Oct 2006
    Location
    UK
    Posts
    216

    Default Re: Animated gifs on a website :)

    Quote Originally Posted by Big Frank View Post
    Holy mother of Kazan, how big are those gifs???

    I just checked. 253Kb... a little large for an index page opening graphic, don't you think?
    i hadn't really considered it until you said i haven't got the fastest broadband connection but the page loads within a few seconds

    your pelican jpeg is 212kb so i'd thought for an animated gif the size 252kb was ok but i take your point and i'm now trying it again

    Thanks very much A4Hire, i really appreciate the link and the offer of help if needed

  6. #6
    Join Date
    Dec 2005
    Location
    Greenfield, WI USA
    Posts
    3,444

    Default Re: Animated gifs on a website :)

    How are you coming up with 253? I rightclick on the images and properties tells me a figure totally different.
    -=Bob=-

  7. #7
    Join Date
    Nov 2004
    Location
    Israel
    Posts
    2,538

    Default Re: Animated gifs on a website :)

    You can use flash and start it with a different frame, or you can just make random frames appear each time you enter your website.
    Try the Kirupa tutorials

  8. #8
    Join Date
    Dec 2000
    Location
    Hautes Pyrénées, France
    Posts
    5,083

    Default Re: Animated gifs on a website :)

    Quote Originally Posted by -=Drifter=- View Post
    How are you coming up with 253? I rightclick on the images and properties tells me a figure totally different.
    I went to his website and right-clicked on his animation:
    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.

  9. #9
    Join Date
    Dec 2000
    Location
    Hautes Pyrénées, France
    Posts
    5,083

    Default Re: Animated gifs on a website :)

    Quote Originally Posted by suunto View Post
    i hadn't really considered it until you said i haven't got the fastest broadband connection but the page loads within a few seconds

    your pelican jpeg is 212kb so i'd thought for an animated gif the size 252kb was ok but i take your point and i'm now trying it again
    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.

  10. #10
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,936

    Default Re: Animated gifs on a website :)

    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

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •