IPB

Здравствуйте, гость ( Вход | Регистрация )

> Правила форума

Все ссылки на сторонние ресурсы, за исключением офсайтов программ, должны оформляться с помошью тега скрытого текста - [hide=1]Ссылка[/hide]

> Как сделать скрытие html кода ?
kolbik
6.03.2003 - 19:10
Сообщение #1


No Avatar
Пользователь
**
Группа: Пoльзователь
Сообщений: 29
Регистрация: 4.04.2002

Пользователь №: 791




Добрый день Господа !

Помогите пожалуста скрыть html код. Расскажите как ето делается , может скриптом ? Дайте его пожалуста или линк кинте. Болшое спасибо.
User is offlineProfile Card PM
Go to the top of the page
+
 
Reply to this topicStart new topic
Ответов(1 - 3)
VitS
27.03.2003 - 00:16
Сообщение #2


No Avatar
Novice
*
Группа: Пoльзователь
Сообщений: 23
Регистрация: 28.02.2003

Пользователь №: 7206




Способов несколько. Самый простой - запретить правую кнопку мыши.
Посложнее - например, кодировщики на ява скрипте. Здесь даны лишь примеры, объясняющие принцип работы.
в переменную str загоняется полностью весь хтмл код странички. результат работы скрипта копируем в буфер обмена.

------------Кодер---------------
HTML
<html>
<head>
<title>Coder</title>

<script language="JavaScript">

function code() {
var i,stlength,out="";
var tmp;
var str='<[color=blue]body alink="blue[/color]" bgcolor="white">'+
'<p align="CENTER"><FONT SIZE="1" FACE="Arial">'+
'All rights reserved. Copyright by Vitaly Gimbut &copy; 1997-2002.<br>'+
'This page is created with <A HREF="http://www.allaire.com/" target="_blank">Homesite v2.5</A> software.<br>'+
'</body>';

stlength=str.length-1;

for (i=0;(i<=stlength);i++) {
out=out+str.charCodeAt(i)+"|";
}

document.write(out);
}

</script></head>


HTML
<body>
<script language="JavaScript">
code();
</script>[/color]</body>
</html>



теперь вставляем эту числовую белиберду в... ну в общем понятно, куда. Смотрим на страницу. Радуемся.
Ну а дальше подумай сам, что еще надо сделать, чтобы доставить побольше головной боли пирату-вебдизайнеру, решившему спереть код твоей драгоценной странички.

------------Декодер---------------
HTML
<html>
<head>
<title>DeCoder</title>

<script language="JavaScript">

function decode() {
var tmp,i,stlength,out="";
var str='60|98|111|100|121|32|97|108|105|110|107|61|34|98|108|117|101|34|32|98|103|99|111|108|111|114|61|34|119|
104|105|116|101|34|62|60|112|32|97|108|105|103|110|61|34|67|69|78|84|69|82|34|62|60|70|79|78|84|32|83|73|
90|69|61|34|49|34|32|70|65|67|69|61|34|65|114|105|97|108|34|62|65|108|108|32|114|105|103|104|116|115|32|114|
101|115|101|114|118|101|100|46|32|67|111|112|121|114|105|103|104|116|32|98|121|32|86|105|116|97|108|121|
32|71|105|109|98|117|116|32|38|99|111|112|121|59|32|49|57|57|55|45|50|48|48|50|46|60|98|114|62|84|104|105|
115|32|112|97|103|101|32|105|115|32|99|114|101|97|116|101|100|32|119|105|116|104|32|60|65|32|72|82|69|70|
61|34|104|116|116|112|58|47|47|119|119|119|46|97|108|108|97|105|114|101|46|99|111|109|47|34|32|116|97|114|
103|101|116|61|34|95|98|108|97|110|107|34|62|72|111|109|101|115|105|116|101|32|118|50|46|53|60|47|65|62|32|
115|111|102|116|119|97|114|101|46|60|98|114|62|60|47|98|111|100|121|62| ';

str_arry=str.split("|");

for (i=0;(i<str_arry.length);i++) {
tmp=str_arry[i];
out=out+String.fromCharCode(tmp);
}

document.write(out);
}

</script></head>


HTML
<body>
<script language="JavaScript">
decode();
</script></body>
</html>
User is offlineProfile Card PM
Go to the top of the page
+
mgss
7.05.2003 - 20:27
Сообщение #3



Гость










kolbik

Фтыкай! Возможно тебе это поможет жить ;)

Код

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Кодировщик</title>
</head>
<script language=JavaScript>
<!--

var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;

function initStyleElements()
{
var c = document.pad;
if (ie)
{
//c.text.style.backgroundColor="#DDDDDD";
c.compileIt.style.backgroundColor="#C0C0A8";
c.compileIt.style.cursor="hand";
c.select.style.backgroundColor="#C0C0A8";
c.select.style.cursor="hand";
c.view.style.backgroundColor="#C0C0A8";
c.view.style.cursor="hand";
c.retur.style.backgroundColor="#C0C0A8";
c.retur.style.cursor="hand";
c.clear.style.backgroundColor="#C0C0A8";
c.clear.style.cursor="hand";
}
else return;
}

function LightOn(what)
{
if (ie) what.style.backgroundColor = '#E0E0D0';
else return;
}
function FocusOn(what)
{
if (ie) what.style.backgroundColor = '#EBEBEB';
else return;
}
function LightOut(what)
{
if (ie) what.style.backgroundColor = '#C0C0A8';
else return;
}
function FocusOff(what)
{
if (ie) what.style.backgroundColor = '#DDDDDD';
else return;
}

function generate()
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='!';
setTimeout("compile()",1000);
}
else alert('First enter something to compile and then press CompileIt')
}
function compile()
{
document.pad.text.value='';
compilation=escape(code);
document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
i++;
if (i=1) alert("Page compiled 1 time!");
else alert("Page compiled "+i+" times!");
}
function selectCode()
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('Nothing for be selected!')
}
function preview()
{
if(document.pad.text.value.length>0)
{
pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
pr.document.write(document.pad.text.value);
}
else alert('Nothing for be previewed!')
}
function uncompile()
{
if (document.pad.text.value.length>0)
{
source=unescape(document.pad.text.value);
document.pad.text.value=""+source+"";
}
else alert('You need compiled code to uncompile it!')
}
// -->
</script>
<body bgcolor="white" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onLoad="initStyleElements();">

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<form method=post name=pad>
<tr>
<td>
<textarea name=text style="background-color:#EBEBEB; width:100%; height:99%"></textarea>
</td>
</tr>
<tr>
<td height="20">
<input type=button value=Encrypt name=compileIt onclick=generate() onmouseover=LightOn(this) onmouseout=LightOut(this)>
<input type=button value=Select name=select onclick=selectCode() onmouseover=LightOn(this) onmouseout=LightOut(this)>
<input type=button value=Preview name=view onclick=preview() onmouseover=LightOn(this) onmouseout=LightOut(this)>
<input type=button value=Source name=retur onclick=uncompile() onmouseover=LightOn(this) onmouseout=LightOut(this)>
<input type=reset value=Clear name=clear onmouseover=LightOn(this) onmouseout=LightOut(this)>
</td>
</tr>
</form>
</table>



</body>
</html>
Go to the top of the page
+
The Undertaker
9.05.2003 - 02:35
Сообщение #4



Moderator
Group Icon
Группа: Модераторы
Сообщений: 925
Регистрация: 28.01.2002

Пользователь №: 521




HtmlHide - программа для скрытия html кода
[b] читать подробнее => http://www.htmlhide.com/index-rus.shtml

_http://www.htmlhide.com/HHSetup.exe [354kb]


--------------------
\o/
User is offlineProfile Card PM
Go to the top of the page
+
Реклама

Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0 -

 



- Текстовая версия Сейчас: 17.04.2024 - 00:14
]]> ]]>
]]> Яндекс.Метрика ]]>