首页 > 软件网络

div 隐藏, 里面的js 不执行

时间:2017-01-09  来源:  作者:

当DIV为隐藏时不执行JS代码,当显示时开始执行_百度知道

当DIV为隐藏时不执行JS代码,当显示时开始执行你的按钮是同一个,还是两个?如果是两个按钮很好判断,两个按钮传回来的参数是不一样的,根据参数来判断不要用样式...

请问下,我把一个div给隐藏了,js就不执行了,怎么才能让他执行

请问下,我把一个div给隐藏了,js就不执行了,怎么才能让他执行 ,我是为了实现切换功能的瀑布流布局, () _sheepy_ Boolean 11 听上去是人为错误,没有一致的...

JS不能隐藏DIV??求救-CSDN论坛-CSDN.NET-中国最大的IT技术社区

先行执行,可能执行你那段时页面还没渲染div(动态html控件),导致没有获取到div ...就会重新加载页面,所以你在代码注册的js 来设置div隐藏不行了,是被还原成 ...

利用JS做到隐藏div和显示div - 这里的海水静悄悄 - ITeye技术网站

隐藏 document.getElementById("typediv1").style.visibility="visible";//显示...此JS代码中,没有用try——Catch捕获错误,代码如下: <script language="javascr...

JS控制div里内容有内容显示没内容隐藏-CSDN论坛-CSDN.NET-中国最...

JS控制div里内容有内容显示没内容隐藏 [问题点数:90分,结帖人u012335455] ...你的内容部分不都放在 colospan=2的td中,你不判断那么一行中有2个td,一个有...

如何使用js动态显示或隐藏DIV - IT人生 - 博客频道 - CSDN.NET

