本页为历史存档快照(游客可见内容)· 原站已关闭 · 登录/发帖/回复等交互功能不可用 · 标记 "需要登录查看" 的内容当时仅对注册用户开放

请把这个复制到记事本, 用HTML 结尾保存...然后用网页打开看....[一个滚动的相册]!~

发表于 2007-5-3 21:55 · 作者 roro-in-vic · 1944 次查看
roro-in-vic 发表于 2007-5-3 21:55
<html>
<head>
<style>
#g_div{text-align:right;overflow:hidden}
.b{width:12px; height:8px; background:#737373; font-size:14px; font-weight:bold; color:#fff; text-decoration:none;margin-left:1px}
.b:hover{width:12px; height:8px; background:#780001; font-size:14px; font-weight:bold; color:#fff; text-decoration:none;margin-left:1px}
.bhover{width:12px; height:8px; background:#780001; font-size:14px; font-weight:bold; color:#fff; text-decoration:none;margin-left:1px}
</style>
</head>
<body>
<div id="g_div" style="width:500px;height:600px"><a
href="#" target=_blank>
        <img
id="g_img" style="FILTER:revealTrans(duration=1,transition=23);width=220px;height:320px;border:1px green solid" src="http://www.snowccian.com/UploadFile/2007-4/200741520521661922.jpg">
</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319210327.jpg"  target="_blank">A</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319210425.jpg"  target="_blank">B</a>
<a href="../../t/103/t266343-p1.html"  for="http://www.eby.cc/UpPic/2006319210625.jpg"   target="_blank">C</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319210513.jpg"  target="_blank">D</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319210826.jpg"  target="_blank">E</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319210940.jpg"  target="_blank">F</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319211119.jpg"  target="_blank">G</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319211213.jpg"  target="_blank">H</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319211033.jpg"  target="_blank">I</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319211324.jpg"  target="_blank">J</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319211412.jpg"  target="_blank">K</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006113114354.jpg"  target="_blank">L</a>
<a href="../../t/103/t266343-p1.html" for="http://www.eby.cc/UpPic/2006319211450.jpg"  target="_blank">M</a>

</div>

<script language="JavaScript">
function f(){
var g_sec=3          //几秒后切换图片
var g_items=new Array()
var g_div=document.getElementById("g_div")
var g_img=document.getElementById("g_img")
var g_imglink=g_img.parentElement
var arr=g_div.getElementsByTagName("A")
var arr_length=arr.length
var g_index=1

var show_img=function(n){  
   if (/\d+/.test(n)){
var prev=g_index+1
g_index=n-1
   }else{   
var prev=(g_index>arr.length)?(arr_length-1):g_index+1
g_index=(g_index<arr_length-2)?(++g_index):0
   }
   if (document.all){
   g_img.filters.revealTrans.Transition=23;
  g_img.filters.revealTrans.apply();
  g_img.filters.revealTrans.play();
    }
arr[prev].className="b"  
arr[g_index+1].className="bhover"
g_img.src=g_items[g_index].img.src
g_img.title=g_items[g_index].txt
g_imglink.href=g_items[g_index].url  
g_imglink.target=g_items[g_index].target
  
}

for(var i=1;i<arr_length;i++){
g_items.push({txt:arr.innerHTML,
url:arr.href,
target:arr.target,
img:(function(){var o=new Image;o.src=arr.getAttribute("for");return o})()})
arr.title=arr.innerHTML
arr.innerHTML=[i," "].join("")
arr.className="b"
arr.onclick=function(){
event.returnValue=false;
show_img(event.srcElement.innerText)
}
}
show_img(1)
var t=window.setInterval(show_img,g_sec*1000)
g_img.onmouseover=function(){window.clearInterval(t)}
g_img.onmouseout=function(){t=window.setInterval(show_img,g_sec*1000)}  
}

window.attachEvent("onload",f)
</script>
</body>
</html>


[ 本帖最后由 roro-in-vic 于 2007-5-5 09:03 编辑 ]
piano 发表于 2007-5-5 08:38
A B C D E F G H I J K L M
piano 发表于 2007-5-5 08:38
= =汗
roro-in-vic 发表于 2007-5-5 09:01

回复 #3 piano 的帖子

.....管理员。...
这个照片应该是在 不断滚动的啊....
怎么发到论坛上...就不动了...
^sarah^ 发表于 2007-5-5 14:32
[s:21] ,,...技术有限..寻求..PIANO帮助.
roro-in-vic 发表于 2007-5-5 18:14
管理员....
看这个网站。 ...
我们ICC 的作品..
上面会自动弹出一个窗口   有这个滚动的效果...
不过要把 浏览器上 POPUP 关掉....
piano 发表于 2007-5-5 18:53
恩发觉 了 我的游览器比较保守
roro-in-vic 发表于 2007-5-5 21:09

回复 #7 piano 的帖子

试出效果了吗?