Does anyone know how to rotate images on same spot when webpage is refreshed. Can it be done by HTML coding or Javascript is needed to do it? Any help is appreciated.
AD MANAGEMENT
Collapse
BEHOSTED
Collapse
Rotating Images
Collapse
Collapse
Edit this module to specify a template to display.
X
-
Tags: None
-
Re: Rotating Images
use a random html script, make a search on http://www.hotscripts.com you will get many of them for free....::::Pakisp.net::::...-The Entertainment Pack Pakisp.net
-
Re: Rotating Images
Some resources:
http://www.alistapart.com/articles/randomizer/
http://www.scriptarchive.com/rand_image.html
http://www.hypergurl.com/randomimage.html
http://javascript.internet.com/misce...e-rotator.html
Try to find JavaScript scripts that allow you to rotate images, are easy to use.
Comment
-
Re: Rotating Images
Thanks everyone for taking time to answer my question. It will definitely help me.
Regards,
Comment
-
Re: Rotating Images
I think Javascript would be the best way to do it. Trying looking for it at http://www.dynamicdrive.com/
Comment
-
Re: Rotating Images
Here is the one I am using: (Just replace my address and images with your own!
PHP Code:<script language="Javascript">
<!--
// original content taken from Nic's JavaScript Page with permission
// lack of these three lines will result in copyright infringment
// made by: Nic's JavaScript Page - [url]http://www.javascript-page.com[/url]
var currentdate = 0;
var core = 0;
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
}
}
link = new initArray(
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/",
"http://www.muscle-mustangs.com/"
);
image = new initArray(
"http://www.muscle-mustangs.com/forums/images/11.gif",
"http://www.muscle-mustangs.com/forums/images/12.gif",
"http://www.muscle-mustangs.com/forums/images/13.gif",
"http://www.muscle-mustangs.com/forums/images/14.gif",
"http://www.muscle-mustangs.com/forums/images/15.gif",
"http://www.muscle-mustangs.com/forums/images/16.gif",
"http://www.muscle-mustangs.com/forums/images/17.gif",
"http://www.muscle-mustangs.com/forums/images/18.gif",
"http://www.muscle-mustangs.com/forums/images/19.gif",
"http://www.muscle-mustangs.com/forums/images/20.gif",
"http://www.muscle-mustangs.com/forums/images/21.gif",
"http://www.muscle-mustangs.com/forums/images/22.gif",
"http://www.muscle-mustangs.com/forums/images/23.gif",
"http://www.muscle-mustangs.com/forums/images/24.gif",
"http://www.muscle-mustangs.com/forums/images/25.gif",
"http://www.muscle-mustangs.com/forums/images/26.gif",
"http://www.muscle-mustangs.com/forums/images/27.gif",
"http://www.muscle-mustangs.com/forums/images/28.gif",
"http://www.muscle-mustangs.com/forums/images/29.gif"
);
text = new initArray(
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource",
"Muscle-Mustangs.com - The Ultimate Ford Mustang Resource"
);
var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranlink = link[core];
var ranimage = image[core];
var rantext = text[core];
document.write('<a href=\"' +ranlink+ '\" target=\"_blank\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>');
//-->
</SCRIPT>
Comment
Comment