Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Mechanic
Posted
I have tried about 10 different examples of codes that I have found online and none of them have worked.

I would like to be able to have images rotate on reload. Is there any way that I can do this?

Thanks, Pam
f 3.2 images
 
Posts: 6 | Registered: October 06, 2008Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
Yes, but rather than recommend one, can you tell us what you have tried so we do not tell you to try something you already found that did not work?
 
Posts: 5123 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
Larry, I didn't save the files after I tried them and they didn't work. It didn't occur to me that you might find them helpful to troubleshoot. I searched on google for rotating header and rotating images and took the first bunch that came up. A few of them were java but most of them were html. Sorry.
 
Posts: 6 | Registered: October 06, 2008Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
Are you trying to rotate the image on your home page? And you want to do it when the page is refreshed, not a timed rotation?
 
Posts: 5123 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
right - I would like to have about 10 images that refresh on loading rather than a specific time like a slide show.
 
Posts: 6 | Registered: October 06, 2008Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Creative' Mechanic
Picture of Klimt
Posted Hide Post
You could try this script:
<script type="text/javascript"><!--
var img=new Array();
img[img.length]="1.jpg";
img[img.length]="2.jpg";
img[img.length]="3.jpg";
img[img.length]="4.jpg";
img[img.length]="5.jpg";
img[img.length]="6.jpg";
img[img.length]="7.jpg";
img[img.length]="8.jpg";
img[img.length]="9.jpg";
img[img.length]="10.jpg";
var rand=Math.round(Math.random()*(img.length-1));
document.write("<img src='" + img[rand] + "' border='0' />");
//--></script>  
 
Posts: 1741 | Location: Vienna, Austria | Registered: July 17, 2006Reply With QuoteEdit or Delete MessageReport This Post
Honorary Mechanic
Picture of mccifa
Posted Hide Post
quote:
Originally posted by lsoo:
right - I would like to have about 10 images that refresh on loading rather than a specific time like a slide show.


Can you not set up a 'one time' slide show .... which will then autostart on 'refresh'?

I have a routine which is continuous on www.shootpics.co.uk ... a series of low-quality photos. That is simply an animation in PaintShop Pro's Animation software (free on a magazine cover!) - and I could have had a 'once only' display which would have restarted each time the screen was refreshed.
 
Posts: 566 | Location: UK | Registered: May 28, 2007Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
Thanks Roma, Larry and mccifa -

Roma, the code worked great - thanks to all.
 
Posts: 6 | Registered: October 06, 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.