<div   style= "position:   absolute; top:-3px; left:5px; width: 152px; height: 333px;"> 
        <img src="main_12.jpg" alt="" width="343" height="325" border="0"  usemap="#Map" style="width: 147px" />
  <map name="Map" id="Map">
<area alt="" shape="rect" coords="27,215,118,291" href="productsShow.aspx" />
        <area alt="" shape="rect" coords="27,118,118,194" href="companyTrends.aspx" />
        <area alt="" shape="rect" coords="28,17,119,93" href="aboutUs.aspx" />
   </map>        </div> 

解决方案 »

  1.   

    hotfunc.jsdocument.write('<div style= "position: absolute; top:-3px; left:5px; width: 152px; height: 333px;">');
    document.write('<img src="main_12.jpg" alt="" width="343" height="325" border="0"  usemap="#Map" style="width: 147px" />');
    document.write('<map name="Map" id="Map">');
    document.write('<area alt="" shape="rect" coords="27,215,118,291" href="productsShow.aspx" />');
    document.write('<area alt="" shape="rect" coords="27,118,118,194" href="companyTrends.aspx" />');
    document.write('<area alt="" shape="rect" coords="28,17,119,93" href="aboutUs.aspx" />');
    document.write('</map>');
    document.write('</div>');
      

  2.   

    是不是应该在ONLOAD事件中调用这个JS。。为什么我调用后没有反应呢?
      

  3.   

    对于2楼的js,在你要加入图片热点功能的位置引用js,如:
    <div><script language=javascript src=thatjs.js></script></div>