A LIST Apart: For People Who Make Websites

No. 186

Discuss: A Better Image Rotator

Pages

 <  1 2 3 4 5 >  Last »

21 Set Border To 0

On the examples in Mozilla and Firefox I see the nasty default border showing in the examples. Did someone just forget or do you not have control over that?

posted at 09:33 pm on August 10, 2004 by Tina

22 JIT !

Just in the nick of time. !!
I was breaking by head in writing an Image Rotator for my website – http://www.rolex-replica.net
Wanted to rotate all rolex watch images and stuff…….

Gr8 work, thanks :-)

posted at 09:36 pm on August 10, 2004 by Amit

23 plain .ini? xml? DB?

I wonder why you promote this solution with a plain .ini file since PHP ships with a pretty powerful XML toolkit. Why having such a handwritten parser? I support ‘XML is the way to go’.

Even more I would recommend to implement this script with a database driven system if you want to rotate a larger number of images: As you say most of webhosters support PHP these days they also offer some kind of database like MySQL, PostgreSQL, MSSQL

posted at 12:19 am on August 11, 2004 by Observer

24 Fine, but a year too late?

I did actually post an update to your original article a year ago, allowing random html rather than random images. This solved the problems of not having alt tags – you could essentially put in any random markup you wanted. I can’t really see why you’d want or need anything more complicated?

Rgds,
Jake.

posted at 02:13 am on August 11, 2004 by Jake Liddell

25 re: .Net Adrotator

True Brant but not only would you have to know about OO but you’d also have to run .NET which would be a shame

posted at 02:47 am on August 11, 2004 by Adam

26 Ignore Me

That was a reponse to first page post, oops (In forget ALA can get that many posts in 24hrs)

posted at 02:48 am on August 11, 2004 by Adam

27 Classy

It strikes me that with a bit of manipulation of DHTML and PHP the design opportunities for this are endless. There is no reason why XML or MySQL (or any other database for that matter)couldn’t be used as alternatives to the .ini file method. If the site uses a database, use that. The chances are that in a dynamic server side scripted site that uses database connections, these will be open on most if not all pages. If so, the extra load on the server will be negligible when compared to the advantages of building rotator inputs to a content management system so that additional images/content/pullquotes etc, can be added by non-technical users.

Personally, I will be wrapping up the functionality here in a couple of generic classes that can be added to my PHP development library and called upon when needed. When I have, I’ll drop a post here if Mr Z has no objection.

posted at 03:21 am on August 11, 2004 by Peter Goddard

28 Can this be called in CSS?

Hi there,

In the older version I was ablr to call the script via CSS. Can this be done with this version?

Thanks

posted at 03:29 am on August 11, 2004 by Michelle

29 I think this one is better...

Well… just take a look at this:

http://www.kolumnen.de/

posted at 04:23 am on August 11, 2004 by Dreas

30 Matrix Reloaded

Hmm..

When I refresh the pages with the images, only the same images keep showing up again and again and again..

http://www.bergen-malingfabrikk.no/rotatortest.php

posted at 05:37 am on August 11, 2004 by christian

Pages

 <  1 2 3 4 5 >  Last »

Got something to say?

Discuss this article. We reserve the right to delete flames, trolls, and wood nymphs.

Create a new account or sign in below if you’d like to leave a comment.

Remember me

Forgot your password?

Subscribe to this article's comments: RSS (what’s this?)