I tried using the Effect.scale property, but the image kept resizing endlessly without any constraints.
If I remove the mouse from the image while it is scaling to the full specified percentage and then put the cursor back on it again, the image grows much bigger. The same excessive behavior was observed during downscaling as well.
Is there a way to prevent this issue? Any assistance would be greatly appreciated.
<img src="test.gif" id="test" alt="Online Test portal" style="position:absolute;top:935.5px;left:300px" title="online test portal" onmouseover= "new Effect.Scale('test', 150,{scaleX: true, scaleY: true}); return false;" onmouseout="new Effect.Scale('test', 66.67,{scaleX: true, scaleY: true}); return false;" />