هذا هو الكود اتمنى الافاده للجميع
- الكود:
[center]
<!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:2 7 4 9 2 2 5 2 4 4;
mso-font-alt:"Courier New";
mso-font-charset:0;
mso-generic-font-family:modern;
mso-font-format:other;
mso-font-pitch:fixed;
mso-font-signature:3 0 0 0 1 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:right;
mso-pagination:widow-orphan;
direction:rtl;
unicode-bidi:embed;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
[/center]
<[color=seagreen][font=Courier]form[/font][/color]>
<[color=seagreen][font=Courier]p[/font][/color]>[color=seagreen][font=Courier]ENTER USER NAME[/font][/color] :
<[color=seagreen][font=Courier]input
type="text[/font][/color]" [color=seagreen][font=Courier]name="text2[/font][/color]">
</[color=seagreen][font=Courier]p[/font][/color]>
<[color=seagreen][font=Courier]p[/font][/color]> [color=seagreen][font=Courier]ENTER PASSWORD[/font][/color] :
<[color=seagreen][font=Courier]input[/font][/color] [color=seagreen][font=Courier]type="password" name="text1[/font][/color]">
<[color=seagreen][font=Courier]input
type="button" value="Check In[/font][/color]" [color=seagreen][font=Courier]name="Submit" onclick=javascript:validate(text2.value[/font][/color],"ضع هنا اليوزرنيم",[color=seagreen][font=Courier]text1.value[/font][/color],"ضع هنا الباسوورد") >
</[color=seagreen][font=Courier]p[/font][/color]>
</[color=seagreen][font=Courier]form[/font][/color]>
<[color=seagreen][font=Courier]script
language[/font][/color] = "[color=seagreen][font=Courier]javascript[/font][/color]">
[color=seagreen][font=Courier]function
validate(text1,text2,text3,text4[/font][/color])
{
[color=seagreen][font=Courier]if[/font][/color] ([color=seagreen][font=Courier]text1==text2[/font][/color] && [color=seagreen][font=Courier]text3==text4[/font][/color])
[color=seagreen][font=Courier]load[/font][/color]('هنا تضع عنوان صفحة للذي يدخل
باسوورد صح');
[color=seagreen][font=Courier]else[/font][/color]
{
[color=seagreen][font=Courier]load[/font][/color]('هنا تضع عنوان صفحة للذي يدخل
باسوورد خطأ');
}
}
[color=seagreen][font=Courier]function[/font][/color] [color=seagreen][font=Courier]load(url[/font][/color])
{
[color=seagreen][font=Courier]location.href=url[/font][/color];
}
</[color=seagreen][font=Courier]script[/font][/color]>