Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Location
    Isle of Skye, Scotland
    Posts
    92
    Plugin Contributions
    0

    Default Applying a Javascript code on every page?

    Hi there. I have a javascript code which when installed on a web page forbids people from right-clicking to copy text or images (it brings up a copyright box instead).

    I want to install it so it will be applied on every page of the site... how would I go about this? Would it be added in some way to the .php files in languages/english/ ??

    Many thanks,

    Stuart

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Applying a Javascript code on every page?

    It's very easy to do and is explained in the jscript readme in the Zen Cart release packages (zip) docs folder, and also in the wiki.

    What you are trying to do won't work though. Without even trying, I can think of three different ways to get at images "protected" like this (which I won't enumerate here for obvious reasons).
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Aug 2008
    Location
    Isle of Skye, Scotland
    Posts
    92
    Plugin Contributions
    0

    Default Re: Applying a Javascript code on every page?

    Brilliant - thanks for that. I know it can be worked around easily to get images and even blocks of text and code and so on but it's something my client wants and I can understand as I suppose it will discourage at least some from using the images. I agree though - it's one of these things I personally wouldn't bother with

    Thanks for your help

    Stuart

 

 

Similar Threads

  1. Adding code to every product page
    By flamer in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Dec 2010, 11:58 PM
  2. Adding tracking code for analytics To Every Page?
    By fabienne in forum Basic Configuration
    Replies: 4
    Last Post: 14 Jul 2010, 08:02 PM
  3. javascript reloads on every page transition.
    By rainthebat in forum General Questions
    Replies: 1
    Last Post: 3 Aug 2008, 03:37 AM
  4. Where to add code so it shows on every page?
    By FatGuyinAZ in forum General Questions
    Replies: 6
    Last Post: 16 Jul 2008, 04:39 PM
  5. Javascript Code - Products Info Page
    By maxiva in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 27 Apr 2008, 04:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg