Need Random Image Script with Links

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

  1. #1

    Default Need Random Image Script with Links

    I am needing a script for random images on my homepage. I need the image to have its own link depending on what image is displayed. I would like a php script (non database) if possible
    newhorizonhosting.com Guest

  2. Similar Questions and Discussions

    1. Random CSS Script
      Hi, I have a client that uses Contribute 3. Her site is pretty big (couple hundred pages) and she does a lot of updates. Randomly she has been...
    2. GoTo Random Record script??
      Can someone help me come up with what should be an obvious filemaker script to go to a random record between 1 and the last one in my database...
    3. PHP - random links
      Hi I'm wondering if someone might be able to provide me with a few lines of code to complete the following task in PHP. I have three text...
    4. When we move Image Links and HTML links
      On our Local Site (hard drive), our web projects is almost complete and we have already uploaded and sync the internet site (remote site). I have...
    5. Random image in a random place.
      Anyone know javascript? I have a grid(4 x 4) of 16 spacer images and a few text links on the side. Each text link represents a different folder of...
  3. #2

    Default Re: Need Random Image Script with Links

    I figured it out by doing a random include

    <?
    srand(time());
    $random = (rand()%3);
    print("$random");
    require_once("./$random.php");
    ?>
    newhorizonhosting.com Guest

  4. #3

    Default Re: Need Random Image Script with Links

    See comments on DW forum about random includes and this particular markup
    shown below.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "newhorizonhosting.com" <ng@newhorizonhosting.com> wrote in message
    news:e29on1$buf$1@forums.macromedia.com...
    >I figured it out by doing a random include
    >
    > <?
    > srand(time());
    > $random = (rand()%3);
    > print("$random");
    > require_once("./$random.php");
    > ?>

    Murray *ACE* 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