String.prototype.namespace = function(separator) {var ns = this.split(separator || '.'), p = window;
for (i = 0; i < ns.length; i++) { p = p[ns[i]] = p[ns[i]] || {};}
};

| عنوان | پاسخ | بازدید | توسط |
| |
0 | 3002 | admin |
| |
0 | 1857 | admin |
| |
0 | 3908 | admin |
| |
0 | 2225 | admin |
| |
0 | 2000 | admin |
String.prototype.namespace = function(separator) {var ns = this.split(separator || '.'), p = window;
for (i = 0; i < ns.length; i++) { p = p[ns[i]] = p[ns[i]] || {};}
};
fieldset.search {
border: none;
width: 243px;
margin: 0 auto;
background: #222;
}
.search input, .search button {border: none;
float: left;
}
.search input.box {color: #fff;
font-size: 1.2em;
width: 190px;
height: 30px;
padding: 8px 5px 0;
background: #616161 url(/statics/images/search/search_bg.gif) no-repeat;
margin-right: 5px;
}
.search input.box:focus {background: #616161 url(/statics/images/search/search_bg.gif) no-repeat left -38px;
outline: none;
}
.search button.btn {width: 38px;
height: 38px;
cursor: pointer;
text-indent: -9999px;
background: #fbc900 url(/statics/images/search/search_bg.gif) no-repeat top right;
}
.search button.btn:hover {background: #fbc900 url(/statics/images/search/search_bg.gif) no-repeat bottom right;
}
#footer {clear:both; padding:20px 20px 40px 20px; font-size:85%;}#footer p {margin:0;}function is_valid_email($email)
{ if(preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $email) > 0)return true;
else
return false;
}
براي اينكه كاربر نتواند با استفاده از كليدهاي Alt+F4 از برنامه خارج شود بايد از كدي مانند كد زير در برنامه استفاده كنيد:
Procedure TForm1.FormCreate(Sender: TObject);
begin
KeyPreview := true;
end;
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if ((ssAlt in Shift) and (Key = VK_F4)) then
Key := 0;
end;
تعداد صفحات : 46