metanohi-misc-subsites/old-projects/x/piclook.htm

52 lines
951 B
HTML
Raw Permalink Normal View History

2011-08-02 19:57:57 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml" xml:lang="da">
<head>
<title>PicLook</title>
<style type='text/css'>
* {
margin:0;
padding:0;
text-decoration:none;
font-weight:normal;
color:#000;
font:16px arial;
}
body {
background-color:#fff;
overflow:hidden;
}
#all {
position:absolute;
top:50%;
left:50%;
margin-top:-8px;
margin-left:-6px;
width:16px;
height:12px;
}
</style>
<script type='text/javascript'>
w=32
h=24
function enlarge() {
all=document.getElementById("all")
all.style.marginTop="-"+Math.round(h/2)+"px"
all.style.marginLeft="-"+Math.round(w/2)+"px"
all.style.width=w+"px"
all.style.height=h+"px"
w=w+16
h=h+12
t=setTimeout("enlarge()",1)
}
window.onload=enlarge
</script>
</head>
<body>
<img id='all' src='img/textsize.jpg' alt='' />
</body>
</html>