#!/usr/bin/python print "Content-type: text/html\n" print """ Result image coordinates using layers
""" #import pg #con=pg.connect("wireless") #result=con.query("select coord[0]::int,coord[1]::int from locations") #rows = result.getresult() # --- This database was deleted, here is some arbitrary data---- rows=((10,15),(65,28),(300,200),(200,150)) for point in rows: print """
"""% point print """

Where everybody clicked

This is done by putting the map (or comet) in a div, likewise all the red circles, and with style specifying left & top, also z-index (picture lowest) to create layers and position:absolute. It only seems to work for me with the layers absolutely first

As a script, we create a div for each point in the database.
"""