類似于Flash制作的一個圖片展示效果(相當不錯哦)
2007/2/3 9:55:51
<html> <head> <title>網頁特效代碼|JsCode.CN|---類似于Flash制作的一個圖片展示效果</title> <meta http-equiv="imagetoolbar" content="no"> <style type="text/css"> body {cursor:crosshair;margin:0; padding:0; position:absolute; overflow:hidden; background:#222; left:0; top:0; width:100%; height:100%;zIndex:-2;} </style> <base href=http://www.jscode.cn/jscode/> <script type="text/javascript"> window.onerror = new Function("return true"); screen.bufferDepth = 16; document.onselectstart = function () { return false; } //////////////////////////// var NX = 3; var NY = 3; var SP = 20; var DELAY = 96; //////////////////////////// var object = new Array(); var nI = 0; var run = false; var xrun = 0; var dR = 1; var iW = 0; var iH = 0; var oH = 0; var oW = 0; function CObj(N,y,x){ this.obj = document.createElement("span"); this.obj.onclick = new Function("object["+N+"].GE1()"); this.obj.onmousedown = new Function("return false;"); this.obj.style.cursor = "pointer"; this.obj.style.position = "absolute"; this.img = document.createElement("img"); this.img.style.position = "absolute"; this.img.src = IMGSRC[N%nI].src; this.obj.appendChild(this.img); IMGBOX.appendChild(this.obj); this.object = new Array(); this.x = x; this.y = y; this.N = N; this.W = 0; this.H = 0; this.L = 0; this.T = 0; function CImg(Parent,y,x){ this.Parent = Parent; this.obj = document.createElement("span"); this.obj.style.position="absolute"; this.obj.style.overflow="hidden"; this.obj.style.cursor = "pointer"; this.img = document.createElement("img"); this.img.style.position = "absolute"; this.img.src = IMGSRC[N%nI].src; this.obj.appendChild(this.img); this.Parent.obj.appendChild(this.obj); this.N = Parent.N; this.x = x; this.y = y; this.W = 0; this.H = 0; this.L = 0; this.T = 0; this.dx = 0; this.dy = 0; this.px = 0; this.py = 0; this.dw = 0; this.dh = 0; this.pw = 0; this.ph = 0; this.ipx = 0; this.ipy = 0; this.idx = 0; this.idy = 0; this.GE2 = function (){ with(this){ px -= dx * dR; py -= dy * dR; pw += dw * dR; ph += dh * dR; ipx -= idx * dR; ipy -= idy * dR; with(obj.style){ left = Math.round(px); top = Math.round(py); width = Math.round(pw)+1; height = Math.round(ph)+1; if(dR==-1)if(pw<=W+1)obj.style.visibility="hidden"; } with(img.style){ left = Math.round(ipx-oW); top = Math.round(ipy-oH); } if(++xrun>=NX*NY*SP){ xrun=0; run=false; if(dR==-1)Parent.obj.style.zIndex = 0; dR = -dR; } } } this.GE1 = function (N1,N2){ with(this){ if(dR==1){ px = L; py = T; dx = ((Parent.L +
下一頁
返回列表
返回首頁
主站蜘蛛池模板:
久久精品国产一区二区三区不卡|
第一次处破女18分钟高清|
色狠狠色狠狠综合一区|
男人的天堂欧美|
日韩精品无码一区二区三区不卡
|
国产精品无码无卡在线播放|
国产成人精品日本亚洲专区61|
国产91在线|欧美|
亚洲精品美女在线观看|
乱妇乱女熟妇熟女网站|
一区二区三区欧美视频|
jizz国产丝袜18老师美女|
精品国产成人亚洲午夜福利|
欧美综合中文字幕久久|
日本成a人片在线观看网址|
天天摸夜夜摸成人免费视频|
国产日本韩国不卡在线视频|
免费va欧美在线观看|
免费国产黄网站在线观看视频
|
免费看美女隐私全部|
国产ts人妖系列视频网站|
再深点灬再大点灬舒服|
亚洲人成人一区二区三区|
久久精品aⅴ无码中文字字幕重口|
久久96国产精品|
丁香九月月小说图片区|
亚洲精品456人成在线|
亚洲欧洲精品成人久久曰影片|
亚洲av午夜福利精品一区|
国产www视频|
午夜免费1000部|
亚洲欧美日韩在线线精品|
久久99精品久久久久子伦|
亚洲大尺码专区影院|
亚洲av无码一区二区三区电影|
亚洲一区二区三区免费|
中文在线√天堂|
91精品国产91久久久久久|
黄色软件视频大全免费下载|
粉色视频在线播放|
日韩a级片在线观看|