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/
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: rotate content, php scripts, rotate images
Related posts:
- Should I Install A Wordpress Blog on an Existing Website Let me share a quick personal story. I hesitate to...
- Php Content Rotator I found myself helping someone that needed a script the...
- Free Website Content for Blogs with Caffeinated Content Free Website Content for Blogs with Caffeinated Content I purchased...
- Seamlessly Add A Wordpress Blog to Your Xsitepro Website Did you know that you can seamlessly add a wordpress...
- FREE Article Spinner Creates Usable Unique Content Using Articles and Press Releases has been the cornerstone for...
Filed under: Scripts • Tutorials • Website Design
Like this post? Subscribe to my RSS feed and get loads more!













Hello folks. I just joined the site and it seems fascinating.
Does anyone know of a good article spinning script. Looking to take my articles and PLR articles and spin them.
Steven Walsh
Thanks for these tips and the links to the sites. I have been looking for a rotator script and this is perfect!