1 Code] Nút BBcode phát nhạc từ Zippy Mon Nov 12, 2012 8:32 am
Admin
Trùm Forum
Demo:
[You must be registered and logged in to see this image.]
Vào MODULES >> HTML & JAVASCRIPT >> Javascript codes management>>>Change a Javascript Code
Title * : BBcode phát nhạc Zippy
Placement :In the topics
Javascript Code * :
[You must be registered and logged in to see this image.]
Vào MODULES >> HTML & JAVASCRIPT >> Javascript codes management>>>Change a Javascript Code
Title * : BBcode phát nhạc Zippy
Placement :In the topics
Javascript Code * :
- Code:
$(document).ready(function () {
$("<button class=\"button2\" onmouseover=\"helpline('BBcode zippyshare')\" type=\"button\" onclick=\"fmvizippy()\"><img src=\"http://i48.servimg.com/u/f48/16/58/89/73/zippys10.png\" height=\"16px\"/></button> <img src=\"http://2img.net/i/fa/wysiwyg/separator.png\" style=\"vertical-align: middle;\">").insertBefore("span#text_edit input.button2[value='Others']");
$(".postbody").each(function () {
$(this).html($(this).html().replace(/\/gi, ""));
$(".postbody a[href$='[/zippy]']").each(function () {
var a = $(this).text().slice(0, $(this).text().indexOf("[/zippy]"));
$(this).replaceWith('<table width=35% border= 0 cellpadding= "1" cellspacing= "1"><tr bgcolor=#000000><td><div align="center"><div style="background-color: #ffffff; width: 300px;"><embed pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.fileden.com/files/2011/10/9/3206699/2.swf" width="300px" height="200px"type="application/x-shockwave-flash" wmode="transparent" quality="high" scale="exactfit"></embed><object width="300" height="100" name="single" class="single" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="http://9nhac.com/jwhplayer.swf" name="movie"><param value="true" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="transparent" name="wmode"><param value="http://phukientubep.com/dj.very.vn/mp3/z.php?id=' + a + 'flv&logo=http://i42.servimg.com/u/f42/15/42/71/86/logo_d11.png&menu=false&repeat=always&stretching=none&autostart=true&image=http://i42.servimg.com/u/f42/15/42/71/86/image10.jpg" name="flashvars"><embed width="300" height="100" flashvars="file=http://phukientubep.com/dj.very.vn/mp3/z.php?id=' + a + 'flv&logo=http://i42.servimg.com/u/f42/15/42/71/86/logo_d12.png&menu=false&repeat=always&stretching=none&autostart=true&image=http://i42.servimg.com/u/f42/15/42/71/86/image10.jpg" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" bgcolor="undefined" src="http://9nhac.com/jwhplayer.swf" name="single2" id="single2" type="application/x-shockwave-flash"></object><div style="width: 300px; padding: 0px 0pt;"><a target="_blank" href="' + a + '"><br>Free Download</div></div></div></td></tr></table>');
});
});
});
function fmvizippy() {
var name = prompt("Nhập vào đây liên kết đến tập tin zippyshare", "");
if (name != null && name != "" && name.indexOf("zippyshare.com") != -1 && name.indexOf("http") != -1 && name.indexOf("file.html") != -1) {
bbfontstyle('' + name, '[/zippy]');
return false;
} else {
alert("Liên kết bạn nhập vào không đúng");
return false;
}
}