Okay. Java is not JavaScript. They are no more related than "George W. Bush" and "Lo a Burning Bush", to wit: 4 otherwise unrelated letters.
I can kill Java and let JavaScript run anything. I can kill JavaScript and let all Java run. They are not related. They are not even friendly. Internet Explorer, in fact, automatically has Java disabled, but JavaScript
enabled which is ironic given that most of the malicious website code out there depends on JavaScript being as indiscriminate as a newbie rock star and there's really not much at all dangerous with Java applets (for the most part).
That said...
Skills, such a big background image is almost certainly going to be a bandwidth hog. Admittedly, there are instances where people
really want to se a big image of, say, last night's cool traffic fatality, but if there's anything you can do to reduce the need for a single image, may I please encourage you to do so.
Also, may I encourage you to come up with a method whereby your website looks good
regardless of the resolution viewed? Not all clients run their browsers at max size anyway (quick, right now, are you?), so trying to target a specific screen setting is just dumb, especially when I am 99% sure that whatever you're trying to do such that you need such a specified space can be done with means other than those you suggest.
dwarfthrower, as I understand it, if the client is not allowing JavaScript to run, then your code does nothing -- it just defaults to the CSS calls about background image?
Also, there are a lot of browsers that don't run JavaScript for perfectly legitimate reasons. Lynx wouldn't know JavaScript from the "script" for Jurassic Park 3. But there are really, really good reasons why it's important for your site to be somewhat readable using Lynx (and other textual browsers). I personally have disabled JavaScript when I run IE from home. Actually, I told IE to query me on each piece of JavaScript. I do this because 95% of the time, JavaScript is used for stupid crap.
I, however, love using it for interesting things, such as for my calculator or for certain web-based client tools.
So I contain contradictions.
Here's a sorta' cheater method of always centering a background image, by the way:
Code:
<style type="text/css">
<!--
BODY { background: #ffffff url(filename.gif) no-repeat center }
-->
</style>
It's not resizing it, but if the image is something like a watermark, then it'll still look good if designed properly.
Cheers,
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
Edward
"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door