kód:
<center><title>Image Zoom</title>
<script language="JavaScript1.2">
var zoomfactor=0.05 //Enter factor (0.05=5%)
function zoomhelper(){
if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
}
}
function zoom(originalW, originalH, what, state){
if (!document.all&&!document.getElementById)
return
whatcache=eval("document.images."+what)
prefix=(state=="in")? 1 : -1
if (whatcache.style.width==""||state=="restore"){
whatcache.style.width=originalW
whatcache.style.height=originalH
if (state=="restore")
return
}
else{
zoomhelper()
}
beginzoom=setInterval("zoomhelper()",100)
}
function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}
</script>
</head>
<body>
<!-- CHANGE first 150 to your image width, second 100 to image height, and "logo" to your image's name-->
<a href="#" onmouseover="zoom(150,100,'logo','in')" onmouseout="clearzoom()">Nagyit</a> | <a href="#" onmouseover="zoom(150,100,'logo','restore')">Eredeti méret</a> | <a href="#" onmouseover="zoom(150,100,'logo','out')" onmouseout="clearzoom()">Kicsinyit</a><br><br><br>
<div style="position:relative;width:150;height:100" align="center"><div style="position:absolute">
<img name="logo" src="//jegvirag.gportal.hu/portal/jegvirag/image/gallery/1491404108_34.jpg" width="150" height="100">
</div></div>
</body>
</html>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nova pagina 1</title></center>
(Ha valami nem megy szólj és segítek. virag-78@gportal.hu )
Ellenorítve:2020.04.28.
Copyright © 2005-2020 Virág Design