Closed Thread Icon

Topic awaiting preservation: Have an image zoom gradually... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=23902" title="Pages that link to Topic awaiting preservation: Have an image zoom gradually... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Have an image zoom gradually... <span class="small">(Page 1 of 1)</span>\

 
Grand Mamamouchi
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Nov 2004

posted posted 11-03-2004 07:03

Hi !

I'd like to have an image zoom gradually.

Here is the script :

<!-- image-zoomer -->

<table height="93%" width="100%" border="1">
<tr>
<td
id="container"
align="center"
>
</table>

<script language="JavaScript">

function image_zoom()
{
document.getElementById('container').innerHTML='<img src="image.jpg" id="image">'
height=1
image_display()
}

function image_display()
{
document.getElementById('image').height=height
image_size_manage()
}

function image_size_manage()
{
if(height<999)
{
height++
setTimeout('image_display()', 8)
}
else
alert('')
}

image_zoom()

</script>

<!-- fin image-zoomeur -->

Nothing happens (i am using Mozilla 1.6) . If you have an idea...

Grand Mamamouchi

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 11-03-2004 10:20

well, I don't see you ever assigning your heigth variable back to your actual image?

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 11-03-2004 12:04
quote:
function image_display()
{
document.getElementById('image').height=height
image_size_manage()
}



Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

« BackwardsOnwards »

Show Forum Drop Down Menu