Old 05-10-2006   #1 (permalink)
Registered User
 
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)
Registered User
 

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)
Registered User
 
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)
Registered User
 

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)
Tech Support
 
Man1c M0g's Avatar
 
Tournaments Won: 1

Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,202
Blog Entries: 21
Images: 3

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using an image like a brush MoodsR4Cattle Adobe Photoshop 13 06-16-2007 11:30 PM
Brush for this image Psygnosis Adobe Photoshop 2 03-18-2007 07:22 PM
Shape one image to another? Phoenix Wynde General Discussions 3 12-22-2006 11:44 PM
Recreating my own image... Sirit Adobe Photoshop 7 05-13-2006 06:41 AM


All times are GMT +1. The time now is 05:36 AM.

Powered by vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2

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