如何用JavaScript实现图片随鼠标移动这个效果
http://www.kdb123.com/flash/20080914213917.html

解决方案 »

  1.   

    不想写了,你把下面的动滑门效果改改,应该就可以,类似的
    <html>  
      <head>  
      <meta  http-equiv="Content-Type"  content="text/html;  charset=gb2312">  
      <title>1111 </title>  
      <style>  
        
      .relativeTag  
      {  
            position:relative;    
      };    .fixCol  
      {  
      background-color:#cccccc;  
      position:relative;    
      left:expression(this.parentElement.offsetParent.scrollLeft);    
      };    
        
      .mainDiv    
      {    
            overflow:auto;    
      }  
      </style>  
      </head>  
        
        <body>  
          <div  class="mainDiv"  style="width:250px;height:150px;">  
                <table    width="100%"  border=1  cellspacing=0    >  
                    <TR  class="relativeTag"  >  
                        <TD  class="fixCol"  width="100"  nowrap>Header  A </TD>  
                        <TD  width="100"  nowrap  >Header  B </TD>  
                        <TD  width="100"  nowrap>Header  C </TD>  
    <TD  width="100"  nowrap>Header  d</TD>  
                    </TR>  
                    <TR   >  
                        <TD  class="fixCol"  >A </TD>  
                        <TD >B </TD>  
                        <TD>C </TD>  
    <TD>d</TD> 
                    </TR>  
                </table>  
          </div>  
        </body>  
      </html>