藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

表格內滑動的層代碼請教

[html]<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
  <tr>
    <td width="50%">內容
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </td>
    <td width="50%">把那個滑動的層放到這裡,隨滾動條上下移動。<p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </td>
  </tr>
</table>[/html]

請問該怎樣寫?

請各位高手幫幫忙。謝謝。

看一下那個要固定在右下角的貼子

[html]  <div id="oLayer" style="position:absolute;">
  <img src="http://www.flash8.net/images/logo.gif">
  </div>
<SCRIPT>
oLayer.style.left=document.body.clientWidth-oLayer.offsetWidth
oLayer.style.top=document.body.clientHeight-oLayer.offsetHeight
document.write(new Array(100).join("<br>"))
var init_pos=last_pos=oLayer.style.posTop
setInterval(function scrollit(){
target_pos=document.body.scrollTop+init_pos
step=(target_pos-last_pos)/10|0
oLayer.style.posTop+=step
last_pos+=step
},1)
</script>[/html]

我覺得這個效果是我需要的。但是那個圖片的滑動可以固定在表格裡嗎?因為改分辯率後圖片的定位不能隨之改變。




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com