Print Page | Close Window

Tagging photos

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=25126
Printed Date: 29 March 2026 at 8:34pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Tagging photos
Posted By: Mattblack
Subject: Tagging photos
Date Posted: 10 January 2008 at 9:59am
Hi all,
 
I run a site where members can upload photos of events.
 
Please can anyone tell me how I could go about allowing users to tag themselves to a photo (Like on myspace, facebook etc) so that their name appears over their face on the photo when they hover over it.
 
I want to use ASP and MSSQL for this.
 
Hope you can think of a solution for me.  I'm not after full source code etc, just a rough idea of what technologies and I will go study myself.
 
Thanks



Replies:
Posted By: Mart
Date Posted: 11 January 2008 at 8:05pm
Get the co-ordinates of the mouse via. javascript when the onclick event is fired on the image. Translate the co-ordinates to an x-y position on the image given the top and left position of the image via. javascript. Store the x-y position of the mouse click as the "tag".
Then, write a script (javascript) that positions a span at position x-y on the image containing the persons name.


Posted By: Mattblack
Date Posted: 11 January 2008 at 8:36pm
hi Mart thanks for your reply.
 
Im working on the system now, along them lines (but no javascript).
 
I've done it so that the image is a submit button, that once clicked sends the x/y coords through a form.  This is stored into the database, with the user's ID.
 
When the image re-loads theres a load of DIV boxes that have the user's name/link in it.
 
A delete link also appears next to your own tag.
 
It's not working perfectly just yet, but when it is i'll give you a link.
 
Big%20smile  Thanks for your help



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net