0
我需要一些關於thickbox的建議,請! 我只是按照thickbox內聯中的示例進行操作,但無法在我的頁面中加載div的內容,因爲我想要。我的html代碼和jQuery代碼就是這樣。對我的問題有任何建議?thickbox未加載嵌入標記內容
$(".artist").hover(function(){
var artistname = $(this).attr("title");
var artist = "<embed hspace=\"5\" vspace=\"5\" ";
artist += "src=\"http://abc.vn/res/music/passion/MP3_Player.swf\"";
artist += "menu=\"false\" quality=\"high\" width=\"330\" height=\"338\"";
artist += "name=\"index\" allowScriptAccess=\"never\" type=\"";
artist += "application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"";
artist += "flashvars=\"&config=http://abc.vn/res/music/passion/MP3_Config.xml&";
artist += "file=http://abc.vn/listsong.hightway?artist=" +artistname+ "\"";
artist += "wmode=\"transparent\" border=\"0\"></embed>";
$("#tooltip_artist").replaceWith(artist);
$("#tooltip_artist").css({display:"none"});
},function(){});
<a class="artist" title="singer's name" rel="#TB_inline&inlineId=tooltip_artist" href="/singer's name">singer's name</a>
感謝您的關注!
非常感謝弗朗茲!正如你所說,我正在用html()替換replaceWith。現在我有兩個問題,我不能回答這個問題,所以我希望你能再次幫助我!第一個我使用qtip或thickbox或類似這些插件,但我的問題是我想要從div中顯示的內容包含qtip或thickbox的頁面,而不像他們的示例從html文件中獲取動態內容。我浪費了三個小時,真的沒有希望了,你能給我一些建議嗎? 第二個是嵌入式標籤始終在thickbox出現後顯示,我無法修復它。 – gacon 2009-05-29 09:55:55