html sayfaya aşağıdaki java kodlarla şifre verdim. Bilgisayarımda çalışıyor ancak hosta atınca çalışmadı.
Neden olabilir?
<!-- ONE STEP TO INSTALL PASSWORD PROTECT:
1. Copy the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Javascript Newbie :: http://expage.com/javascriptnewbie
*/
var password;
var pass1 = "buraya sifreyi yazın; // place password here
password=prompt("Lütfen sifreyi girin:","");
if (password==pass1) {
window.location= "sonuc.html"; // file to open if password is correct
} else {
window.location= "index.html"; // file to load if password is incorrect
}
// End -->
</script>
<p><center>
<font face="arial, helvetica" size"-2"></font>
</center><p>
<!-- Script Size: 0.81 KB -->
<html>
<head>
<title>..: No right click from Moralesd :..</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" link="#FF0000">
<table width="25%">
<tr><td><a href="#"></a></td></tr>
</table>
<script language="JavaScript">
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
</script>
</body>
</html>
Neden olabilir?
<!-- ONE STEP TO INSTALL PASSWORD PROTECT:
1. Copy the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Javascript Newbie :: http://expage.com/javascriptnewbie
*/
var password;
var pass1 = "buraya sifreyi yazın; // place password here
password=prompt("Lütfen sifreyi girin:","");
if (password==pass1) {
window.location= "sonuc.html"; // file to open if password is correct
} else {
window.location= "index.html"; // file to load if password is incorrect
}
// End -->
</script>
<p><center>
<font face="arial, helvetica" size"-2"></font>
</center><p>
<!-- Script Size: 0.81 KB -->
<html>
<head>
<title>..: No right click from Moralesd :..</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" link="#FF0000">
<table width="25%">
<tr><td><a href="#"></a></td></tr>
</table>
<script language="JavaScript">
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
</script>
</body>
</html>