şifre bilgisayarda çalışıyor hostta çalışmıyor

Kodla Büyü

cekgul

Aktif Üye
Mesajlar
158
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>
 
Halen daha çözemedim arkadaşlar bir fikri olan yok mu?
Daha önce gözden kaçmıştır düşüncesiyle bir kez daha sorayım dedim.
 
Kod:
var pass1 = "buraya sifreyi yazın; // place password here

Kod:
var pass1 = "buraya sifreyi yazın"; // place password here
deki hata acaba sizin foruma yazım hatanız mı?

hocam ayrıca mebden falan giriş yapıyorsanız bazen javascriptleri ve cssleri yüklerken sıkıntı çıkarıyor. Kullanıcı javascriptleri kapatmışsa yine çalışmaz.
 
hayır sayın hocam, ne host MEB in nede MEB den giriş yapıyorum.
Belirttiğim gibi aynı kodlarla Local de çalışıyor
 
Sorun local veya host ile ilgili gözükse de, farklı tarayıcılarda deneme imkanınız oldu mu hocam?
 
Geri
Üst