Counter

Page: 1

Author Post
Member
Registered: Nov 2008
Posts: 26
Would it be possible, in principle, to set up a visible or hidden counter for each photo?

Markus
Administrator
Registered: Aug 2008
Posts: 3382
Hi Markus,

By 'counter', I assume you mean a hit counter that keeps track of how many times an image was clicked. I can't think of anything in floatbox that could be used to help with this. I've been considering adding onOpen and onClose callback options that would invoke user-supplied functions, but I'm by no means committed to doing this.

You could consider counting clicks with server-side code by serving up the images from an asp or php page. The href would look something like getImage.php?img=pic1.jpg, you would need to include type:img on the floatbox options, and you would need to push the appropriate image mime type headers to the browser in advance of delivering the image.
Member
Registered: Nov 2008
Posts: 26
Thank you for all the tips, but I'm toooo blond to integrate a counter.:lol: More tips in 02/2009, please.
I wish you a wonderful time in Southeast Asia. 8)

Markus

Page: 1