Quote:
Originally Posted by DivisionByZero
first, are the files in this directory named in any specific order? (i.e.: img_1.jpg, img_2..)?
|
No they're not
--------------- Added [DATE]1340900369[/DATE] at [TIME]1340900369[/TIME] ---------------
Quote:
Originally Posted by setishock
http://www.alistapart.com/articles/randomizer/
The link to the code is near the bottom. Just copy and paste to notepad and save as rotate. php
Make a folder in your ftp and note the path to get to it. Drop your ads in there. Drop a copy of the rotate.php file in there with them.
From the block setup select html. Put the path to the rotate.php file in as the code and save.
Now every time you refresh the page from the browser or leave and come back to the page with the blocks, the rotate.php gets called. It selects a pic at random and displays it.
If you want to show different ads in different blocks you'll have to make more than one folder with your ads in them. Put the rotate.php in each folder and call for them from the different block setups. Otherwise if you call for the same rotate.php file from different blocks they all would show the same ad at the same time.
I would say go look at my site to see it in action but alas animeappeal is no more thanks to crappy hosting.
|
Will that allow multiple ads as pictured? One on top of the other?