5秒後彈窗的javascript代碼

<script language='javascript'>var sVarPopWin=true;function PlayJsAdPopWin(){if( sVarPopWin ){popwin=window.open("http://www.devdao.com","","height=300, width=360");}}setTimeout("PlayJsAdPopWin()", 16000 );</script>上面的代碼中有一句popwin=window.open("http://www.devdao.com","","height=300, width=360");後面的 height=300, width=360 是您需要彈出的頁面大小。如果您想直接彈出網頁可以用下面的代碼。<script language='javascript'>var sVarPopWin=true;function PlayJsAdPopWin(){if( sVarPopWin ){popwin=window.open("http://www.devdao.com","");}}setTimeout("PlayJsAdPopWin()", 16000 );</script>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章