>- see footer for list info -< Or make the image a form input. Clicking it will give you the coords of the mouse when it was clicked.
Look up the local attractions based on that (I assume you've already got a solution for that) and then on the resulting page add a transparent flag image with a higher css z-index than the map input at the coordinates clicked, adjusted to take into account the size of the flag image. You could even do all that without a page refresh using a XMLHttpRequest object. super dooper. I recommend JQuery as your js lib du choix - it'd make all that very easy for you. You'd probably have to define pixel boundary areas for the attractions, rather than single pixel coordinates, as I doubt a user is going to click exactly on the right pixels, if I'm understanding what it is you're trying to do. Other options if you want to dynamically change the image itself by pasting the flag image into the map are using CF8 with it's new image functions: imagePaste(), imageOverlay(). More info here: http://livedocs.adobe.com/coldfusion/8/htmldocs/functions-pt0_11.html If you haven't got CF8, then you'll either need to investigate harnessing the java advanced imaging api: http://java.sun.com/products/java-media/jai/forDevelopers/jaifaq.html#overlay On 8/17/07, Snake <[EMAIL PROTECTED]> wrote: > > >- see footer for list info -< > What you want is image map rollovers. > Here is a tutorial how to do it > > http://www.idest.com/dreamweaver/rolltech/index.htm > > Russ > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of info > Sent: 17 August 2007 06:30 > To: [email protected] > Subject: [CF-Dev] adding markers/flags to an image > > >- see footer for list info -< > How can I add flags to an image (currently a map) when something on that > map has been selected by the user. For the moment I have been thinking of > using the image as a background of the Body tag and in the Html page have > a > query (mysql db) selecting the attractions and when the cfif condition is > met the flag will appear next to the attraction. > > Regards, > > Lauriane > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help > >-< > > > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help > -< > _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
