WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Where to include a no-right-click javascript?

[Resolved] Where to include a no-right-click javascript?

  • I want to disable right-clicking on my site. I have the proper code, but I’m not sure on which page I should place it. Do I need to include it in the head section of every page, or just index.php, or…?
    Thanks for any help! ๐Ÿ™‚

Viewing 9 replies - 1 through 9 (of 9 total)
  • Why would you want to add that to begin with!? It’s a waste of time and you’ll lose “respect” from your viewer’s because you’re basically saying that you can’t trust them on your website.

    It’s a smack in the face persay, not just to your viewers, but everyone that comes across your blog or whatever..

    spencerp

    On a side note, you’d add them stupid codes in the header.php file as far as I know…and for the record…EVEN IF you posted your link to the blog or site that has this implimented into, I wouldn’t click on it… =) Good luck!!

    I agree – what do you want to stop people doing?

    Not, I hope, stopping people using the ‘Open in new Tab’ and forcing a new window?

    IMOHO, browsers also need a โ€œOpen in this tabโ€? option.

    @spencerp: Thanks for the info and the food for thought. I appreciate you sharing your thoughts.

    @donr: I don’t develop browsers, but I’m sure your suggestion’s a good one.

    Hey all. Well, i’m not sure I support or don’t support this person’s desire to prevent right clicking (i mean, photographers have been wanting to limit stolen images for YEARS). There could be a legitimate reason to desire this. Just like disallowing trackbacks… sometimes you just gotta do what you gotta do.

    Anyway, I have a Javascript question too:

    I want to put in the ::DOM image rollover script on my blog to support mouse over imaging switching. The instructions say to put the script at the “very end” of the <body>. Will this work in WP? If so, where would I put it?

    thanks,

    jj

    All I can say is to try it once JavaJunky. =) I haven’t really added any javascript persay to my blog, except for maybe the little legit stuff.

    Like from http://www.technorati.com/ or here rather: http://www.business-opportunities.biz/projects/how-much-is-your-blog-worth/

    Good luck with it!

    spencerp

    @javajunky:
    the end of the <body> tag will be available in the footer.php of your theme!! ๐Ÿ™‚

    amit, you’re cute, your blog is “cute” anything posted in your blog is “cute” and even the replies you give are “cute” lol. =)

    JavaJunky, maybe try applying this as “amit” said once.. being that I never I did it fo sure and don’t want to mislead you.. =)

    spencerp

    Going on an “assumption” that you’re female, and the use of text and grammar, kinda gives it away.

    amit, you’re cute, your blog is “cute” anything posted in your blog is “cute” and even the replies you give are “cute” lol. =)

    ๐Ÿ™‚

    Going on an “assumption” that you’re female, and the use of text and grammar, kinda gives it away.

    who me? ๐Ÿ˜ฎ
    No, I’m not a female!! ๐Ÿ™‚

    Thanks for the suggestions all, I will give it a shot and see how it works. And no, I ain’t no chick neither. (how’s that for grammer and text?)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Where to include a no-right-click javascript?’ is closed to new replies.