Welcome to TalkGraphics.com
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
  1. #21
    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
    Hi AntonyF, my aim was to get a random image display, each time someone visits my site
    Then script it with PHP or Javascript or Actionscript or something. That way the only thing that has to load is the script (very small) and one of the random images.
    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.

  2. #22
    Join Date
    Oct 2006
    Location
    UK
    Posts
    216

    Default Re: Animated gifs on a website :)

    [QUOTE=Big Frank;177011]Then script it with PHP or Javascript or Actionscript or something.QUOTE]
    Thanks for the advice Frank but i don't know how to do that.............................................. ..............yet

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

    Default Re: Animated gifs on a website :)

    You don't need to know. There are loads of tutorials on the web on how to do it using, for starters, Javascript. Here's one I found within 2 seconds of a Google search:

    http://www.javascript-page.com/ranimage.html
    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.

  4. #24
    Join Date
    Oct 2003
    Location
    UK
    Posts
    1,716

    Default Re: Animated gifs on a website :)

    Quote Originally Posted by suunto View Post
    Hi AntonyF, my aim was to get a random image display, each time someone visits my site
    Ahh, much easier then.

    If you can use PHP, you can just use this code:

    HTML Code:
    <?php
    srand ((double) microtime( )*1000000);
    $photo = rand(0,10);
    echo "<img src=\"http://www.website.com/images/$photo.jpg\">";
    ?>
    Then if you have 10 images named 1.jpg through 10.jpg it will pick them randomly. Just change your the URL to match where your images are located. and if you have less than 10 images, change the 10 to 8 or whatever.
    I'd start a revolution, if I could get up in the morning.

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

    Default Re: Animated gifs on a website :)

    Quote Originally Posted by Big Frank View Post
    You don't need to know. There are loads of tutorials on the web on how to do it using, for starters, Javascript. Here's one I found within 2 seconds of a Google search:

    http://www.javascript-page.com/ranimage.html
    thanks frank, i've found stuff like that too but i really don't know what to do with it i liked the link by A4Hire because it had steps as to what to do and at the stage i'm at i pretty much need it spelled out

    Thanks Antony, what do you mean, change the url to match where the images are located do i just copy and paste that code into the page?

    Thanks for all your help guys

  6. #26
    Join Date
    Oct 2003
    Location
    UK
    Posts
    1,716

    Default Re: Animated gifs on a website :)

    Quote Originally Posted by suunto View Post
    Thanks Antony, what do you mean, change the url to match where the images are located do i just copy and paste that code into the page?

    Thanks for all your help guys
    You paste it directly into your page where you want the image to appear, and you change http://www.website.com/images/ to the location of your image.

    BUT... the page itself needs to be named whatever.php, and that relies on PHP being enabled on your website.
    I'd start a revolution, if I could get up in the morning.

  7. #27
    Join Date
    Oct 2006
    Location
    Germany
    Posts
    8

    Default Re: Animated gifs on a website :)

    If u dont want the Page need to be reloaded every time to show a random Picture better go with Javascript. This simulate the behaivor from animated gif.

    It works in a very similar manner. I have such a Script few years ago, if u like i can find and post it here for you.

    Whatever you use, dont use gif images - they are a good choice for low detail/less color images like cartoons, jpeg is optimize for Pictures.

  8. #28
    Join Date
    Oct 2006
    Location
    UK
    Posts
    216

    Default Re: Animated gifs on a website :)

    Quote Originally Posted by Big Frank View Post
    You don't need to know. There are loads of tutorials on the web on how to do it using, for starters, Javascript. Here's one I found within 2 seconds of a Google search:

    http://www.javascript-page.com/ranimage.html
    Frank i tried the link and this is what happened just get a red X

    i also get the same with A4hires link, so at least i'm consistant

    Egg, once you had the pictures of the cars, what did you do then, did you use a programme? i've got macromedia flash8 but (as you can no doubt tell) never used it.
    how do you then put it in to the webpages?

    http://i47.photobucket.com/albums/f1...cing/front.gif

    http://i47.photobucket.com/albums/f1...ing/front1.gif

    ps, yes magicmesh, i'll give it a go, can you post it please

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

    Default Re: Animated gifs on a website :)

    Remove the

    Code:
    F:\
    from the image URLs. I am assuming the images are in the same directory (folder) as the page that contains your script.
    Last edited by Big Frank; 13 October 2006 at 04:32 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.

  10. #30
    Join Date
    Jul 2006
    Posts
    5

    Default Re: Animated gifs on a website :)

    thanks for your video lessons. i was really interested in your video lessons but every thing was in a different language actually Arabic of which i didn't even know where to log on
    could you pls help me or give me a simple way to log on

 

 

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
  •