For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > October 2004 > how to do this?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to do this?
Kris

2004-10-30, 3:55 pm

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


Steven Stern

2004-10-30, 3:55 pm

On 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 where
>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.
Warren Oates

2004-10-30, 3:55 pm

In article <pa87o01a49kobprcf0q7380p1drvpk3v7a@4ax.com>,
Steven Stern <sdsternNOSPAMHERE@NOSPAMHEREmindspring.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/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.
Daedalus

2004-10-30, 8:55 pm

> :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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com