How Do I Change the Background of an HTML Element Through Code?

Posted by: Imar Spaanjaars at Sunday, May 09, 2004 12:23:03 PM in: CSS
With a little bit of JavaScript, it's easy to change the background image of any object through code. All you need to do is retrieve a reference to the element you want to change, and then set its style.backgroundImage property.
Read on ...

How Do I Hide Screen Elements When a Page Is Printed?

Posted by: Imar Spaanjaars at Tuesday, February 03, 2004 8:42:36 PM in: CSS
It's often useful to hide certain elements when a page gets printed. For example, your Navigation Menu, or a Search button are usually pretty useless on paper.
Read on ... 1