Jump to content

Image Taggin Script Needed


heminfotech

Recommended Posts

Hi Friends

 

Whats up??

 

 

I have one issue I try to find out the script for tagging images means you can say like identifying the people in a particular image.

 

That is possible and is done in javascript, The examples for this are available at dostpost.com, facebook.com etc...

 

 

This script will help you to create a square around the image and on creating this it will allow you to tag that picture with the person name or whatever...... Once this is done whever you display this on the front  and move your cursor on the person it will show you the name of the persona and in the same way there will be a line below mentioning

 

in this photo a,b,c

 

when you put your cursor on a it will display a square against the  picture where tag a was given.

 

I need a script on this if anyone can help I try to find out  a lot but I am not able to locate the same.

 

Thanks & regards

Hemal Jivani.

 

Link to comment
Share on other sites

try this:

 

 

<script language="javascript">

function displayPixTag(selectPic,info,sayWhat) 
// selectPic = picture's id
// info = picture's div id
// sayWhat = picture's tag content
{
var pix = document.getElementById(selectPic);
var pixInfo = document.getElementById(info);
pixInfo.style.display="inline";
pixInfo.innerHTML = sayWhat;
pix.onmouseout = function() {
pixInfo.style.display="none";
}
}
</script>

<img id="pic1" src="picture1.jpg" onmouseover="displayPixTag(this.id,'pic1info','This is a pic of......')">
<div id="pic1info" style="display:none;width:100px;height:100px;overflow:hidden;border:solid 1px black;padding:10px 10px 10px 10px;background:#FFFFFF;position:absolute;z-index:1000;margin:0">
<!-- Image Information Auto Populated Here -->
</div>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.