rezmode Posted July 18, 2007 Share Posted July 18, 2007 Can somebody direct me on how to create a tagging script or something similar on pictures, as in highlighting a portion of a persons face, and when you hover over that section thats tagged there name pops up. Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 18, 2007 Share Posted July 18, 2007 too generic a question. Could be using the alt tag, could be using the title tag, could be some hidden text that unhides on hover, etc. basically, none of those is php; all html and/or javascript Quote Link to comment Share on other sites More sharing options...
Jewbilee Posted July 18, 2007 Share Posted July 18, 2007 ive always assumed it was more of finding the mouse's coordinates on the picture, storing them in a database, and then generating an image map using the stored coords... i could be wrong though. Quote Link to comment Share on other sites More sharing options...
lightningstrike Posted July 18, 2007 Share Posted July 18, 2007 No matter what you would have to use javascript in order for the mouseover to activate. You can store the coords with php. But the javascript needs to use those coords to show the image tag. For example: <img src="image.JPEG" width="145" height="126" alt="Planets" usemap="#tag" /> <map id ="tag" name="tag"> <area shape ="rect" coords ="0,0,82,126" onMouseOver="writeText('This part of the image has been tagged')" alt="Sun" /> </map> With writeText being a proprietary javascript function you would have to create to display the text. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.