在web页面中,经常需要使用select控件来显示div的显示与隐藏,实现这个方法主要用到了setAttribute方法,以下为示例代码: 通过选择项显示不同的结果</...</div></div> <div class="g"><p><strong><a href="http://www.xierhe.com/it/?a=url&k=70617ae5&u=aHR0cHM6Ly93d3cub3NjaGluYS5uZXQvcXVlc3Rpb24vMTc5MjMwOF8yNDQyMDE=&t=Q1NTL2pz5Lit5LiA5LiqZGl25pyJ5YaF5a655YiZ5pi!56S6LOaXoOWGheWuueWImemakOiXjyAtIOW8gOa6kOS4reWbveekvuWMug==&s=ZGl2IOmakOiXj!!8jCDph4zpnaLnmoRqcyDkuI3miafooYw=" target="_blank" class="s" rel="nofollow">CSS/js中一个div有内容则显示,无内容则隐藏 - 开源中国社区</a></strong></p><div class="std"></div> 当<span></span>有内容才显示该div,无内容则隐藏该div ...WebView不能加载js动态生成的页面(0回/1209 阅,4年前) 安卓4.0webview加载HTML...</div></div> <div class="g"><p><strong><a href="http://www.xierhe.com/it/?a=url&k=cf53cfb7&u=aHR0cDovL3EuY25ibG9ncy5jb20vcS82NTQxMi8=&t=5oCO5LmI5ZyoanPkuK3mk43kvZxjc3PkuK3lt7Lorr7nva7lpb3pmpDol4@lsZ7mgKfnmoRkaXYs6K6p5a6D5pi!56S6X!W3suino!WGs1@ljZrpl64uLi4=&s=ZGl2IOmakOiXj!!8jCDph4zpnaLnmoRqcyDkuI3miafooYw=" target="_blank" class="s" rel="nofollow">怎么在js中操作css中已设置好隐藏属性的div,让它显示_已解决_博问...</a></strong></p><div class="std">这样写没用。如果在在这里设置它的显示或隐藏属性怎么设置,style:display="none";好像这样是姿势不对啊</div></div> <div class="g"><p><strong><a href="http://www.xierhe.com/it/?a=url&k=100e3fad&u=aHR0cDovL2Fzay55eGFkLmNvbS96L3E2MzI4MjA4MjUuaHRt&t=anPlpoLkvZXmjIflrprml7bpl7TlkI7lr7nnibnlrppkaXbmmL7npLrmiJbpmpDol48g5Y!m5aSWanPorqHml7blpoLkvZXkvb@nlKgs5Li65L2V5oiRLi4u&s=ZGl2IOmakOiXj!!8jCDph4zpnaLnmoRqcyDkuI3miafooYw=" target="_blank" class="s" rel="nofollow">js如何指定时间后对特定div显示或隐藏 另外js计时如何使用,为何我...</a></strong></p><div class="std">js如何指定时间后对特定div显示或隐藏 另外js计时如何使用,为何我把隐藏span元素的代码放入setTimeout("语句",time)中就无法执行了</div></div> <div class="g"><p><strong><a href="http://www.xierhe.com/it/?a=url&k=87f69d41&u=aHR0cDovL2Jsb2cuMTYzLmNvbS9naG9zdF9fX18vYmxvZy9zdGF0aWMvMzIzMTk1MzcyMDA4MTAxNjE0ODY3MS8=&t=anPngrnlh7vkuovku7bpmpDol4@mmL7npLpESVblsYIgLSBnaG9zdF9fX!eahOaXpeW@lyAtIOe9keaYk!WNmuWuog==&s=ZGl2IOmakOiXj!!8jCDph4zpnaLnmoRqcyDkuI3miafooYw=" target="_blank" class="s" rel="nofollow">js点击事件隐藏显示DIV层 - ghost___的日志 - 网易博客</a></strong></p><div class="std">js点击事件隐藏显示DIV层,ghost___的网易博客,宠辱不惊,闲看庭前花开花落;去留无意,漫随天外云卷云舒;,字:子知</div></div> </div> <p align="center" class="pageLink"></p></td> </tr> </table> <table border="0" align="center" cellpadding="0" cellspacing="8"> <tr> <td><table border="0" align="center" cellpadding="0" cellspacing="0" class="digg"> <tr> <td class="diggnum" id="diggnum"><strong><script type="text/javascript" src="/e/public/ViewClick/?classid=1&id=58036&down=5"></script></strong></td> </tr> <tr> <td class="diggit"><a href="JavaScript:makeRequest('/e/public/digg/?classid=1&id=58036&dotop=1&doajax=1&ajaxarea=diggnum','EchoReturnedText','GET','');">来顶一下</a></td> </tr> </table></td> <td><table border="0" align="center" cellpadding="0" cellspacing="0" class="digg"> <tr> <td valign="middle" class="diggnum"><strong><a href="/"><img src="/skin/default/images/back.gif" alt="返回首页" width="12" height="13" border="0" align="absmiddle" /></a></strong></td> </tr> <tr> <td class="diggit"><a href="/">返回首页</a></td> </tr> </table></td> </tr> </table> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="box"> <tr> <td align="left"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:inline-block;width:550px;height:300px" data-ad-client="ca-pub-5881631671576572" data-ad-slot="1532319152"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </td> </tr> </table> </td> <td class="sider"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="title"> <tr> <td></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="box"> <tr> <td align="center"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- x300250 --> <ins class="adsbygoogle" style="display:inline-block;width:300px;height:250px" data-ad-client="ca-pub-5881631671576572" data-ad-slot="7105575154"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="title margin_top"> <tr> <td></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="box"> <tr> <td align="center"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- 300600 --> <ins class="adsbygoogle" style="display:inline-block;width:300px;height:600px" data-ad-client="ca-pub-5881631671576572" data-ad-slot="7676441552"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="title margin_top"> <tr> <td><strong>栏目更新</strong></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="box"> <tr> <td><ul> <script src='/d/js/class/class1_newnews.js'></script></ul></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="title margin_top"> <tr> <td></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="box"> <tr> <td> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- xlj20090 --> <ins class="adsbygoogle" style="display:inline-block;width:200px;height:90px" data-ad-client="ca-pub-5881631671576572" data-ad-slot="5151163956"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="title margin_top"> <tr> <td><strong>栏目热门</strong></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="box"> <tr> <td><ul> <script src='/d/js/class/class1_hotnews.js'></script></ul></td> </tr> </table> </td> </tr> </table> <!-- 页脚 --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" class="search"> <form action="/e/search/index.php" method="post" name="searchform" id="searchform"> <table border="0" cellspacing="6" cellpadding="0"> <tr> <td><strong>站内搜索:</strong> <input name="keyboard" type="text" size="32" id="keyboard" class="inputText" /> <input type="hidden" name="show" value="title" /> <input type="hidden" name="tempid" value="1" /> <select name="tbname"> <option value="news">站内</option> </select> </td> <td><input type="image" class="inputSub" src="/skin/default/images/search.gif" /> </td> </tr> </table> </form> </td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="4" class="copyright"> <tr> <td align="center"><a href="/">网站首页</a> | <a href="#">关于我们</a> | <a href="#">服务条款</a> | <a href="#">广告服务</a> | <a href="#">联系我们</a> | <a href="#">网站地图</a> | <a href="#">免责声明</a> | <a href="/e/wap/" target="_blank">WAP</a></td> </tr> <tr> <td align="center">洗耳河文库<strong><a href="http://www.xierhe.com" target="_blank">Xierhe.com</a></strong> </td> <td> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?34a099dfb118d1d1aedc6f707a571e6a"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-96263074-1', 'auto'); ga('send', 'pageview'); </script> </td> </tr> </table> </td> </tr> </table> </body> </html>