HTML, JavaScript, PHP 如何让页面一打开就有自动提示框?

2024-11-25 13:31:40
推荐回答(3个)
回答1:

建一个div,上面添加个yes和no的按钮,display属性设置为none
打开慧李页世空面的时候判断a>=b然后将这个div的搜碧瞎display设置为block

回答2:




test<亏型消薯/title><br><script> <br>function auto(){<br> if(confirm("是否显示内容?")){ <br> var a=document.getElementById('show');<br> a.style.display="";<br> } <br> else{<br> alert('你选择了不显示!!');<br><br> }<br><br>}<br></script> <br></head><br><body onload="auto();"><br><div id="show" style="width:200px;height:200px;background:red;display='none'"></div><br></body><br></html></p> </div> </div> <div class="clear"></div> </div> <div class="wdhdnr"> <div class="huidanrtop"> <div class="wdhuidaxinx"> <div class="wdhuidaxm">回答3:</div> </div> </div> <div class="clear"></div> <div class="wdhuidanrmid"> <div class="zuijiacont"> <p>如果a>=b<br>那么先输亮歼出一个中间页面<br>里面就圆敏一句alert<br>然后判断alert是橘键枝否真<br>如果真跳转到真页面<br>否则跳转到假页面</p> </div> </div> <div class="clear"></div> </div> </div> </div> <div class="wendaright"> <div class="wdluluerwema"> <div class="wdxgwttop">相关问答</div> <div class="wdxgwtnr"> </div> <div class="clear"></div> </div> <!-- 其他随机问答['id'=>alphaID($like['zid'])] --> <div class="wdluluerwema"> <div class="wdxgwttop">最新问答</div> <div class="wdxgwtnr"> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/582796152827562085.html">关于护肤品,精华,乳液,水使用的先后顺序</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/1864517379396047107.html">华为荣耀7单手操作模式怎么设置</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/605263919.html">中国拒绝在巴黎和会上签字,之后怎么样了?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/1860436096303321187.html">君子兰的开花时节?如何养护?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/2079945594081906868.html">吃鸡一直卡在loading上怎么回事?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/540779632.html">ps中的索引颜色和lab颜色起什么作用?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/750410816865882612.html">无水蜂蜜小蛋糕怎么做好吃</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/750435084564590772.html">不是宅基地可以建房吗</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/582751495.html">小学四年级递等式计算的题目和答案(速求)</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/541427424.html">从郧县自驾到武当山怎么走最化算!</a></div> </div> </div> </div> </div> <div class="clear"></div> <div class="footer"> <!-- 移动底部导航 --> <div class="fanhuitop"><a href="#top" ref="nofollow"><img src="https://www.51a.net/static/old/img/fhtop.png" alt="返回顶部" title="返回顶部"></a></div> <div class="dibu"> <div class="dibu"> </div> </div> <div class="banquan"> <p>内容全部来源于网络收集,如有侵权,请联系网站删除:QQ:24596024</p> </div> </div> </div> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?aa60e2f779ee696abd6a207eac06903d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>