2011-04-27 29 views
1

你好我正在使用thickbox作为信息弹出窗口。它在IE7/8 & FF中运行良好,但在IE6中它不会显示仅为乱码字符的内容。我附上我的代码,并会很感激,如果有人可以告诉我什么是问题是什么?非常感谢。thickbox在IE6中不显示内容

<a href="faq/whyreg.php?height=220&width=400" class="view thickbox" title="Registration has its benefits"> Answer</a> 

和DOCTYPE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 

screengrabs

IE6 http://i53.tinypic.com/9gm4jb.png

IE8 http://i56.tinypic.com/55qexf.png

+0

莫非文档编码? – 2011-04-27 21:47:39

+0

@justin以什么方式?谢谢 – ploppy 2011-04-27 21:49:17

+0

我想知道如果HTML文件保存在某种奇怪的字符编码(或PHP设置为某种奇怪的字符编码输出)。你可以在没有DTD的情况下试用吗? – 2011-04-27 21:56:54

回答

0

检查在followi文档纳克链路:

[JQuery的厚盒] [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>