Page 1 of 1
display banners randomly without refresh
Posted: Sat Oct 07, 2006 3:08 am
by phpchild
hi all,
i have to display the banner in user side without refreshmene. please can any one help me to do this.
Thank u
Posted: Sat Oct 07, 2006 3:18 am
by jito
use rand().
Posted: Sat Oct 07, 2006 3:44 am
by phpchild
hi
thanks for ur reply. i used random.
but i need auotomatic refresh
Posted: Sat Oct 07, 2006 3:48 am
by aaronhall
Use an iframe with an auto refresh tag:
Code: Select all
<META HTTP-EQUIV="Refresh"
CONTENT="30; URL=http://www.example.net/some/place/">
Set the URL property to a PHP script that randomly selects an image and prints it out in an <img> tag.