Create a Rotating Banner

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Create a Rotating Banner

    I'm trying to create a banner that rotates everytime the page is refreshed. Is it possible to achieve this without using javascript or flash??? How??? Thanks
    sgl0ss Guest

  2. Similar Questions and Discussions

    1. Create an animated banner like this one
      Does any one know how to make images move up and down or left and right like in this ad banner: http://www.praloup.com/ its ths portrait...
    2. Rotating Problem
      - I have a a model that rotates by pressing the left- and right arrowkeys. - Now I have a second model that keeps rotating (automatically) until it...
    3. Has anyone seen the "Mad Mad House" banner or the Pizza Hut banner? [video]
      Has anyone seen these two banners anyplace? I've run into both of them on Yahoo and am desperately seeking a tutorial or any resources on how these...
    4. Rotating
      how do I rotate a primitive/model without rotating it's own axis system. example - When creating a cone, it is created with it's sharp end pointing...
    5. Rotating Banner Ads
      How do I set up rotating banner ads? Thanks, Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ropeofsilicon.com
  3. #2

    Default Re: Create a Rotating Banner

    Your going to need something to make it rotate... CSS isn't goiing to do it. You could use an animated .gif but that would rotate all the time. Not sure what else you could do.
    Excavatorak Guest

  4. #3

    Default Re: Create a Rotating Banner

    Not sure if this will help - I found this little snippit a few months back
    which I used on a php page:

    img src="ImagesFolder/ImageName{"1"|mt_rand:3}.jpg"

    The catch is all images have to be named the same thing, with a different
    number on the end, eg: flower1.jpg, flower2.jpg, flower3.jpg

    The breakdown is:
    ? Change "ImagesFolder" to the name of the folder your images are in
    ? Change "ImageName" to the name of the image - "flower" with no numbers
    ? The 3 is how many images you want it to rotate between. As far as I know
    this can be as many as you want. What it will do is randomly select any number
    between 1 and 3 and stick in between the { } so you'll end up with flower2.jpg
    - each time the page is refreshed, a new image is loaded. Only downside is it
    doesn't have any sort of memory as to the last loaded image, so it's possible
    to reload a few times and get the same image each time. I guess the more images
    you have for it to choose from, the less likely that'll be.

    Let me know if you get stuck. As I said it worked for me on a php page so not
    sure if it will work in other languages.

    elliot@carto Guest

  5. #4

    Default Re: Create a Rotating Banner

    If you're using PHP/MySQL database to store your banners, you can select them
    at random, and the banner displayed will be refreshed every time (in a random
    order). To do this, just create a record set of your banner, and ORDER BY RAND
    () LIMIT 1


    hairy octopotamus Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139