Jquery厚盒子没有进入IE浏览器

时间:2011-07-26 16:26:40

标签: jquery thickbox

我有jquery厚盒子,点击某个链接就加载了。

然后,如果我点击厚箱形式的单选按钮,它将关闭厚箱形式,另一个厚箱形式将打开。

但第二个厚盒子没有进入IE浏览器。 它在Mozilla工作

这是我的代码

<script type="text/javascript">


/* Display the search popup according to the radio button selection **/
function show_search (value)
{

    tb_remove();
    var url= 'url1'; 


    setTimeout("tb_show('Change Details','"+url+"');",1*500);
    return false;
}

 </script>

<form class="jNice" action="" method="post" onsubmit="javascript:return formCarSrch_validate(this);" id="hotel_search_popup">

                <h2>Search Hotels</h2>
                 <input name="category"  type="radio" value="F"  class="radioSearch"  onclick="return show_search(this.value);"/><label>Flight</label>

</form>

1 个答案:

答案 0 :(得分:0)

请查看以下链接中的文档:

[JQuery Thick box] [1]

[1]:http://jquery.com/demo/thickbox/

并使用以下代码:

<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="thickbox.js"></script>
<script type="text/javascript">
 function show_search (value)
  { 
   var url= 'http://www.google.com'; 
   tb_show('Change Details','"+url+"');   
   setTimeout("remove()",1*100);
   return false;
  }
  function remove()
  { 
    tb_remove();    
    alert("check");
   } 
 </script> 
</head> 
<body>
<form id="hotel_search_popup">
<h2>Search Hotels</h2>
<input name="category"  type="radio" value="F"  class="radioSearch"  onclick="return show_search(this.value);"/>
<label>Flight</label>
 </form>
 </body>
 </html>
相关问题