Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default how to do this?

    http://camacho.tv/index.php

    When you click the picture banner on top of the page, it opens a new
    picture. I really like this and I wish I could have it on my site.

    I'm not really into php programming (or other languages), but nonetheless,
    I'm
    hoping that I can accomplish this with some sort of tool maybe? Or can I
    find this little script somewhere?

    Can anyone give me a tip on how to do this? Or do you know other sites where
    you can see the same thing?

    many thanks!
    Kris


    Kris Guest

  2. #2

    Default Re: how to do this?

    On Sat, 30 Oct 2004 15:06:51 +0200 (more or less), "Kris" <be>
    wrote:
     


    It looks to me like the PHP code loads a randomly selected image. The banner
    is a link to index.php, so clicking on it reloads the current page, usually
    picking a new image.
    Steven Guest

  3. #3

    Default Re: how to do this?

    In article <com>,
    Steven Stern <com> wrote:

    :It looks to me like the PHP code loads a randomly selected image. The banner
    :is a link to index.php, so clicking on it reloads the current page, usually
    :picking a new image.

    I don't think that's what's happening in this case. I think they're
    calling getElementbyid() and changing the id. Look here:

    http://www.mozilla.org/docs/dom/domref/dom_shortTOC.html

    which is for the Gecko DOM, but IE now use much the same thing.
    --
    Looks like more of Texas to me.
    .... Arizona, where the nights are warm and the roads are straight.
    Warren Guest

  4. #4

    Default Re: how to do this?

    > :It looks to me like the PHP code loads a randomly selected image. The
    banner 
    usually 

    I don't think so. I would say that the random banner image is not in
    javascript, so it must be in php. Look at the source, I see a javascript
    drop down menu but no sign of a rondom banner... or try the page with
    javascript disabled... It must in PHP, I often use this method to make a
    changing banner ad in a noscript tag. Anyway I would see no reason to make
    that in javascript on a php page when there's no changes needed to be made
    on the client-side.

    Dae


    Daedalus 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