mrsjackaroo
Technical User
- Sep 3, 2007
- 11
Hello again!
I've just found a script online which is exactly what I'm after - only trouble is, when I incorporate it into my html document it doesnt work?
<script type='text/javascript'>
function enlargeImage1(){
image1.height="334"
}
function dropImage1(){
image1.height="167"
}
function enlargeImage2(){
image2.height="98"
}
function dropImage2(){
image2.height="196"
</script>
<p><img src="images\esp avenue.jpg" height="167" name="image1" ondblclick="enlargeImage1()" onclick="dropImage1()"></p>
<p><img src="images\Esplanade house.jpg" height="98" name="image2" ondblclick="enlargeImage2()" onclick="dropImage2()"></p>
Any help, as always, is very much appreciated!
Rach
I've just found a script online which is exactly what I'm after - only trouble is, when I incorporate it into my html document it doesnt work?
<script type='text/javascript'>
function enlargeImage1(){
image1.height="334"
}
function dropImage1(){
image1.height="167"
}
function enlargeImage2(){
image2.height="98"
}
function dropImage2(){
image2.height="196"
</script>
<p><img src="images\esp avenue.jpg" height="167" name="image1" ondblclick="enlargeImage1()" onclick="dropImage1()"></p>
<p><img src="images\Esplanade house.jpg" height="98" name="image2" ondblclick="enlargeImage2()" onclick="dropImage2()"></p>
Any help, as always, is very much appreciated!
Rach