
Originally Posted by
camm
I'm wondering if the same thing could be accomplished (with far fewer visible lines of code in the html) using the background-image property in CSS.
Yes it can be achieved easily, and with less code than with JavaScript.

Originally Posted by
camm
If the image name and location can be specified in the rule for a DIV ID or DIV CLASS -- let's say: .prodimage1 { (other rules), background-image: url(../images/prodimage1.jpg); } -- then that class (or ID) could be used on many location pages, and the image on all of them could be changed by making a single alteration back in the CSS file. Or am I missing something?
Only issue you're missing is an ID can only be used once, so it would need to be a class or defined within the body tag within an external style sheet

Originally Posted by
camm
Assuming that this idea would work, can anyone point to disadvantages as compared to solving the problem with javascript?
I can't point you to anything in specific but think for a second what CSS and JavaScript do. Why do you want to do this with JavaScript? JavaScript is a client side scripting language, CSS is used to presentation of images, elements, classes, etc. Use the technology that is designed for this particular task. CSS is the way to go.
styles.css (which is external)
Code:
body{
background-image:url(something.jpg);
}
index.html, about us, contact, etc on and on
Code:
<html>
<head>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>
</body>
</html>
Make one change to the image in the external style sheet and you're done. Simple as that.
Bookmarks