Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Tagging photos
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tagging photos

 Post Reply Post Reply
Author
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post Topic: Tagging photos
    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
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.