"document.body is null" is fixed now I get ".setStyle is not a function"

Posted by rymarchant on Stack Overflow See other posts from Stack Overflow or by rymarchant
Published on 2010-05-20T06:06:04Z Indexed on 2010/05/20 6:10 UTC
Read the original article Hit count: 228

Hi All, I'm running into a similar problem as this:

link text

I've done the fix as in the answer but now I end up with an error a couple lines later:

$$([overlay = (new Element("div", {id: "mbOverlay"})).addEvent("click", close), center = new Element("div", {id: "mbCenter"})]).setStyle is not a function [Break on this error] ]).setStyle("display", "none")

It's on this page:

link text

When you click on 'showreel' it should pop up into the media box, but instead it just goes to a new page.

Any help would be much appreciated. Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about lightbox