Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript chenge img src using Jquery before it render the old Re: chenge img src using Jquery before it render the old

#129537
JohnMotylJr
Participant

Hmm… probably because if you view the source, the scripts are being placed at the very bottom of the body (which is how your suppose to do it). So what you need to do is try moving that code into your head and running it. Since it is such a tiny bit of code you could probably defer it so the code completes before it ever moves into the img element.

EDIT: Hmm… hang on.. i see exactly what you are talking about.