|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
請各位高手幫忙!!!
http://xlovef.nease.net/
在這個網站首頁有一個極酷的特效,就是 這個網站首頁 中的 [b]NEWS[/b]
鼠標觸及箭頭 信息可以 上下 滾動! 我費了好大勁也沒找到特效代碼,用DW查看代碼也沒看懂,請各位高手幫忙,如果各位高手知道是什麼代碼,請發到我的信箱裡[email]e.boy@126.com[/email],東方男孩不勝感激! 謝謝!! |
[html]<head>
<title>可控制的頁面內滾動區域</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.opacity {FILTER: alpha(opacity=100)}
-->
</style>
<script>
function movstar(a,time){
movx=setInterval("mov("+a+")",time)
}
function movover(){
clearInterval(movx)
}
function mov(a){
scrollx=new_date.document.body.scrollLeft
scrolly=new_date.document.body.scrollTop
scrolly=scrolly+a
new_date.window.scroll(scrollx,scrolly)
}
function o_down(theobject){
object=theobject
while(object.filters.alpha.opacity>60){
object.filters.alpha.opacity+=-10}
}
function o_up(theobject){
object=theobject
while(object.filters.alpha.opacity<100){
object.filters.alpha.opacity+=10}
}
function wback(){
if(new_date.history.length==0){window.history.back()}
else{new_date.history.back()}
}
</script>
</head>
<body>
<table width="420" border="0" cellspacing="0" cellpadding="2">
<tr>
<td valign="top"><img src="../../images/arrow_up.gif" width=10 height=10 class="opacity" onMouseDown=movover();movstar(-3,2) onMouseOut=movover();o_up(this) onMouseOver=movstar(-1,20);o_down(this) onMouseUp=movover();movstar(-1,20) alt="點住不放可以快速向上滾動"></td>
<td rowspan="2"><iframe border=0 frameborder=0 framespacing=0 height=400 marginheight=0 marginwidth=0 name=new_date noResize scrolling=no src="http://www.blueidea.com" width=400 vspale="0"></iframe></td>
</tr>
<tr>
<td valign="bottom"><img src="../../images/arrow.gif" width=10 height=10 class="opacity" onMouseDown=movover();movstar(3,2) onMouseOut=movover();o_up(this) onMouseOver=movstar(1,20);o_down(this) onMouseUp=movover();movstar(1,20) alt="點住不放可以快速向下滾動"></td>
</tr>
</table>
</body>[/html] |
這是什麼。我不懂
http://www.ewhitecollar.com/get.asp?get=2614 |
鼠標懸停,上下滾動(圖片在左邊) |
把代碼直接插入到網頁中就可以嗎?
把代碼直接插入到網頁中就可以嗎?
但是 瀏覽器狀態欄總是顯示錯誤!
為什麼? |
我的滾起來為什麼很慢呀??? |
|