Solved

using javascript to save a background image as desktop wallpaper

Posted on 2011-02-13
7
602 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
Comment Utility
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
Comment Utility
ok thanks .

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

Thanks
0
 

Expert Comment

by:botweb
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 166 total points
Comment Utility
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
Comment Utility
Or in FF: Right click on page, view background image, set as desktop image
Works just fine
0
 

Author Comment

by:coolispaul
Comment Utility
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
Comment Utility
Nope. Not a chance - not unassisted JS
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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 …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

763 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

6 Experts available now in Live!

Get 1:1 Help Now