如何在带有热点链接图片的某一部分 当鼠边移动到那个区域的时候该热点链接区域图片变大 当鼠标离开该区域 该区域恢复到原来大小 是否可以有这种方法 具体怎么操作 谢谢

解决方案 »

  1.   

    <img src="" onmousemove="da()" onmouseout="xiao()" name="tu" id="tu" width="100" height="100"><script language="javascript" type="text/javascript">
    function da()
    {
        tu.width="200";
        tu.height="200";
    }function xiao()
    {
        tu.width="100";
        tu.height="100";
    }</script>
      

  2.   

    活着这样也可以
    <img src="" onmousemove="this.width='200';this.height='200'" onmouseout="this.width='100';this.height='100'" name="tu" id="tu" width="100" height="100">
      

  3.   

    参考放大镜效果:
    http://www.itlearner.com/code/51js/0154.htm
      

  4.   

    我没有说清楚 不好意思 是这样的 代码如下:
    <img src="images/wei/ps.JPG" width="340" height="491" border="3" usemap="#union" lowsrc="images/wei/ps.JPG" id=MainImg>
    <!--定义热点链接图-->
      <map name="union" style="style31">
        <area shape="rect" coords="130,22,338,92" href="#" alt="胡锦涛与卢旺达总统卡加梅举行会谈">
        <area shape="rect" coords="3,92,213,166" href="#" alt="北京奥组委招开第二批挂职锻炼干部座谈会">
        <area shape="rect" coords="212,92,336,249" href="#" alt="看不清楚是啥?">
        <area shape="rect" coords="3,166,212,250" href="#" alt="第36届世界期刊大会在京开幕">我的意思是 把热点链接的部分是否可以变大 触发鼠标移动的事件?
      

  5.   

    <area shape="rect" coords="130,22,338,92" href="#" alt="胡锦涛与卢旺达总统卡加梅举行会谈">
        <area shape="rect" coords="3,92,213,166" href="#" alt="北京奥组委招开第二批挂职锻炼干部座谈会">
        <area shape="rect" coords="212,92,336,249" href="#" alt="看不清楚是啥?">
        <area shape="rect" coords="3,166,212,250" href="#" alt="第36届世界期刊大会在京开幕">
    这就是热点链接的部分 可不可以让一张图的部分区域大小变化?可不可能实现?