posted 21 years ago
Can you imagine if web sites *could* arbitrarily run JavaScript code to change the Windows wallpaper? What a perfectly sneaky way to advertise.
The short answer is that it's not possible in JavaScript. Not even using IE extensions.
There is a "external.AddDesktopComponent()" method that will add things (such as images) to the Active Desktop, but users will have to have Active Desktop turned on and it normally isn't.
But that's not the same as wallpaper. The closest you might come is to create your own BHO (Browser Helper Object) or ActiveX control and hook into the Windows API. But that's a lot of work just to set the background wallpaper...
Scott Duffy<br />:: MCSD, SCJP, IBMXML<br />:: Author of <a href="http://www.xguru.com/tutorial/cat_index.asp?cat=5" target="_blank" rel="nofollow">IBM XML Certification Guide</a><br />:: Author of <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0072228873" target="_blank" rel="nofollow">How to Do Everything in JavaScript</a>, Osborne Press