Posted by Toby Inkster on 10/25/53 11:24
Onideus Mad Hatter wrote:
> http://www.backwater-productions.net/_test_platform/bw3/
>
> Let me know whether the Flash file loads dead center in your screen,
> what OS you're using, what browser and what yer screen res is set at.
Opera 8.02, Linux.
Flash object appears raised 380 pixels *above* the *top* of the page!
Try replacing the first two lines of your "load.js" file with these few
lines:
lspace = (document.documentElement.clientWidth - 760) / 2;
tspace = (document.documentElement.clientHeight - 424) / 2;
lspace = (lspace < 0) ? 0 : lspace;
tspace = (tspace < 0) ? 0 : tspace;
which will set lspace and tspace to 0 any time your
document.documentElement thing doesn't work.
Alternatively, try replacing the proprietary "document.documentElement"
with "document.body", which is overall better supported.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./bryan_adams/summer_of_69.ogg
[Back to original message]
|