View Full Version : one javascript won't work with two others

07-02-2008, 06:43 PM
Hi everyone. I have two javascripts that work just fine together. However, I'm trying to use this png IE fix (called supersleight) that calls upon another javascript from a conditional comment. It works great, as long as I take out the other two scripts. I don't know much about scripting so I was hoping someone here could help me.

Here's the page: http://pikespeakderbydames.com/new/

Is there any way to make the supersleight script work with the other ones, or do I just have to try to find a different fix?


p.s. I searched these forums for "conflicting scripts" but didn't find anything that appeared to apply to my situation.

07-02-2008, 07:22 PM
That code is poorly written, at least where it comes to its onload event. If you were to make it the last thing on your page before the closing </body> tag, it might work out. There could also be other issues. Here is another png fix method:


which doesn't have that problem.

07-02-2008, 07:29 PM
Thanks, I'll try that. I had tried that one before, and couldn't get it to work either, but can't remember why, exactly. But I've learned some things in the last couple days, so maybe I can get it to work now! If not, I'll be back.

07-02-2008, 07:39 PM
It worked! Hooray!