Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 25th, 2004, 08:01 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to disable Right-click to Save Picture As....

Hello
I wanted how I can disable the Right-click to Save Picture As with images. Don't know if this is a Javascipt, css, or html question.

 
Old December 25th, 2004, 08:11 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can't stop people from saving your images. That said, what you think of is JavaScript. It doesn't work and it's highly annoying. Maybe you yourself sometimes use the context menu for something else than to steal other people's work? :D
 
Old December 27th, 2004, 06:40 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

however, least! u can disable MSIE 'pop-up' for image->save as
<meta http-equiv="imagetoolbar" content="no">

( u may create members area, let them login or pay for ur images )
sometimes, i've seen i can't save a web page ( though images can be saved )
X "This Web page colud not be saved"
HTTP is a stateless protocol, i think, this is a error in local pc.
 
Old December 27th, 2004, 03:53 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

There is no way to prevent people from saving any image that you display. Even if you were to disable the context menu and the image toolbar, you can just disable JavaScript or even crop a screen capture.

-Snib - http://www.snibworks.com
Where will you be in 100 years?
 
Old January 6th, 2005, 10:26 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Snib,

What you said is not possible is possible.
Check out http://www.mitsucars.com/eclipse/index.html
JS files work but when I tried to take .js file and .gif files I get error message.
How do you think they did this???
 
Old January 7th, 2005, 04:35 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Which image? Trying to save the main car photo worked as expected.



--

Joe (Microsoft MVP - XML)
 
Old January 7th, 2005, 11:08 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Quote:
quote:
you can just disable JavaScript or even crop a screen capture.
And there's always my favorite.. going directly to the browser cache.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old January 7th, 2005, 11:03 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Avoid cross posting :( http://p2p.wrox.com/topic.asp?TOPIC_ID=24545

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old January 9th, 2005, 01:44 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear joefawcett,
I am not talking about the main image but trying to download the js and mov files.
Example try: http://www.mitsucars.com/eclipse/exterior.mov

http://www.mitsucars.com/eclipse/ima...rior_thumb.gif

http://www.mitsucars.com/eclipse/js/snifferobj.js

Javascript works but I can't get to them.
How do you do this??


 
Old January 9th, 2005, 01:45 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello richard.york,
What do you mean by going directly to the browser cache? How do you do this??





Similar Threads
Thread Thread Starter Forum Replies Last Post
disable browser right click?? danielnixon HTML Code Clinic 1 May 19th, 2008 12:11 PM
disable right-click on FF and OP crmpicco Javascript 2 April 12th, 2006 03:02 AM
Disable Right-click for Save Image As... bekim Javascript How-To 5 January 7th, 2005 09:03 PM
Flash object: disable right click on it karib Flash (all versions) 4 April 25th, 2004 01:08 AM
disable right click for onMouseUp dhaywirex Classic ASP Basics 2 March 4th, 2004 05:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.