{% else-1 %}
(2 май 2013, 21:43) (0/0) [0]
куда нужно. я бы посоветовал вставить в файл, который постоянно инклудится * например head.php
(2 май 2013, 21:41) (0/0) [0]
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">

<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">

<head>
<title></title>
<!-- Начнём с самого простого скрипта, ЗАЩИТА ОТ КЭШИРОВАНИЯ: -->
<meta http-equiv=\"pragma\" content=\"no-cache\"/>

<!-- Ну этот код очень полезный - Защита от перетаскивания и выделения текста. -->
<script language=javaScript>document.onselectstart=new Function(\"return false\"*;
document.ondragstart=new Function(\"return false\"*;</script>

<!-- Следующий скрипт - ЗАЩИТА ОТ КОПИРОВАНИИ ИНФОРМАЦИИ -->
<script language=JavaScript>
function notcopy(){
alert(\"Извините, но с этой страницы нельзя ничего копировать!\"*
return false
}


/* НУ И ПОСЛЕДНИЙ СКРИПТ - ЗАЩИТА ОТ ПЕЧАТИ */

function atlpdp1()
{
for (wi=0; wi<document.all.length; wi++)
{
if (document.all[wi].style.visibility != \'hidden\')
{
document.all[wi].style.visibility = \'hidden\';
document.all[wi].id = \'atlpdpst\'
}
}
}

function atlpdp2()
{
for (wi=0; wi<document.all.length; wi++)
{
if (document.all[wi].id == \'atlpdpst\')
document.all[wi].style.visibility = \'\'
}
}

window.onbeforeprint = atlpdp1;
window.onafterprint = atlpdp2;



/* Выключение Правой кнопки мыши */

<!--
var message=\"\";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2) {
(message);
return false;}}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function(\"return false\"*
-->
</script>
</head>

<body>
<b><font color=\"#FF0000\"> Попробуй скопировать вот этот текст <br /> Попробуй нажать правую кнопку мыши.</font></b>
</body>

</html>
(2 май 2013, 21:41) (0/0) [0]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!-- Начнём с самого простого скрипта, ЗАЩИТА ОТ КЭШИРОВАНИЯ: -->
<meta http-equiv=\"pragma\" content=\"no-cache\"/>

<!-- Следующий скрипт - ЗАЩИТА ОТ КОПИРОВАНИИ ИНФОРМАЦИИ -->
<script language=JavaScript>
function notcopy(){
alert(\"Извините, но с этой страницы нельзя ничего копировать!\"*
return false
}
</script>

<!-- Ну этот код очень полезный - Защита от перетаскивания и выделения текста. -->
<script language=javaScript>document.onselectstart=new Function(\"return false\"*;
document.ondragstart=new Function(\"return false\"*;</script>

<!-- НУ И ПОСЛЕДНИЙ СКРИПТ - ЗАЩИТА ОТ ПЕЧАТИ -->
<script type=\"text/javascript\">
function atlpdp1()
{
for (wi=0; wi<document.all.length; wi++)
{
if (document.all[wi].style.visibility != \'hidden\')
{
document.all[wi].style.visibility = \'hidden\';
document.all[wi].id = \'atlpdpst\'
}
}
}

function atlpdp2()
{
for (wi=0; wi<document.all.length; wi++)
{
if (document.all[wi].id == \'atlpdpst\')
document.all[wi].style.visibility = \'\'
}
}

window.onbeforeprint = atlpdp1;
window.onafterprint = atlpdp2;
</script>


/* Выключение Правой кнопки мыши */
<script>
<!--
var message=\"\";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2) {
(message);
return false;}}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function(\"return false\"*
-->
</script>
(2 май 2013, 21:39) (0/0) [0]
[STEM], что?
(2 май 2013, 21:38) (0/0) [0]
TDS, есть код на запрет нажатия RMB. Тем самым нельзя копировать
  • 1 из 1