Print Page | Close Window

Javascript OnLoad

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=18967
Printed Date: 30 March 2026 at 11:29am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Javascript OnLoad
Posted By: Gullanian
Subject: Javascript OnLoad
Date Posted: 26 March 2006 at 8:07pm
Hi,

I have an onload event on image tags:

<img src="1.gif" onLoad="doThis(this)">

However the event is only execute when the image has finished downloading, what event would execute the code before the image has finished downloading?



Replies:
Posted By: Scotty32
Date Posted: 26 March 2006 at 8:09pm
am not sure bout wouldnt this work

<script>doThis(document.Img1)</script>
<img src="1.gif" name="Img1">



-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: Bluefrog
Date Posted: 26 March 2006 at 10:57pm
Instead of putting the image in the HTML, you could dynamically load it with javascript and change the HTML itself, then fire off your event. That should work.

-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net