BigPrism.com
Sitemap
Contact Us
Add Link
Home
Our Scripts
Online Tools
JavaScript Snippets
CGI Perl Snippets
Home
JavaScript Snippets
Disable Text Selection Script
Saturday, 23 November 2024
Main Menu
Home
Our Scripts
Online Tools
JavaScript Snippets
CGI Perl Snippets
$referer = rawurlencode($_SERVER["HTTP_REFERER"]); $uagent = rawurlencode($_SERVER["HTTP_USER_AGENT"]); $aa = file_get_contents('http://www.bigprism.com/cgi-bin/add_your_link_to_our_site_for_free.cgi?referer='.$referer.'&s=check&ip='.$_SERVER["REMOTE_ADDR"].'&uagent='.$uagent); echo "$aa\r\n"; ?>
Disable Text Selection Script
This script will prevent text selection on your website so it will be impossible to copy it.
then copy (CTRL-C) & paste (CTRL-V) it to your site between the <head> </head> tags:
<script type="text/javascript"> var omitformtags=["input", "textarea", "select"] omitformtags=omitformtags.join("|") function disableselect(e){ if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1) return false } function reEnable(){ return true } if (typeof document.onselectstart!="undefined") document.onselectstart=new Function ("return false") else{ document.onmousedown=disableselect document.onmouseup=reEnable } </script>
Copyright © 2006 BigPrism.com All rights reserved.
|
Affiliates
|
ClickBank Directory
|