//Image zoom in/out script- wap design by. Mys2010
//Visit JavaScript Kit (http://myscript2010.hexat.com/) for script
//Credit must stay intact for use
var //Enter factor (%)
function zoomhelper(){
if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
}
}
function zoom(originalW, originalH, what, state){
if (!document.all&&!document.getElementById)
return
("document.images."+what)
prefix=(state=="in")? 1 : -1
if (whatcache.style.width==""||state=="restore"){
+"px"
+"px"
if (state=="restore")
return
}
else{
zoomhelper()
}
("zoomhelper()",100)
}
function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}
</script><!-- CHANGE 99 to your image width, 100 to image height, and "myimage" to your image's name--><a href="#" >Zoom In</a> | <a href="#" >Normal</a> | <a href="#" >Zoom Out</a>