php自动跳转弹窗

浏览:2508 发布日期:2015/03/11 分类:求助交流 关键字: 自动跳转 跳转
echo "<style type='text/css'>body{background: #e5e5e5;}</style>";
                    echo "<div id='test' style='background: #fff; width: 200px; height: 200px; font-size:30px; text-align:center; margin: 0 auto; padding-top: 20px;'><p>自动单击</p><input type='button' id='aaaa' value='确定'></div>";
                    echo '<script type=text/javascript>document.getElementById("aaaa").onclick=function (){setTimeout(function(){location.href="'.U('Index/index').'";},1000);};</script>';
                
这问题出在哪,怎么不跳转呢
最佳答案
评论( 相关
后面还有条评论,点击查看>>