Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No Right Click, javascript is blocked

Status
Not open for further replies.

TuffMcGuff

Technical User
Oct 11, 2006
2
US
Hey guys, I dont quite know what thread to post this in, so let me state my problem. I have a myspace (its stupid, time consuming, but it keeps me in touch), and on that myspace I have some pictures that random people have given me, and I am going to (if I can get this to work) post some pictures that I photoshopped. In the past, when I ahve shared a personally photoshopped picture, other people start to claim it as their own and it just pisses me off. What I need to do is disable right click over the picture. I know all this does is make someone go look in the source, but my friends arent that smart with computers, so Im thinking this'll work. Myspace won't allow javascript in any form or fashion. I tried linking to an external script, and putting something to the effect of <br>
Code:
<a href="javascript:void(0)" alt="Don't Steal My Pictures"  onMouseDown="alert('dont steal my pictures')"><img src="whatever.jpg"></a>
<br>
Both of these methods worked with the files on my desktop, but neither worked on myspace. It took out the onmousedown part, even when i did like "oN M ou se Dow n" Just thinking maybe he had it set to only catch the phrase as a whole, but that didnt work. In case you are wondering at this point, I dont know much javascript, I'm decent with HTML and CSS.
Well, I just kinda wanted to protect my pictures from my friends on myspace (who I very much doubt even know what source code is, muchless how to look through it and get the link they want). Any suggestions on how to bypass the JS block or do it in any other language would be greatly appreciated!

Thanks.
Bill

Lastly, let me add this:
On the last forum I posted this exact message (save this part) and they closed the thread. I'm not trying to be some douche bag by asking this, I just wanna protect my pictures. I'm pretty sure why the MySpace guys blocked javascript, as it says in the part where it discusses why they block javascript, PHP, and those other languages, is because they want to block malicious code (wanting to block malicious code came straight from MySpace). I understand if y'all don't wanna help me because of that reason, but I'm not trying to do anything bad here, just protect my stuff. So, if you close this thread, no hard feelings, i understand, just please don't block me as a user because its really an innocent question. Thanks.
 
you can't do it the way you want. what you can do is create a flash file, embed the images in the flash file, and then embed the flash file within your myspace page. even then, your "friends" can download the flash file, decompile it and get what they need.

there are also free utilities that will create these image slideshows within flash for you. i suggest you look into that.



*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
You could also put your name, the URL of your site or something similar on the image so that you retain credit even if someone copies it. Hopefully none of your "friends" will be good enough with an image editing program to remove it.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Watermarking your images is about the only safe way. Even with it in flash, a PrintScreen is all you need to get the graphic. At least with a watermark (or what tsdragon was saying) if they do manage to get it after all your measures to keep it safe, it has your copyright on it. Only reason a watermark is better than what tsdragon is talking about is tracy said, if they have an image editing program, they can crop your name off the bottom/top of the graphic. A watermark sits right in the middle (or over the whole image) and is usually difficult to remove without losing picture quality.

-----

_brian.
 
A watermark is actually what I had in mind, but I didn't want to limit it to that, since some people don't like the way a watermark interferes with the image.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Okay, thanks guys. I think I'lll search for freeware that embeds the images in a flash file, like you were saying because I don't know anything about flash. The watermark is a really good idea, I think I may do that from now on, but mainly what I want to stop is just people taking my pictures and putting them on their pages and not even saying something like "i got this from 'me'", I'm not OCD enough to go around telling people to look at my watermark, just want to stop the simple right click and download of pics. Thanks for y'alls help, much more than I got at the webdevelopers forums!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top