2010-04-13 100 views

回答

1

我得到了答案,這是很容易使用jqmShow();

$('#alert-box').jqm({ajax: 'alert-note.html' , modal:true}); 
$('#alert-box').jqmShow(); 

:)

謝謝大家的幫助。

1

Seriouly你爲什麼要讓自己的生活變得複雜?只要把你的網頁div是隱藏在這樣的

<div style="position: absolute; top:50%; left:50%;" hidden="true" id="Messagee"> 
//Your Message or Html Here 
</div> 

和中央漂浮那麼當你需要顯示它有確實

$("#Message").html("<p>My Message</p>"); 
$("#Message").show(); 

你不需要的功能瘋狂的JavaScript模塊,可以讓你的生活變得簡單。哦,如果你想要一些很好的效果,使用$(「#Message」)。fadeIn(500);代替!

+0

這是一些特殊情況,所以我必須使用JS。順便說一句,謝謝你的建議。感謝它會有所幫助。 – 2010-04-13 17:49:25