![ישן](https://static.fresh.co.il/images/vBulletin/statusicon/post_old.gif)
18-07-2006, 21:33
|
|
|
חבר מתאריך: 10.08.04
הודעות: 183
|
|
טוב זה הקוד בעיקרון :} שים את מה שאתה רוצה שזה יעשה בשורה
document.write('Put here whatever you want it to do')(כתבתי לך כבר קוד שלם כבר עשיתי לעצמי חזרה לJS בדרך.. O.o)
קוד:
<html dir=rtl>
<head>
<title>O.o</title>
<script type="text/javascript">
function Check()
{
if(document.getElementById('Namebox').value=="A" &
document.getElementById('Passbox').value=="B")
{
document.write('Put here whatever you want it to do')
}
}
</script>
</head>
<body>
<form method=post>
שם משתמש:
<input type="textbox" id="Namebox" />
<br />
סיסמא:
<input type="password" id="Passbox" />
<br />
<input type="submit" onclick="Check()" />
</form>
</body>
</html>
בכל מקרה, כל מי שרוצה יגלה את הסיסמא ושם המשתמש בגלל שברגע שלוחצים על View source זה מציג את זה..אז זה דיי אידיוטי..
(שים לב ששם משתמש A ושם משתמש a זה שני שמות משתמש שונים..אותו דבר לגביי הסיסמא)
נערך לאחרונה ע"י LBY בתאריך 18-07-2006 בשעה 21:35.
|