給地圖找個放大鏡
2007/2/2 23:00:27
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>網頁特效觀止|www.jscode.cn| --- 給地圖加個放大鏡</title> <SCRIPT> var shrinkfactor=5 // left and top position of the thumbnailimage // (distance to the left and top browser-margin, pixels) var thumbleft = 30 var thumbtop = 30 // left and top position of the zoomed image // (distance to the left and top browser-margin, pixels) var largeleft = 300 var largetop = 30 // width and height of the enlarged image's sector (visible part, pixels) var clipwidth = 240 var clipheight = 160 </SCRIPT> <SCRIPT> var isNav, isIE var offsetX, offsetY var selectedObj var largewidth = 0 var largeheight = 0 var thumbwidth = Math.floor(largewidth/shrinkfactor) var thumbheight = Math.floor(largeheight/shrinkfactor) var dragimgwidth = Math.floor(clipwidth/shrinkfactor) var dragimgheight = Math.floor(clipheight/shrinkfactor) var dragimgleft = thumbleft+3 var dragimgtop = thumbtop+3 var difleft= largeleft-thumbleft var diftop= largetop-thumbtop var clippoints var cliptop=0 var clipbottom=cliptop+clipheight var clipleft=0 var clipright=clipleft+clipwidth if (parseInt(navigator.appVersion) >= 4) { if (navigator.appName == "Netscape") { isNav = true } else { isIE = true } } function setZIndex(obj, zOrder) { obj.zIndex = zOrder } function shiftTo(obj, x, y) { if (isNav) { if(x<=document.thumb.left) {x=document.thumb.left} if(x>=(document.thumb.left+thumbwidth-dragimgwidth-2)) {x=document.thumb.left+thumbwidth-dragimgwidth-2} if(y<=document.thumb.top) {y=document.thumb.top} if(y>=(document.thumb.top+thumbheight-dragimgheight-2)) {y=document.thumb.top+thumbheight-dragimgheight-2} obj.moveTo(x,y) } else { if(x<=document.all.thumb.style.posLeft) {x=document.all.thumb.style.posLeft} if(x>=(document.all.thumb.style.posLeft+thumbwidth-dragimgwidth-2)) {x=document.all.thumb.style.posLeft+thumbwidth-dragimgwidth-2} if(y<=document.all.thumb.style.posTop) {y=document.all.thumb.style.posTop} if(y>=(document.all.thumb.style.posTop+thumbheight-dragimgheight-2)) {y=document.all.thumb.style.posTop+thumbheight-dragimgheight-2} obj.pixelLeft = x obj.pixelTop = y } cliptop = (y-thumbtop)*shrinkfactor clipbottom = cliptop+clipheight clipleft = (x-thumbleft)*shrinkfactor clipright = clipleft+clipwidth if (document.all) { clippoints ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" document.all.large.style.posTop=largetop-cliptop document.all.large.style.posLeft=largeleft-clipleft document.all.large.style.clip=clippoints } if (document.layers) { document.large.top=largetop-cliptop document.large.left=largeleft-clipleft document.large.clip.left = clipleft document.large.clip.right = clipright document.large.clip.top = cliptop document.large.clip.bottom = clipbottom } } function setSelectedElem(evt) { if (isNav) { var testObj var
下一頁
返回列表
返回首頁
主站蜘蛛池模板:
免费久久人人爽人人爽av|
国产深夜福利在线观看网站|
中文字幕一精品亚洲无线一区|
欧美va亚洲va香蕉在线|
人善交VIDE欧美|
美女视频黄频a免费|
国产成人AAAAA级毛片|
182tv免费视视频线路一二三|
奇米影视7777狠狠狠狠色|
中文精品无码中文字幕无码专区|
有人有看片的资源吗www在线观看|
亚洲欧美日韩在线不卡|
福利视频导航网|
巨大欧美黑人xxxxbbbb|
久久国产精品女|
欧美fxxx性|
亚洲日本va中文字幕久久|
色多多视频免费网站下载|
国产无人区一区二区三区
|
波多野结衣三人蕾丝边|
全部免费国产潢色一级|
美女视频黄A视频全免费|
国产伦精品一区二区三区|
avidolzhd|
小嫩妇又紧又嫩好紧视频|
中文字幕第2页|
欧美日韩亚洲中文字幕二区|
你是我的城池营垒免费观看完整版
|
eeuss影院130020部|
成人人免费夜夜视频观看|
久久99精品久久久久子伦|
日本边添边摸边做边爱的视频|
亚欧洲精品在线视频免费观看|
精品久久久久久国产潘金莲
|
一个人看的日本www|
成人免费男女视频网站慢动作|
主人丝袜脚下的绿帽王八奴|
日本特黄在线观看免费|
久久综合狠狠色综合伊人|
未发育孩交videossex|
亚洲一区电影在线观看|