Authority Black Book

Rotate Content on Your Blog or Website

Did you ever want to rotate content on your website?

Let’s say you had 5 banners you wanted to rotate at each page refresh or maybe over a certain time period and in a random manner.

Maybe you wanted to rotate images.

Or how about rotating a different snippets of paragraphs to help create new content for each webpage.

Using php scripts you can rotate just about anything and here’s a few places you can find those types of scripts.


http://www.keywordevolution.com/rotator/

http://www.hotscripts.com/

http://www.phpjunkyard.com/

http://askmichel.icoder.com/2006/10/30/content-rotation/

Or here’s an impromtu script I picked up from the warrior forum

Can you not just code something simple for yourself. If it’s a php page drop this code in:

<?php
$link=rand(1,5);
switch ($link) {
case 1:
$display=”http://www.gumption.co.nz”;
$displayname=”Gumption Communications”;
break;
case 2:
$display=”http://www.gumptionfreelance.com”;
$displayname=”Gumption Freelance”;
break;
case 3:
$display=”http://www.yourfirstonlinedollar.net”;
$displayname=”Your First Online Dollar”;
break;
case 4:
$display=”http://www.warriorforum.com/forum/t…IC_ID=238022″;
$displayname=”AMAZING WSO”;
break;
default:
$display=”http://www.warriorforum.com”;
$displayname=”Everyone’s favorite forum”;
break;
}
echo $display; //display the link or
echo “<a href=’$display’>$displayname</a>”; //Display it as a clickable URL
?>

Change the five in the second line to however many options you want and keep adding cases….

I’ve found that there are many reasons to rotate content and images. Whether you own a blog or static website you certainly use one of these methods to help keep your website interesting.

Tags: , ,




Thank you for reading this post. You can now Read Comments (3) or Leave A Trackback.

Post Info

This entry was posted on Thursday, May 8th, 2008 and is filed under Scripts, Tutorials, Website Design.

You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.



Previous Post: Expired Domain List Script »
Next Post: Free Traffic »

Read More

Related Reading:

3 Responses to “Rotate Content on Your Blog or Website



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.