鼠标悬停在照片中添加名称 [英] Add name in photos on mouse over

查看:61
本文介绍了鼠标悬停在照片中添加名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我有一张包含朋友图片的单张照片。

将鼠标指针放在朋友的脸上时,应显示他/她的名字。

how实现此功能?

解决方案

您好,



您可以使用图像映射实现该功能asp.net。



首先你要将图像的特定部分设置为点击链接,这样当用户将鼠标悬停在该部分时,javascript函数会提升该功能。





这只是一个想法。用自己的代码试试自己



这里为学习图像地图提供链接



http ://www.codeproject.com/KB/user-controls/imagemap.aspx



Google地图也仅基于图像地图。 />


所以可以通过使用Imagemap来达到你的要求。



所有最好的


推荐这个链接,就像facebook taging of image



Facebook风格照片标签


使用此



< img id =ctl00_ctl00_Logotabindex =1title =Code Projectsrc =http://s.codeproject.com/App_Themes/Std/Img/logo225x90.gifalt =Homestyle =height :90像素;宽度:225px;边框宽度:0像素;>

hi i have single photo that contains group of friends images.
when placing mouse pointer on face of a friend, his/her name should be shown.
how to implement this feature?

解决方案

Hi,

you can implement that feature by using image map in asp.net.

first you've to set particular portion of image as click link so when user mouseover that portion the javascript function raises that feature.


This is just idea only .Try your self with your own code

Here 'm providing link for learn imagemap

http://www.codeproject.com/KB/user-controls/imagemap.aspx

Google maps are also based on image map only.

so can achieve your requirement by using Imagemap.

All the Best


Refer this link, its like facebook taging of image

Facebook Style Photo Tag


Use this

<img id="ctl00_ctl00_Logo" tabindex="1" title="The Code Project" src="http://s.codeproject.com/App_Themes/Std/Img/logo225x90.gif" alt="Home" style="height:90px;width:225px;border-width:0px;">


这篇关于鼠标悬停在照片中添加名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