Old 05-10-2006   #1 (permalink)
Naruto Express
 
allstar's Avatar
 
Join Date: May 2006
Location: Scotland
Posts: 69

Send a message via AIM to allstar Send a message via MSN to allstar
Thumbs up TUT: Image Rotation (image changes everytime page refreshs)

i have taken the tut down as i can't seem to post the javascript, becuase the board tries to use the code for some reason so i have
e-mailed Man1c M0g and he is going to put it up at the weekend/ or when he gets a chance


sory for the confusion

Last edited by allstar; 05-11-2006 at 04:09 PM.
allstar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05-10-2006   #2 (permalink)
Eternal Being
 
Join Date: Feb 2006
Location: Finland
Posts: 239

hmm...few notes: What language is that? And it cannot work since all you do is add 1 to ad (variable?) so it's always 1 (remember http is stateless). You can do the same like this (simplified example)
PHP Code:
<?php 
$banners 
= array("image1.jpg""image2.jpg""image3.jpg");
<
img src="<?php echo $banners[array_rand($banners)]; ?>" alt="Banner" />
?>
save this as banner.php and then on your page require it like
PHP Code:
<?php require_once("banner.php"); ?>
__________________
Telos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05-11-2006   #3 (permalink)
Naruto Express
 
allstar's Avatar
 
Join Date: May 2006
Location: Scotland
Posts: 69

Send a message via AIM to allstar Send a message via MSN to allstar
the code is javascript and it does work cause i have used it before
allstar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05-11-2006   #4 (permalink)
Eternal Being
 
Join Date: Feb 2006
Location: Finland
Posts: 239

oh it's javascript. Ok, that changes everything. Maybe you could add that information there so no one else gets confused.
__________________
Telos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-03-2006   #5 (permalink)
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,073
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
This tutorial is now online over at http://www.biorust.com/tutorials/detail/210/en/

Many thanks once again Telos!
__________________
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 12:58 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT