給地圖找個(gè)放大鏡
2007/2/2 23:00:27
  <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>網(wǎng)頁(yè)特效觀止|www.jscode.cn| --- 給地圖加個(gè)放大鏡</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

下一頁(yè)
返回列表
返回首頁(yè) 主站蜘蛛池模板: 麻豆亚洲av熟女国产一区二| 中文天堂在线观看| 激情偷乱人伦小说视频在线 | 美国式禁忌3在线| 国产成人av在线免播放观看| 91香蕉视频污污| 好吊妞视频一区二区| 中文字幕在线观| 日本老妇人乱xxy| 亚洲AV无码专区国产不乱码 | 99久久99久久久99精品齐| 彩虹男gary网站| 丰满多毛的陰户视频| 日韩亚洲专区在线电影| 亚洲av无码国产精品麻豆天美| 欧美最猛性xxxxx短视频| 伊人久久精品线影院| 精品国产欧美一区二区| 国产r67194吃奶视频| 香蕉视频软件app下载| 国产激情视频一区二区三区 | 日韩欧美在线看| 亚洲一卡二卡三卡| 欧美日韩国产精品自在自线| 亚洲网站www| 特级做a爰片毛片免费看| 免费看黄色a级片| 紫黑粗硬狂喷浓精| 国产av一区二区精品久久凹凸| 黑粗硬大欧美在线视频试看| 国产精品一区二区三区免费 | 久久久无码人妻精品无码| 日韩视频在线观看一区二区| 亚洲中文字幕无码一区| 欧美成人午夜片一一在线观看| 亚洲综合免费视频| www成人国产在线观看网站| 欧美色图亚洲自拍| 人人妻人人玩人人澡人人爽| 粗大挺进朋友孕妇| 制服丝袜日韩中文字幕在线|