图片里面如何嵌入超链接 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <a href="main.index"><img src="pic/logo.gif" alt="Click Here To Enter" border="0"></a>这样是把图片放在<a>里面如果要加超链接在图片的某一个部位的话,那就要做map了 楼主没说清问题,不是已经嵌入链接了吗?或者用map热区 感觉楼主说的嵌入链接的意思是像Flash一样的图片是不可能的 <html><body><img src="baiyang.jpg" width="230" height="176" border="0" ismap usemap="#baiyang.jpg"><map name="baiyang.jpg"><area href="form.html" shape="rect" coords="3,122,73,143" alt="Got To the feedback form"><area href="contact.html" shape="rect" coords="109,123,199,142" alt="Go to the contact page"><area href="main.html" shape="rect" coords="1,2.72,17" alt="Go to the Home page"><area href="likes.html" shape="rect" coords="155,0,199,18" alt="Go to the Links page" target="_top"><area href="mailto:[email protected]" shape="poly" coords="28,22,24,68,46,114,84,111,99,56,86,13" alt="Email" target="_self" OnMouseOver="window.status='OnMouseOver'; return true" OnMouseOut="window.status='OnMouseOut'; return true"><area NOHREF shape="circle" coords="0,20,42" alt="Email"></map><body> web中的话,可以把图片放入<a></a>中。或者可以应用事件。当鼠标移动至图片上时改变鼠标外观,点击时触发事件。在代码里做联接! 对不起没说清楚,我是希望将超链接在图片的任意一个位置,可能不只一个超链接不知道你们说的map是什么,没接触过,能不能详细说说呢? 建议你把页面放入dreamweaver里编辑下,使用图片热区,超简单的 谢谢smin1994(smin1994),刚才没看到现在好好研究一下 把图片 <img /> 使用 <A HREF=''></A> 括起来或者 用热区 还有救市 在 <img>中加 onclick="window.open('','_self')"有很多种方法的 <a href="main.index"><img src="pic/logo.gif" alt="Click Here To Enter" border="0"></a>这些都是脚本里编写的超连接如果你想在WEB控件来用的话 有一些控件比方说:LinkButton,ImageButton,HyperLink等等 之类的 他们都可以加载图片而且一点就可以超链接 Dreamweaver里面有一个热点,,就可以解决你的问题了,呵呵 如果是WEB控件的话,可以使用this.Attrbute.Add("onclick",要执行的javascript代码或其它一系列的); 用“热点”吧,搜索一下,这个问题不是.net的范畴 <A href="url"><img src="图片路径"></A> 我把别的项目用vs打开时为什么路径都得改变,都要前面加../ 求救 请教怎样将xmlhttp.ResponseStream返回的ADO Stream对象加载在浏览器上 asp.net如何在自己定义的实体类中读Session? 什么是Application Pool? DataGrid 的过滤绑定! 一个关于DataGridr的问题??? 遇到拦路虎了。求思路。求指导。 我想把bin目录放在其他地方,怎么引用? 请高手指教,看下面代码…… grid列绑定<%# %>应该绑在grid什么属性上. 求助:请问怎样将word文档里的文字按格式输出到网页的某部分上?
这样是把图片放在<a>里面
如果要加超链接在图片的某一个部位的话,那就要做map了
图片是不可能的
<body>
<img src="baiyang.jpg" width="230" height="176" border="0" ismap usemap="#baiyang.jpg">
<map name="baiyang.jpg">
<area href="form.html" shape="rect" coords="3,122,73,143" alt="Got To the feedback form">
<area href="contact.html" shape="rect" coords="109,123,199,142" alt="Go to the contact page">
<area href="main.html" shape="rect" coords="1,2.72,17" alt="Go to the Home page">
<area href="likes.html" shape="rect" coords="155,0,199,18" alt="Go to the Links page" target="_top">
<area href="mailto:[email protected]" shape="poly" coords="28,22,24,68,46,114,84,111,99,56,86,13" alt="Email" target="_self" OnMouseOver="window.status='OnMouseOver'; return true" OnMouseOut="window.status='OnMouseOut'; return true">
<area NOHREF shape="circle" coords="0,20,42" alt="Email">
</map>
<body>
或者可以应用事件。当鼠标移动至图片上时改变鼠标外观,点击时触发事件。在代码里做联接!
不知道你们说的map是什么,没接触过,能不能详细说说呢?
现在好好研究一下
这些都是脚本里编写的超连接
如果你想在WEB控件来用的话 有一些控件比方说:LinkButton,ImageButton,HyperLink等等 之类的 他们都可以加载图片而且一点就可以超链接