Monday, June 6, 2011

Tự động bật trang web khác khi vào trang web của mình

Tự động bật trang web khác khi vào trang web của mìnhMột số bạn nhắn tin hỏi làm thể nào khi vào trang web của thầy lại bật ra trang web khác .Mình xin chia sẻ code cho các bạn
Code:
<script language="JavaScript">
function open1()
{
myRef = window.open('http://google.com','');
myRef.focus()
}
function open2()
{
myRef2 = window.open('http://yahoo.com','')
}
setTimeout("open1()",3000);
setTimeout("open2()",10000);
setTimeout("myRef.close()",8000);
setTimeout("myRef2.close()",15000);
setTimeout("window.location.reload()",20000);
</script>
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 nhận xét

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
© 2025 Sổ ghi chú
Designed by BlogThietKe Cooperated with Duy Pham
Released under Creative Commons 3.0 CC BY-NC 3.0
Posts RSSComments RSS
Back to top