﻿Add your custom CSS code here...a, image
{
border: 0px;
}

<script type="text/javascript">

/**********************************************
* Some parts of the scripts below copyright OSWC (Open Source Webmaster Center) 
* @ http://TheXbanners.com
***********************************************/

/**************************************
* Modify below variables to get the script working
**************************************/

var message = "© All rights reserved."; /* <-- Insert the message you wish display when the user makes a right click. Leave blank for none(silent) */

var module_or_page = "page"; /* <-- specify where to apply protection, type "module" to apply protection to an HTML Module,
or type "page" to apply protection to the Main Page or Editor Area. */

var targetElement = "full page"; /* <-- Insert the name of the element you wish to apply protection on. type "full page" for the whole page.
or type the id of the element, e.g., if you have the contents you want to protect, inside a div with id "protect", type protect. */

var contextDisabled = "yes"; /* <-- Set this to "yes", if you want to disable right clicks. Otherwise set it to "no" */

var selectionDisabled = "yes"; /* Set this to "yes", if you want to disable text selection. Otherwise set it to "no" */

/***************************************
* Done modifying. !!!
***************************************/

/***********************************************
* Disable Text Selection script- Â© Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Modified by OSWC (Open Source Webmaster Center) @ http://TheXbanners.com
***********************************************/

function disableSelection(target){
if (typeof target.onselectstart!="undefined"){ /* IE route */
target.onselectstart= function(){
return false;
};
}
else if (typeof target.style.MozUserSelect!="undefined"){ /* Firefox route */
target.style.MozUserSelect="none";
}
else{ /* All other route */
target.onmousedown= function(){
return false;
};
}
target.style.cursor = 'default';
}

/* Created by: Simon Willison  http://simon.incutio.com/ */
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

/**********************************************
* scripts below copyright OSWC (Open Source Webmaster Center)
* @ http://TheXbanners.com
**********************************************/
var where;

function noRightClick(what){
if (message.length > 5){
what.oncontextmenu = function(){
alert(message); return false;
}
}
else if (message == "" || null){
what.oncontextmenu = function(){
return false;
}
}
}

function setTargetElement(){
if (targetElement == "full page" && module_or_page == "page"){
where = parent.document.body;
}
else if (targetElement == "full page" && module_or_page == "module"){
where = document.body;
}
else if (targetElement != "full page" && module_or_page == "page"){
where = parent.document.getElementById(targetElement);
}
else if (targetElement != "full page" && module_or_page == "module"){
where = document.getElementById(targetElement);
}
}

function applyProtection(){
if (where != "" || null){
if (contextDisabled == "yes" && selectionDisabled == "no"){
noRightClick(where);
}
else if (selectionDisabled == "yes" && contextDisabled == "no"){
disableSelection(where);
}
else if (contextDisabled == "yes" && selectionDisabled == "yes"){
disableSelection(where);
noRightClick(where);
}
}
}

addLoadEvent(setTargetElement);
addLoadEvent(applyProtection);

</script>
