Solved

using javascript to save a background image as desktop wallpaper

Posted on 2011-02-13
7
603 Views
Last Modified: 2012-05-11
Hi

I have a website and want to allow users to click on the main background image and be able to set this as their desktop wallpaper.

Is this possible with javascript?

thanks
0
Comment
Question by:coolispaul
  • 2
  • 2
  • 2
  • +1
7 Comments
 

Accepted Solution

by:
botweb earned 167 total points
ID: 34882570
No, this is not possible through JS. Otherwise JS would have to much access on the PC Enviroment wich could be used by attackers.

You could use a Java applet for this job, but today it's not a good idea to make use of Applets on Websites were it's not quiet necessary.
0
 

Author Comment

by:coolispaul
ID: 34882591
ok thanks .

If it was a hardcoded image rather than a backgound image would this make any difference?

Thanks
0
 

Expert Comment

by:botweb
ID: 34882666
No, the thing is, that it's not possible to modify the OS configuration / registry of the users enviroment.
So it doesn't matter wich kind of object you are serving, if you can't manipulate the desktop wallpaper settings.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 166 total points
ID: 34883288
Me too, I don't think there's a cross browser way to do that. The user need to do it manually or using a plugin :
https://addons.mozilla.org/en-US/firefox/addon/backgroundimage-saver/
http://www.webdevelopersnotes.com/how-do-i/save-web-page-background-image.php
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34883402
Or in FF: Right click on page, view background image, set as desktop image
Works just fine
0
 

Author Comment

by:coolispaul
ID: 34938766
hi,

ok thanks. Do you think it is possible to just save the image with javascript then? Rather than saving and setting as wallpaper?

Cheers
Paul
0
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 167 total points
ID: 34938793
Nope. Not a chance - not unassisted JS
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now