2011-04-27 34 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>