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. Link to comment https://forums.phpfreaks.com/topic/60468-facebook-tagging/ 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 Link to comment https://forums.phpfreaks.com/topic/60468-facebook-tagging/#findComment-300794 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. Link to comment https://forums.phpfreaks.com/topic/60468-facebook-tagging/#findComment-300831 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. Link to comment https://forums.phpfreaks.com/topic/60468-facebook-tagging/#findComment-300833 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.