Submit articles - Find jobs - Web directory - Debt Consolidation - Find services

PDA

View Full Version : question with photos


progfrog
Feb 6th 2008, 7:13 am
hi guys
I nees some help with this code that doesn't work- it sepose to make a dblclick on photos and than resize them. for sime reason this doesn't work- thi is thr code:


need you soon
prog frog



<html>
<head>
<title> several pictures</title>
<script language="javascript" type="text/javascript">
function newSize(picId){

var pic=document.getElementById(picId);
var imgWindow=window.open(pic,"imgwin","width=320,height=240");


}

</script>

</head>




<body>
<h2> click on pictures</h2>
<img src="1.jpg" width="160" height="120" border="2" id="1" onDblclick="newSize('1')">
<img src="2.jpg" width="160" height="120" border="2" id="2"onDblclick="newSize('2')">
</body>
</html>

fairuz.ismail
Feb 6th 2008, 10:15 pm
it's var pic=document.getElementsById(picId); not var pic=document.getElementById(picId);