DỊch tiếng

Bane

Nhà tôi

Thứ Tư, 27 tháng 2, 2013

Hướng Dẫn Chèn Nhạc, hình ảnh vào comment., gồm 2 bước như sau :

Hướng Dẫn Chèn  Nhạc, hình ảnh vào comment., gồm 2 bước như sau :




<b:if cond='data:blog.pageType == "item"'>
<script type='text/javascript'>
//<![CDATA[
function replaceText(){if(!document.getElementById){return;}
bodyText = document.getElementById("comment-holder");
theText = bodyText.innerHTML;
theText = theText.replace(/\[img\].*?'.*?\[\/img\]/gi, "");
theText = theText.replace(/\[nct\].*?'.*?\[\/nct\]/gi, "");
theText = theText.replace(/\[youtube\].*?'.*?\[\/youtube\]/gi, "");
theText = theText.replace(/\[img\]/gi, "<div style='clear:both'></div><img style='float:left;margin:10px 0;border:1px solid #DDD;max-width:400px;background:#FFF;padding:4px' src='");
theText = theText.replace(/\[\/img\]/gi, "'/><div style='clear:both'></div>");
theText = theText.replace(/\[youtube\]http:\/\/youtu.be/gi, "<iframe width='490' height='276' src='http://www.youtube.com/embed");
theText = theText.replace(/\[youtube\]http:\/\/www.youtube.com\/watch\?v=/gi, "<iframe width='490' height='276' src='http://www.youtube.com/embed/");
theText = theText.replace(/&feature=/gi, "?rel=0' '");
theText = theText.replace(/\[\/youtube\]/gi, "?rel=0' frameborder='0' allowfullscreen></iframe>");
theText = theText.replace(/\[nct\]http:\/\/www.nhaccuatui.com\/nghe\?L=/gi, "<div style='overflow:hidden'><embed style='margin-top:-250px;width:300px;height:400px' src='http://www.nhaccuatui.com/l/");
theText = theText.replace(/\[nct\]http:\/\/www.nhaccuatui.com\/nghe\?M=/gi, "<div style='overflow:hidden'><embed style='margin-top:-350px;width:300px;height:400px' src='http://www.nhaccuatui.com/m/");
theText = theText.replace(/\[\/nct\]/gi, "' quality='high' wmode='transparent' type='application/x-shockwave-flash'></embed></div>");
bodyText.innerHTML = theText;
}replaceText();
//]]>
</script>
</b:if>






<b>Bạn có thể dùng thẻ sau để</b>:
- Post hình : [img] <b><i> link hình </i></b> [/img]
- Post video: [youtube] <b><i> link youtube </i></b> [/youtube]

Không có nhận xét nào:

Đăng nhận xét

Bạn có thể dùng thẻ sau để:
- Post hình : [img] link hình [/img]
- Post video: [youtube] link youtube [/youtube]
---------------------------------------
Nếu chèn nhạc và video xin vui lòng bỏ chế độ : auto play !
Nếu chèn ảnh: Nháy chuột phải vào ảnh định chèn chọn: sao chép URL ảnh, sau đó bôi đen hai chữ: (link hình), dán vào, nháy chuột trái vào : xuất bản là OK ! Các bạn hãy làm thử, chúc thành công ! Xin cảm ơn !