Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageOn Sat, 30 Oct 2004 15:06:51 +0200 (more or less), "Kris" <kvdv@easynet.be> wrote: >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 wher e >you can see the same thing? 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.
Post Follow-up to this messageIn article <pa87o01a49kobprcf0q7380p1drvpk3v7a@4ax.com>, Steven Stern <sdsternNOSPAMHERE@NOSPAMHEREmindspring.com> wrote: :It looks to me like the PHP code loads a randomly selected image. The banne r :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/dom...m_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.
Post Follow-up to this message> :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/dom...m_shortTOC.html > > which is for the Gecko DOM, but IE now use much the same thing. 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.