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.
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: php scripts, rotate images, rotate content
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 »
- Custom Xsitepro Templates
- Website Design Tip….the Comment Tag
- Add a Wordpress Blog to Your Xsitepro Website with XsiteprotoWordpress
- Chicago Bears Jerseys
- Free Article Submission Software Delivers a Huge Volume of 1-way Links!
- Php Content Rotator
- Article Marketing and Internet Marketing for Instant Cash
- Active Blogging Wordpress Membership
- Internet Marketing Power Research Tool
- Tips For Article Marketing










May 21st, 2008 11:59
Hello folks. I just joined the site and it seems fascinating.
May 22nd, 2008 00:56
Does anyone know of a good article spinning script. Looking to take my articles and PLR articles and spin them.
Steven Walsh
July 2nd, 2008 03:16
Thanks for these tips and the links to the sites. I have been looking for a rotator script and this is perfect!