📄 a_gundong.asp
字号:
<style type=text/css>
#divScroller1 {WIDTH: 270px;HEIGHT: 150px; OVERFLOW: hidden; POSITION: absolute; visbility: visible}
.dynPage {POSITION: absolute; TOP: 0px; VISIBILITY: hidden;}
</style>
<script language=JavaScript type=text/javascript>
function lib_bwcheck(){
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
var bw=new lib_bwcheck()
var numScrollPages = 4
var transitionOut = 1;
var transitionIn = 1;
var slideAcceleration = 0.5;
if(document.layers){ //NS4 resize fix...
scrX= innerWidth; scrY= innerHeight;
onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}
function scrollerobj(obj,nest){
nest = (!nest)?"":'document.'+nest+'.'
this.elm = bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):document.getElementById(obj)
this.css = bw.ns4?this.elm:this.elm.style
this.doc = bw.ns4?this.elm.document:document
this.obj = obj+'scrollerobj'; eval(this.obj+'=this')
this.x = (bw.ns4||bw.opera5)?this.css.left:this.elm.offsetLeft
this.y = (bw.ns4||bw.opera5)?this.css.top:this.elm.offsetTop
this.w = (bw.ie4||bw.ie5||bw.ie6||bw.ns6)?this.elm.offsetWidth:bw.ns4?this.elm.clip.width:bw.opera5?this.css.pixelWidth:0
this.h = (bw.ie4||bw.ie5||bw.ie6||bw.ns6)?this.elm.offsetHeight:bw.ns4?this.elm.clip.height:bw.opera5?this.css.pixelHeight:0
}
//object methods...
scrollerobj.prototype.moveTo = function(x,y){
if(x!=null){this.x=x; this.css.left=x}
if(y!=null){this.y=y; this.css.top=y}
}
scrollerobj.prototype.moveBy = function(x,y){this.moveTo(this.x+x,this.y+y)}
scrollerobj.prototype.hideIt = function(){this.css.visibility='hidden'}
scrollerobj.prototype.showIt = function(){this.css.visibility='visible'}
var onlineormyefile = 1;
var activePage = null;
var busy = 0;
var pagesCount=0;
function activate(num){
if (activePage!=pages[num] && !busy){
busy = 1;
if (transitionOut==0 || !bw.opacity){ activePage.hideIt(); activateContinue(num); }
else if (transitionOut==1) activePage.reveal('hidden', 'activateContinue('+num+')');
}
}
function activateContinue(num){
busy = 1;
activePage = pages[num];
activePage.reveal('visible', 'busy=0');
startshow(num)
}
function startshow(num){
num=num+1;
if (num>pagesCount) num=1;
setTimeout('activate('+num+')',5000);
}
scrollerobj.prototype.reveal= function(vis, fn){
if (bw.ie5||bw.ie6 && !bw.mac) {
if (vis=='visible') this.css.filter= 'revealTrans(duration=1,transition=23)';
else this.css.filter= 'blendTrans(duration=1)';
if (vis=='visible') this.elm.filters.revealTrans.apply();
else this.elm.filters.blendTrans.apply();
this.css.visibility= vis;
if (vis=='visible') this.elm.filters.revealTrans.play();
else this.elm.filters.blendTrans.play();
}
else if (bw.ns6 || bw.ie&&!bw.mac){
this.css.visibility= 'visible';
vis=='visible' ? this.fadeTo(100, 7, 40, fn) : this.fadeTo(0, 9, 40, fn);
}
else {
this.css.visibility= vis;
eval(fn);
}
};
function initPageSlideFade(){
scroller1 = new scrollerobj('divScroller1');
pages = new Array();
pages[0] = null;
for (var i=1; i<=numScrollPages; i++){
pages[i] = new scrollerobj('dynPage'+i, 'divScroller1');
pages[i].moveTo(0,0);
pagesCount++;
}
bw.opacity = ( bw.ie && !bw.ie4 && navigator.userAgent.indexOf('Windows')>-1 ) || bw.ns6
activateContinue(1);
}
onload = initPageSlideFade;
</script>
<div id=divScroller1>
<%
Set rs = conn.Execute("select * from s_gundong where status=1")
n=1
do while not rs.eof
%>
<div class=dynPage id=dynPage<%=n%>><%if rs("hrefurl")<>"" then%><a title=<%=rs("title")%> class=b href=<%=rs("hrefurl")%>><%end if%><img border=0 hspace=3 vspace=3 src=<%=rs("picurl")%> width="270" height="150"></a></div>
<%
n=n+1
rs.movenext
loop
rs.close
set rs=nothing
%>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -