tribalost
01-03-2007, 01:05 PM
ok i got a huge problem....
heres a java code i got from dynamicdrive that encrypts your html code source:
function generate() /* Generation of "Compilation" */
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='Compiling...Please wait!';
setTimeout("compile()",1000);
}
else alert('First enter something to compile and then press CompileIt')
}
function compile() /* The "Compilation" */
{
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!");
}
after which you put your html code in this form with its button generate:
<textarea rows=5 name=text cols=300 style="background-color:#EBEBEB;width:95%"></textarea><br>
<input type=button value=Compile name=compileIt onClick=generate()>
my idea is to put a hidden html source inside the java code e.g:<meta HTTP-EQUIV="REFRESH" content="0; url="+url+"">
in which all you have to do is put a url in the form e.g:http://yahoo.com and the output will be a encrypted version of <meta HTTP-EQUIV="REFRESH" content="0; url=http://yahoo.com">
which wud look somethin like this:
<script>
<!--
document.write(unescape("%3Cmeta%20HTTP-EQUIV%3D%22REFRESH%22%20content%3D%220%3B%20url%3Dhttp%3A//yahoo.com%22%3E"));
//-->
</script>
I tried adding an id on the form like [id="url"] and put var
code = document.getElementById("url").value;
document.getElementById("url").value="<meta HTTP-EQUIV='REFRESH' content='0; url="+ur+l"'>;"
but still no good :(
can anyone help me with this?.. it wud really be appriciated...
heres a java code i got from dynamicdrive that encrypts your html code source:
function generate() /* Generation of "Compilation" */
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='Compiling...Please wait!';
setTimeout("compile()",1000);
}
else alert('First enter something to compile and then press CompileIt')
}
function compile() /* The "Compilation" */
{
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!");
}
after which you put your html code in this form with its button generate:
<textarea rows=5 name=text cols=300 style="background-color:#EBEBEB;width:95%"></textarea><br>
<input type=button value=Compile name=compileIt onClick=generate()>
my idea is to put a hidden html source inside the java code e.g:<meta HTTP-EQUIV="REFRESH" content="0; url="+url+"">
in which all you have to do is put a url in the form e.g:http://yahoo.com and the output will be a encrypted version of <meta HTTP-EQUIV="REFRESH" content="0; url=http://yahoo.com">
which wud look somethin like this:
<script>
<!--
document.write(unescape("%3Cmeta%20HTTP-EQUIV%3D%22REFRESH%22%20content%3D%220%3B%20url%3Dhttp%3A//yahoo.com%22%3E"));
//-->
</script>
I tried adding an id on the form like [id="url"] and put var
code = document.getElementById("url").value;
document.getElementById("url").value="<meta HTTP-EQUIV='REFRESH' content='0; url="+ur+l"'>;"
but still no good :(
can anyone help me with this?.. it wud really be appriciated...