/* ******************************* #Document magnifying script #Writen by Christian Patzer #cpatzer@hotmail.com #version 1.0.0.2 #Version 2 fixes... #Fixed bug with table width having to be absolute #Fixed document bgcolor bug #Fixed document background #Fixed body margins #Added double click show for zoom box #For this script and more, visit http://www.dynamicdrive.com ******************************* */ //configure iframe src no script include tag var iframeSrc = "zoom.html"; //DO NOT EDIT BELOW THIS LINE //------------------------------------- var tempY,tempX,initialized,X,Y; var ie55 = false; var firstTableWidth; if(window.createPopup){ ie55 = true; } else{ ie55 = false; } zoomBoxHTML = "
"; zoomBoxHTML += ""; zoomBoxHTML += ""; zoomBoxHTML += ""; zoomBoxHTML += ""; zoomBoxHTML += ""; zoomBoxHTML += ""; zoomBoxHTML += ""; zoomBoxHTML += ""; zoomBoxHTML += "
"; zoomBoxHTML += ""; zoomBoxHTML += "
Magnifier
"; zoomBoxHTML += "
"; zoomBoxHTML += ""; zoomBoxHTML += ""; zoomBoxHTML += "
"; if(ie55 == true){ document.write(zoomBoxHTML); } function moveZoomBox(){ if(initialized==true){ zoomBox.style.pixelLeft=tempX+event.clientX-X; zoomBox.style.pixelTop=tempY+event.clientY-Y; document.frames.zoom.scrollTo(tempX+event.clientX-X,tempY+event.clientY-Y); return false; } } function initXY(){ X=event.clientX; Y=event.clientY; document.body.onselectstart=new Function("return false") tempX=zoomBox.style.pixelLeft; tempY=zoomBox.style.pixelTop; initialized=true; document.onmousemove=moveZoomBox; } function resize(){ if(ie55 == true){ zoomBox.style.pixelLeft=0; zoomBox.style.pixelTop=0; document.frames.zoom.scrollTo(0,0); document.frames.zoom.document.all.tags("TABLE")[1].width=document.body.offsetWidth-25; } } function init(){ if(ie55 == true){ var HTMLtoGrab = document.all.tags("HTML")[0].innerHTML; var HTMLtoWrite = HTMLtoGrab.replace(/