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.g230.com/510538882.html">唐嫣版《乱世佳人》中徐慧是莲心的母亲吗?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/562050570085013324.html">电信光纤20兆测速是多少KB</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/385810910.html">2012职称计算机考试报名时间 是什么时间?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/59919.html">一日三餐是怎么来的?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/240843811966449964.html">100w双12vE形变压器,做12V整流,整流电路中的滤波电容越大越好吗?用25v10000uf还</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/175549555.html">通信工程与监理都是做什么的?好吗?有没有前景?工资怎样?急求答案!!!谢谢</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/509810865.html">《一诺终生》宛如轮回txt全集下载</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/561398063.html">SM公司旗下的艺人的打扮的没那么夸张比如SJ-M和少女时代,YG的怎么就那么浮夸呢?比如说bigbang和2ne1</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/562249070.html">请问:科比怎么穿33号球衣呢</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/41761825.html">word里两个英文单词之间的有时有很大一段空格怎么办?</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.g230.com/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?78733b427b0a9dce19688d903e89fc12"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>