Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

using javascript to save a background image as desktop wallpaper

Posted on 2011-02-13
7
Medium Priority
?
611 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 

Accepted Solution

by:
botweb earned 668 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 664 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 668 total points
ID: 34938793
Nope. Not a chance - not unassisted JS
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

662 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