你好,我有一個jQuery僅在瀏覽器中可見區域打開圖片:jQuery的功能出現的圖像
$(document).ready(function() {
$('det_img_^').appear(function() {
var a = $(this).find('a');
$(this).html('<img src="' + a.attr('href') + '" title="' + a.text() + '" />');
});
});
HTML代碼應該是:
<img class=" " id="det_img_54837261"
src="http://site.com/image54837261.jpg"
alt="" title="" border="0" height="190">
代碼不能正常工作,需要修復jQuery部分使用這個HTML代碼。我嘗試了一個原始示例http://code.google.com/p/jquery-appear/wiki/Examples它爲我工作得很好。 JS文件全部包括在內。 謝謝你們!
你有沒有包括這裏麪包含js文件出現..?因爲出現不是傳統的jquery功能 – coolguy
這段代碼適合你或不。清楚解釋。 –