Script tự động bật Popup đếm ngược với thông điệp soạn trước

Chỉ bật Popup nếu trình duyệt cho phép.


Script tự động bật Popup đếm ngược với thông điệp soạn trước

<script type="text/javascript">
<!-- Begin
function popupWin() {
text = "<html>\n<head>\n<title>Code1k.com</title>\n<body>\n";
text += "<center>\n<br>";
text += "<a href='http://code1k.com' target='_blank'><h2>Popup Code1k.com</h2></a>";
text += "</center>\n</body>\n</html>\n";
setTimeout('windowProp(text)', 3000);
}
function windowProp(text) {
newWindow = window.open('','newWin','width=300,height=200');
newWindow.document.write(text);
setTimeout('closeWin(newWindow)', 10000);
}
function closeWin(newWindow) {
newWindow.close();
}
// End -->
</script>

<script type="text/javascript">
popupWin();
</script>


Theo : code1k.com
SHARE

Thiết kế web chuyên nghiệp giá rẻ

Chúng tôi tuyên thiết kế web chuyên nghiệp đẳng cấp giá rẻ với 5 năm kinh nghiệm trong lĩnh vực thiết kế website nếu các bạn có nhu cầu có thể liên hệ Hotline: 0962 66 57 57 || Email: cmay.tt@gmail.com || website: cmay.vn

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 nhận xét:

Đăng nhận xét