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>