WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Where to include a no-right-click javascript? (10 posts)

  1. eveums
    Member
    Posted 8 years ago #

    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! :)

  2. spencerp
    Member
    Posted 8 years ago #

    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!!

  3. donr
    Member
    Posted 8 years ago #

    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.

  4. eveums
    Member
    Posted 8 years ago #

    @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.

  5. JavaJunky
    Member
    Posted 8 years ago #

    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

  6. spencerp
    Member
    Posted 8 years ago #

    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

  7. Amit Gupta
    Member
    Posted 8 years ago #

    @JavaJunky:
    the end of the <body> tag will be available in the footer.php of your theme!! :)

  8. spencerp
    Member
    Posted 8 years ago #

    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.

  9. Amit Gupta
    Member
    Posted 8 years ago #

    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? :o
    No, I'm not a female!! :)

  10. JavaJunky
    Member
    Posted 8 years ago #

    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?)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.