Welcome to WebmasterWorld Guest from 54.163.23.73

Forum Moderators: not2easy

Message Too Old, No Replies

Pinpoint a single pixel in an image

Image pixel hyperlink

     

Anton

1:58 am on Feb 28, 2002 (gmt 0)

5+ Year Member



I would like access to a script that would allow the browser to click on an image in an effort to find a pre determined pixel that would take him/her to a 'winners' page ( a bit like a 'spot the ball' competition) as it would be a competition it would be important not to be able to identify the 'winning' pixel from either viewing the source or tabbing through the page links. Losing clicks should also take the browser to another 'losers page'
I hope this makes sense, and thanks in advance.

toadhall

4:46 am on Feb 28, 2002 (gmt 0)

10+ Year Member



Perhaps you should consider using a server-side image map.
Image map to set the x,y coordinates of the winning pixel, and server-side to keep the pixel location from appearing in the html.

mivox

5:22 am on Feb 28, 2002 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hehe... Have you been playing TreeLoot much lately? (If coming up with the exact same idea they're using is actually just a coincidence, you might want to visit their site... I doubt they'll tell you how they do it, but it might give you ideas.)

I'd check the free cgi script sites (hotscripts.com, cgi.resourceindex.com, etc) and see if any of the perl geeks have come up with an automated system for setting up a giant, high-res, clickable imagemap... I'd hate to have to hand-code a page like that.

toadhall

6:00 am on Feb 28, 2002 (gmt 0)

10+ Year Member



Hey Mivox!
Also handles the cross-browser compat problem.
Have a look at this article [hotwired.lycos.com].

mivox

6:16 pm on Feb 28, 2002 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Good article... with leads on auto-generating resources for the coordinate mapping. :)