Đăng nhập
Latest topics
» Tôi sẽ đỗ đại học!by NgocPRO 6/11/2024, 8:37 am
» Kỷ niệm xưa của chúng ta
by nightWalker 9/2/2024, 6:49 pm
» Bị lệch khung cần người giúp đỡ
by webhuy28 7/10/2021, 10:34 pm
» [HỎI ĐÁP] Danh sách bạn bè không thể hiển thị
by anhdaodaica1 2/10/2021, 10:04 pm
» [HỎI ĐÁP] Thông tin tài khoản không thể lưu thay đổi
by anhdaodaica1 2/10/2021, 6:05 am
» Phim bố già full
by huy.pc52 24/8/2021, 12:20 am
» Xin code Box HTML cho Forumvi
by Larva 1/7/2021, 12:57 pm
» Hello Anh Em Chinh phục
by HoàngTửNaivip5p 28/5/2021, 5:03 am
» Trang chủ tin tức cập nhật HOT 2016
by kenbi05 1/1/2020, 11:02 pm
» Không Dang9 bài viết = hình ảnh được
by huy.pc52 30/11/2019, 10:52 am
» CHÚC ANH EM NĂM MỚI VUI VẺ TRÀNG ĐẦY HẠNH PHÚC
by sps.kủn 12/2/2019, 1:16 pm
» Skin CNTT-K3 2015 (Full Mod)[✔]
by kenbi05 6/7/2018, 12:30 am
» baivong, handsome,....
by sps.kủn 29/6/2018, 1:54 pm
» [SHARE] SKIN ĐHFM.V7 @PUNBB
by tonyhoaivu 2/5/2018, 2:37 pm
» Share Skin Xanh Dương Cùi Bắp
by tonyhoaivu 28/4/2018, 5:57 pm
» Xin Skin http://v1.hotrofm.net/
by tonyhoaivu 28/4/2018, 5:45 pm
» Xin Skin Rao Vặt
by tonyhoaivu 15/4/2018, 12:07 pm
» Làm Sao Để Xóa Khung Này
by tonyhoaivu 14/4/2018, 7:18 pm
» [Lập nhóm]Lập nhóm fm
by vietkanpy 31/3/2018, 11:53 am
» [Help] về server úp ảnh của phutu [✔]
by baivong 17/3/2018, 10:18 pm
» Đừng khóc cho “tôi – Chinh Phục!”…
by AnHung 27/2/2018, 5:33 pm
» [Share] Skin Diendandaihoc.com [ Punbb ] [✔]
by Lu Mờ 13/2/2018, 7:28 pm
» Mời mấy thím vào groups Forumotion Việt Nam.
by dang02315 13/2/2018, 12:40 am
» Có thể làm các kiểu giao diện được không?
by Lu Mờ 9/2/2018, 3:40 pm
» ltns chinhphuc.info
by Shinichi Kudo 27/1/2018, 2:27 am
Top posting users this week
No user |
[Thắc mắc] Làm s khung video được như thế này[✔]
5 posters
Trang 1 trong tổng số 1 trang
Re: [Thắc mắc] Làm s khung video được như thế này[✔]
acp -> MODULES ->Javascript codes management -> creat a new javascript
Title * : tùy ý
Placement : in the topic
Javascript Code * :
Title * : tùy ý
Placement : in the topic
Javascript Code * :
- Code:
(function(){var xCol="#ff0000";var yCol="#ffffff";var zCol="#0000ff";var n=6;var t=40;var s=0.2;var r,h,w;var d=document;var my=10;var mx=10;var stp=0;var evn=360/3;var vx=new Array();var vy=new Array();var vz=new Array();var dy=new Array();var dx=new Array();var pix="px";var strictmod=((document.compatMode)&&document.compatMode.indexOf("CSS")!=-1);var domWw=(typeof window.innerWidth=="number");var domSy=(typeof window.pageYOffset=="number");var idx=d.getElementsByTagName('div').length;for(i=0;i<n;i++){var dims=(i+1)/2;d.write('<div id="x'+(idx+i)+'" style="position:absolute;'+'top:0px;left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+xCol+';font-size:'+dims+'px"><\/div>'+'<div id="y'+(idx+i)+'" style="position:absolute;top:0px;'+'left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+yCol+';font-size:'+dims+'px"><\/div>'+'<div id="z'+(idx+i)+'" style="position:absolute;top:0px;'+'left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+zCol+';font-size:'+dims+'px"><\/div>')}if(domWw)r=window;else{if(d.documentElement&&typeof d.documentElement.clientWidth=="number"&&d.documentElement.clientWidth!=0)r=d.documentElement;else{if(d.body&&typeof d.body.clientWidth=="number")r=d.body}}function winsize(){var oh,sy,ow,sx,rh,rw;if(domWw){if(d.documentElement&&d.defaultView&&typeof d.defaultView.scrollMaxY=="number"){oh=d.documentElement.offsetHeight;sy=d.defaultView.scrollMaxY;ow=d.documentElement.offsetWidth;sx=d.defaultView.scrollMaxX;rh=oh-sy;rw=ow-sx}else{rh=r.innerHeight;rw=r.innerWidth}h=rh;w=rw}else{h=r.clientHeight;w=r.clientWidth}}function scrl(yx){var y,x;if(domSy){y=r.pageYOffset;x=r.pageXOffset}else{y=r.scrollTop;x=r.scrollLeft}return(yx==0)?y:x}function mouse(e){var msy=(domSy)?window.pageYOffset:0;if(!e)e=window.event;if(typeof e.pageY=='number'){my=e.pageY-msy+16;mx=e.pageX+6}else{my=e.clientY-msy+16;mx=e.clientX+6}if(my>h-65)my=h-65;if(mx>w-50)mx=w-50}function assgn(){for(j=0;j<3;j++){dy[j]=my+50*Math.cos(stp+j*evn*Math.PI/180)*Math.sin((stp+j*25)/2)+scrl(0)+pix;dx[j]=mx+50*Math.sin(stp+j*evn*Math.PI/180)*Math.sin((stp+j*25)/2)*Math.sin(stp/4)+pix}stp+=s;for(i=0;i<n;i++){if(i<n-1){vx[i].top=vx[i+1].top;vx[i].left=vx[i+1].left;vy[i].top=vy[i+1].top;vy[i].left=vy[i+1].left;vz[i].top=vz[i+1].top;vz[i].left=vz[i+1].left}else{vx[i].top=dy[0];vx[i].left=dx[0];vy[i].top=dy[1];vy[i].left=dx[1];vz[i].top=dy[2];vz[i].left=dx[2]}}setTimeout(assgn,t)}function init(){for(i=0;i<n;i++){vx[i]=document.getElementById("x"+(idx+i)).style;vy[i]=document.getElementById("y"+(idx+i)).style;vz[i]=document.getElementById("z"+(idx+i)).style}winsize();assgn()}if(window.addEventListener){window.addEventListener("resize",winsize,false);window.addEventListener("load",init,false);document.addEventListener("mousemove",mouse,false)}else if(window.attachEvent){window.attachEvent("onload",init);document.attachEvent("onmousemove",mouse);window.attachEvent("onresize",winsize)}})();$(document).ready(function(){$("<button class=\"button2\" onmouseover=\"helpline('BBcode zippyshare')\" type=\"button\" onclick=\"fmvizippy()\"><img src=\"http://i76.servimg.com/u/f76/15/42/71/86/zippy10.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='flash']");$(".postbody").each(function(){$(this).html($(this).html().replace(/\[zippy]/gi,""));$(".postbody a[href$='[/zippy]']").each(function(){var a=$(this).text().slice(0,$(this).text().indexOf("[/zippy]"));$(this).replaceWith('<a><a><center><div style="width:500px;height:auto;padding:3px;border:1px solid #CCC;background:#EFEFEF;"><img src="http://i1218.photobucket.com/albums/dd411/tranduyhungqn/tumblrmh3zgupM1v1s3o735o15004dlY_zps939ab0b8.gif" width="500"></center><br/><center><div style="width:500px;height:auto;padding:3px;border:1px solid #CCC;background:#EFEFEF;"><object width="500" height="20" name="single" class="single" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="http://dj.tuoigi.com/bay/Js/Player/jwhplayer.swf" name="movie"><param value="true" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="transparent" name="wmode"><param value="http://dj.anhsaoxanh.tv/zippy.php?id='+a+'flv&logo=http://i75.servimg.com/u/f75/14/46/09/06/12404510.png&menu=false&repeat=always&volume=100&stretching=none&autostart=true&image=http://i42.servimg.com/u/f42/15/42/71/86/33651810.jpg" name="flashvars"><embed width="500" height="40" flashvars="file=http://dj.anhsaoxanh.tv/zippy.php?id='+a+'flv&logo=http://i75.servimg.com/u/f75/14/46/09/06/12404510.png&menu=false&repeat=always&volume=100&stretching=none&autostart=true&image=http://i42.servimg.com/u/f42/15/42/71/86/33651810.jpg" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" bgcolor="undefined" src="http://dj.tuoigi.com/bay/Js/Player/jwhplayer.swf" name="single2" id="single2" type="application/x-shockwave-flash"></object><a target="_blank" href="'+a+'"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10" ><b> DowLoad</b><a><a href="http://djqn.5forum.net/privmsg?mode=post&u=1" target="_blank"><img src="http://i38.servimg.com/u/f38/15/42/71/86/images10.jpg" height="0" width="20px"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10"><b> BĂ¡o Link Há»ng</b></a><a><a href="/f42-forum" target="_blank"><img src="http://i38.servimg.com/u/f38/15/42/71/86/images11.jpg" height="0" width="20px"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10"><b> DJ - Nonstop</b></a></br><img src="http://i38.servimg.com/u/f38/15/42/71/86/images11.jpg" height="10" width="10"><br/><font size="2"><font color="black"><b>•</b> Nếu bĂ i hĂ¡t khĂ´ng tá»± Ä‘á»™ng chạy. Bạn vui lĂ²ng nhấn phĂm F5.</font></font></b><br><font color="black">• <FONT SIZE="2">Nhạc chạy tốt nhất trĂªn trình duyệt <b>FireFox,Chrome vĂ Crom+</b> </font></font><br><FONT SIZE="2"><font color="black"><b>• </b>ChĂºc anh em cĂ³ những giĂ¢y phĂºt thÆ° giĂ£n, giải trĂ vui vẻ vĂ thoải mĂ¡i nhất tại 4rum !</font></font></font></br><br><img src="http://r25.imgfast.net/users/2511/10/52/41/album/sticky10.gif"> <a> <a href="/t40-topic"><font color="red"><font size="2"><blink> HÆ°á»›ng dẫn Post nhạc Nonstop, DJ LĂªn DJQN </blink></font></font></a> </br></div></div></div></td></tr>')})})});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('[zippy]'+name,'[/zippy]');return false}else{alert("LiĂªn kĂ¡ÂºÂ¿t bĂ¡ÂºÂ¡n nhĂ¡ÂºÂp vÄ‚ o khĂ´ng Ă„â€˜Ä‚Âºng");return false}}$(document).on('ready',function(){$(".sceditor-container").append('<div class="sceditor-dropdown sceditor-vfm"style="display:none;margin-top: 27px;"><div><label for="urlvideo"style="text-align:left;">Url ZippyShare:</label><input type="text"id="urlvideo"style="float:left"placeholder="Nháºp url..."><input type="button"style="margin-top: 15px;"class="button"value="insert"></div></div>');$('<a class= "sceditor-button bbcode-tooltip" title= "ZippyShare"><div style="background-image:url(http://i76.servimg.com/u/f76/15/42/71/86/zippy10.png)">ZippyShare</div></a>').insertAfter('.sceditor-button-fahide').click(function(){$(".sceditor-vfm").css({"left":$(this).position().left,"top":$(this).position().top,});$(".sceditor-vfm").toggle()});$(".sceditor-vfm .button").click(function(){var a=$(".sceditor-vfm #urlvideo").val();$('#text_editor_textarea').sceditor("instance").insert('[zippy]'+a+'[/zippy]')})});var skin='http://www.longtailvideo.com/files/skins/nature01/5/nature01.zip';plugin='';width='640';height='360';allowfullscreen='true';autostart='false';stretching='uniform';volume='90';centered='true';where='body';$.getScript('http://player.longtailvideo.com/jwplayer.js');$(function(){var a=encodeURIComponent(skin);$(where+' embed[src*="youtube"]').each(function(){$(this).replaceWith("<embed class='jwplayer' name='jwplayer' src='http://player.longtailvideo.com/player.swf' width='"+width+"' height='"+height+"' allowscriptaccess='always' allowfullscreen='"+allowfullscreen+"' flashvars='file="+$(this).attr("src")+"&skin="+a+"&plugins="+plugin+"&autostart="+autostart+"&stretching="+stretching+"&volume="+volume+"' />");if(centered=="true"){$(".jwplayer").wrap("<center/>")}})});
Re: [Thắc mắc] Làm s khung video được như thế này[✔]
Dài thế cơ à? Hình như trong đó dư 1 ít js không cần thiết thỉ phảiTuyệt Vọng đã viết:acp -> MODULES ->Javascript codes management -> creat a new javascript
Title * : tùy ý
Placement : in the topic
Javascript Code * :js này có hiệu ứng xoay theo chuột, zippy và youtube
- Code:
(function(){var xCol="#ff0000";var yCol="#ffffff";var zCol="#0000ff";var n=6;var t=40;var s=0.2;var r,h,w;var d=document;var my=10;var mx=10;var stp=0;var evn=360/3;var vx=new Array();var vy=new Array();var vz=new Array();var dy=new Array();var dx=new Array();var pix="px";var strictmod=((document.compatMode)&&document.compatMode.indexOf("CSS")!=-1);var domWw=(typeof window.innerWidth=="number");var domSy=(typeof window.pageYOffset=="number");var idx=d.getElementsByTagName('div').length;for(i=0;i<n;i++){var dims=(i+1)/2;d.write('<div id="x'+(idx+i)+'" style="position:absolute;'+'top:0px;left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+xCol+';font-size:'+dims+'px"><\/div>'+'<div id="y'+(idx+i)+'" style="position:absolute;top:0px;'+'left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+yCol+';font-size:'+dims+'px"><\/div>'+'<div id="z'+(idx+i)+'" style="position:absolute;top:0px;'+'left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+zCol+';font-size:'+dims+'px"><\/div>')}if(domWw)r=window;else{if(d.documentElement&&typeof d.documentElement.clientWidth=="number"&&d.documentElement.clientWidth!=0)r=d.documentElement;else{if(d.body&&typeof d.body.clientWidth=="number")r=d.body}}function winsize(){var oh,sy,ow,sx,rh,rw;if(domWw){if(d.documentElement&&d.defaultView&&typeof d.defaultView.scrollMaxY=="number"){oh=d.documentElement.offsetHeight;sy=d.defaultView.scrollMaxY;ow=d.documentElement.offsetWidth;sx=d.defaultView.scrollMaxX;rh=oh-sy;rw=ow-sx}else{rh=r.innerHeight;rw=r.innerWidth}h=rh;w=rw}else{h=r.clientHeight;w=r.clientWidth}}function scrl(yx){var y,x;if(domSy){y=r.pageYOffset;x=r.pageXOffset}else{y=r.scrollTop;x=r.scrollLeft}return(yx==0)?y:x}function mouse(e){var msy=(domSy)?window.pageYOffset:0;if(!e)e=window.event;if(typeof e.pageY=='number'){my=e.pageY-msy+16;mx=e.pageX+6}else{my=e.clientY-msy+16;mx=e.clientX+6}if(my>h-65)my=h-65;if(mx>w-50)mx=w-50}function assgn(){for(j=0;j<3;j++){dy[j]=my+50*Math.cos(stp+j*evn*Math.PI/180)*Math.sin((stp+j*25)/2)+scrl(0)+pix;dx[j]=mx+50*Math.sin(stp+j*evn*Math.PI/180)*Math.sin((stp+j*25)/2)*Math.sin(stp/4)+pix}stp+=s;for(i=0;i<n;i++){if(i<n-1){vx[i].top=vx[i+1].top;vx[i].left=vx[i+1].left;vy[i].top=vy[i+1].top;vy[i].left=vy[i+1].left;vz[i].top=vz[i+1].top;vz[i].left=vz[i+1].left}else{vx[i].top=dy[0];vx[i].left=dx[0];vy[i].top=dy[1];vy[i].left=dx[1];vz[i].top=dy[2];vz[i].left=dx[2]}}setTimeout(assgn,t)}function init(){for(i=0;i<n;i++){vx[i]=document.getElementById("x"+(idx+i)).style;vy[i]=document.getElementById("y"+(idx+i)).style;vz[i]=document.getElementById("z"+(idx+i)).style}winsize();assgn()}if(window.addEventListener){window.addEventListener("resize",winsize,false);window.addEventListener("load",init,false);document.addEventListener("mousemove",mouse,false)}else if(window.attachEvent){window.attachEvent("onload",init);document.attachEvent("onmousemove",mouse);window.attachEvent("onresize",winsize)}})();$(document).ready(function(){$("<button class=\"button2\" onmouseover=\"helpline('BBcode zippyshare')\" type=\"button\" onclick=\"fmvizippy()\"><img src=\"http://i76.servimg.com/u/f76/15/42/71/86/zippy10.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='flash']");$(".postbody").each(function(){$(this).html($(this).html().replace(/\[zippy]/gi,""));$(".postbody a[href$='[/zippy]']").each(function(){var a=$(this).text().slice(0,$(this).text().indexOf("[/zippy]"));$(this).replaceWith('<a><a><center><div style="width:500px;height:auto;padding:3px;border:1px solid #CCC;background:#EFEFEF;"><img src="http://i1218.photobucket.com/albums/dd411/tranduyhungqn/tumblrmh3zgupM1v1s3o735o15004dlY_zps939ab0b8.gif" width="500"></center><br/><center><div style="width:500px;height:auto;padding:3px;border:1px solid #CCC;background:#EFEFEF;"><object width="500" height="20" name="single" class="single" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="http://dj.tuoigi.com/bay/Js/Player/jwhplayer.swf" name="movie"><param value="true" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="transparent" name="wmode"><param value="http://dj.anhsaoxanh.tv/zippy.php?id='+a+'flv&logo=http://i75.servimg.com/u/f75/14/46/09/06/12404510.png&menu=false&repeat=always&volume=100&stretching=none&autostart=true&image=http://i42.servimg.com/u/f42/15/42/71/86/33651810.jpg" name="flashvars"><embed width="500" height="40" flashvars="file=http://dj.anhsaoxanh.tv/zippy.php?id='+a+'flv&logo=http://i75.servimg.com/u/f75/14/46/09/06/12404510.png&menu=false&repeat=always&volume=100&stretching=none&autostart=true&image=http://i42.servimg.com/u/f42/15/42/71/86/33651810.jpg" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" bgcolor="undefined" src="http://dj.tuoigi.com/bay/Js/Player/jwhplayer.swf" name="single2" id="single2" type="application/x-shockwave-flash"></object><a target="_blank" href="'+a+'"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10" ><b> DowLoad</b><a><a href="http://djqn.5forum.net/privmsg?mode=post&u=1" target="_blank"><img src="http://i38.servimg.com/u/f38/15/42/71/86/images10.jpg" height="0" width="20px"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10"><b> BĂ¡o Link Há»ng</b></a><a><a href="/f42-forum" target="_blank"><img src="http://i38.servimg.com/u/f38/15/42/71/86/images11.jpg" height="0" width="20px"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10"><b> DJ - Nonstop</b></a></br><img src="http://i38.servimg.com/u/f38/15/42/71/86/images11.jpg" height="10" width="10"><br/><font size="2"><font color="black"><b>•</b> Nếu bĂ i hĂ¡t khĂ´ng tá»± Ä‘á»™ng chạy. Bạn vui lĂ²ng nhấn phĂm F5.</font></font></b><br><font color="black">• <FONT SIZE="2">Nhạc chạy tốt nhất trĂªn trình duyệt <b>FireFox,Chrome vĂ Crom+</b> </font></font><br><FONT SIZE="2"><font color="black"><b>• </b>ChĂºc anh em cĂ³ những giĂ¢y phĂºt thÆ° giĂ£n, giải trĂ vui vẻ vĂ thoải mĂ¡i nhất tại 4rum !</font></font></font></br><br><img src="http://r25.imgfast.net/users/2511/10/52/41/album/sticky10.gif"> <a> <a href="/t40-topic"><font color="red"><font size="2"><blink> HÆ°á»›ng dẫn Post nhạc Nonstop, DJ LĂªn DJQN </blink></font></font></a> </br></div></div></div></td></tr>')})})});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('[zippy]'+name,'[/zippy]');return false}else{alert("LiĂªn kĂ¡ÂºÂ¿t bĂ¡ÂºÂ¡n nhĂ¡ÂºÂp vÄ‚ o khĂ´ng Ă„â€˜Ä‚Âºng");return false}}$(document).on('ready',function(){$(".sceditor-container").append('<div class="sceditor-dropdown sceditor-vfm"style="display:none;margin-top: 27px;"><div><label for="urlvideo"style="text-align:left;">Url ZippyShare:</label><input type="text"id="urlvideo"style="float:left"placeholder="Nháºp url..."><input type="button"style="margin-top: 15px;"class="button"value="insert"></div></div>');$('<a class= "sceditor-button bbcode-tooltip" title= "ZippyShare"><div style="background-image:url(http://i76.servimg.com/u/f76/15/42/71/86/zippy10.png)">ZippyShare</div></a>').insertAfter('.sceditor-button-fahide').click(function(){$(".sceditor-vfm").css({"left":$(this).position().left,"top":$(this).position().top,});$(".sceditor-vfm").toggle()});$(".sceditor-vfm .button").click(function(){var a=$(".sceditor-vfm #urlvideo").val();$('#text_editor_textarea').sceditor("instance").insert('[zippy]'+a+'[/zippy]')})});var skin='http://www.longtailvideo.com/files/skins/nature01/5/nature01.zip';plugin='';width='640';height='360';allowfullscreen='true';autostart='false';stretching='uniform';volume='90';centered='true';where='body';$.getScript('http://player.longtailvideo.com/jwplayer.js');$(function(){var a=encodeURIComponent(skin);$(where+' embed[src*="youtube"]').each(function(){$(this).replaceWith("<embed class='jwplayer' name='jwplayer' src='http://player.longtailvideo.com/player.swf' width='"+width+"' height='"+height+"' allowscriptaccess='always' allowfullscreen='"+allowfullscreen+"' flashvars='file="+$(this).attr("src")+"&skin="+a+"&plugins="+plugin+"&autostart="+autostart+"&stretching="+stretching+"&volume="+volume+"' />");if(centered=="true"){$(".jwplayer").wrap("<center/>")}})});
Re: [Thắc mắc] Làm s khung video được như thế này[✔]
Tớ tách rồi chả biết có đúng k Bạn thớt cứ dùng thử nhé
Tạo 1 js mới:
In all the page
Tạo 1 js mới:
In all the page
- Code:
var skin='http://www.longtailvideo.com/files/skins/nature01/5/nature01.zip';plugin='';width='640';height='360';allowfullscreen='true';autostart='false';stretching='uniform';volume='90';centered='true';where='body';$.getScript('http://player.longtailvideo.com/jwplayer.js');$(function(){var a=encodeURIComponent(skin);$(where+' embed[src*="youtube"]').each(function(){$(this).replaceWith("<embed class='jwplayer' name='jwplayer' src='http://player.longtailvideo.com/player.swf' width='"+width+"' height='"+height+"' allowscriptaccess='always' allowfullscreen='"+allowfullscreen+"' flashvars='file="+$(this).attr("src")+"&skin="+a+"&plugins="+plugin+"&autostart="+autostart+"&stretching="+stretching+"&volume="+volume+"' />");if(centered=="true"){$(".jwplayer").wrap("<center/>")}})});
Re: [Thắc mắc] Làm s khung video được như thế này[✔]
tớ đã nóiDrDuyWin đã viết:Dài thế cơ à? Hình như trong đó dư 1 ít js không cần thiết thỉ phảiTuyệt Vọng đã viết:acp -> MODULES ->Javascript codes management -> creat a new javascript
Title * : tùy ý
Placement : in the topic
Javascript Code * :js này có hiệu ứng xoay theo chuột, zippy và youtube
- Code:
(function(){var xCol="#ff0000";var yCol="#ffffff";var zCol="#0000ff";var n=6;var t=40;var s=0.2;var r,h,w;var d=document;var my=10;var mx=10;var stp=0;var evn=360/3;var vx=new Array();var vy=new Array();var vz=new Array();var dy=new Array();var dx=new Array();var pix="px";var strictmod=((document.compatMode)&&document.compatMode.indexOf("CSS")!=-1);var domWw=(typeof window.innerWidth=="number");var domSy=(typeof window.pageYOffset=="number");var idx=d.getElementsByTagName('div').length;for(i=0;i<n;i++){var dims=(i+1)/2;d.write('<div id="x'+(idx+i)+'" style="position:absolute;'+'top:0px;left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+xCol+';font-size:'+dims+'px"><\/div>'+'<div id="y'+(idx+i)+'" style="position:absolute;top:0px;'+'left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+yCol+';font-size:'+dims+'px"><\/div>'+'<div id="z'+(idx+i)+'" style="position:absolute;top:0px;'+'left:0px;width:'+dims+'px;height:'+dims+'px;'+'background-color:'+zCol+';font-size:'+dims+'px"><\/div>')}if(domWw)r=window;else{if(d.documentElement&&typeof d.documentElement.clientWidth=="number"&&d.documentElement.clientWidth!=0)r=d.documentElement;else{if(d.body&&typeof d.body.clientWidth=="number")r=d.body}}function winsize(){var oh,sy,ow,sx,rh,rw;if(domWw){if(d.documentElement&&d.defaultView&&typeof d.defaultView.scrollMaxY=="number"){oh=d.documentElement.offsetHeight;sy=d.defaultView.scrollMaxY;ow=d.documentElement.offsetWidth;sx=d.defaultView.scrollMaxX;rh=oh-sy;rw=ow-sx}else{rh=r.innerHeight;rw=r.innerWidth}h=rh;w=rw}else{h=r.clientHeight;w=r.clientWidth}}function scrl(yx){var y,x;if(domSy){y=r.pageYOffset;x=r.pageXOffset}else{y=r.scrollTop;x=r.scrollLeft}return(yx==0)?y:x}function mouse(e){var msy=(domSy)?window.pageYOffset:0;if(!e)e=window.event;if(typeof e.pageY=='number'){my=e.pageY-msy+16;mx=e.pageX+6}else{my=e.clientY-msy+16;mx=e.clientX+6}if(my>h-65)my=h-65;if(mx>w-50)mx=w-50}function assgn(){for(j=0;j<3;j++){dy[j]=my+50*Math.cos(stp+j*evn*Math.PI/180)*Math.sin((stp+j*25)/2)+scrl(0)+pix;dx[j]=mx+50*Math.sin(stp+j*evn*Math.PI/180)*Math.sin((stp+j*25)/2)*Math.sin(stp/4)+pix}stp+=s;for(i=0;i<n;i++){if(i<n-1){vx[i].top=vx[i+1].top;vx[i].left=vx[i+1].left;vy[i].top=vy[i+1].top;vy[i].left=vy[i+1].left;vz[i].top=vz[i+1].top;vz[i].left=vz[i+1].left}else{vx[i].top=dy[0];vx[i].left=dx[0];vy[i].top=dy[1];vy[i].left=dx[1];vz[i].top=dy[2];vz[i].left=dx[2]}}setTimeout(assgn,t)}function init(){for(i=0;i<n;i++){vx[i]=document.getElementById("x"+(idx+i)).style;vy[i]=document.getElementById("y"+(idx+i)).style;vz[i]=document.getElementById("z"+(idx+i)).style}winsize();assgn()}if(window.addEventListener){window.addEventListener("resize",winsize,false);window.addEventListener("load",init,false);document.addEventListener("mousemove",mouse,false)}else if(window.attachEvent){window.attachEvent("onload",init);document.attachEvent("onmousemove",mouse);window.attachEvent("onresize",winsize)}})();$(document).ready(function(){$("<button class=\"button2\" onmouseover=\"helpline('BBcode zippyshare')\" type=\"button\" onclick=\"fmvizippy()\"><img src=\"http://i76.servimg.com/u/f76/15/42/71/86/zippy10.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='flash']");$(".postbody").each(function(){$(this).html($(this).html().replace(/\[zippy]/gi,""));$(".postbody a[href$='[/zippy]']").each(function(){var a=$(this).text().slice(0,$(this).text().indexOf("[/zippy]"));$(this).replaceWith('<a><a><center><div style="width:500px;height:auto;padding:3px;border:1px solid #CCC;background:#EFEFEF;"><img src="http://i1218.photobucket.com/albums/dd411/tranduyhungqn/tumblrmh3zgupM1v1s3o735o15004dlY_zps939ab0b8.gif" width="500"></center><br/><center><div style="width:500px;height:auto;padding:3px;border:1px solid #CCC;background:#EFEFEF;"><object width="500" height="20" name="single" class="single" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="http://dj.tuoigi.com/bay/Js/Player/jwhplayer.swf" name="movie"><param value="true" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="transparent" name="wmode"><param value="http://dj.anhsaoxanh.tv/zippy.php?id='+a+'flv&logo=http://i75.servimg.com/u/f75/14/46/09/06/12404510.png&menu=false&repeat=always&volume=100&stretching=none&autostart=true&image=http://i42.servimg.com/u/f42/15/42/71/86/33651810.jpg" name="flashvars"><embed width="500" height="40" flashvars="file=http://dj.anhsaoxanh.tv/zippy.php?id='+a+'flv&logo=http://i75.servimg.com/u/f75/14/46/09/06/12404510.png&menu=false&repeat=always&volume=100&stretching=none&autostart=true&image=http://i42.servimg.com/u/f42/15/42/71/86/33651810.jpg" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" bgcolor="undefined" src="http://dj.tuoigi.com/bay/Js/Player/jwhplayer.swf" name="single2" id="single2" type="application/x-shockwave-flash"></object><a target="_blank" href="'+a+'"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10" ><b> DowLoad</b><a><a href="http://djqn.5forum.net/privmsg?mode=post&u=1" target="_blank"><img src="http://i38.servimg.com/u/f38/15/42/71/86/images10.jpg" height="0" width="20px"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10"><b> BĂ¡o Link Há»ng</b></a><a><a href="/f42-forum" target="_blank"><img src="http://i38.servimg.com/u/f38/15/42/71/86/images11.jpg" height="0" width="20px"><img src="http://i38.servimg.com/u/f38/15/42/71/86/subfor10.gif" height="10" width="10"><b> DJ - Nonstop</b></a></br><img src="http://i38.servimg.com/u/f38/15/42/71/86/images11.jpg" height="10" width="10"><br/><font size="2"><font color="black"><b>•</b> Nếu bĂ i hĂ¡t khĂ´ng tá»± Ä‘á»™ng chạy. Bạn vui lĂ²ng nhấn phĂm F5.</font></font></b><br><font color="black">• <FONT SIZE="2">Nhạc chạy tốt nhất trĂªn trình duyệt <b>FireFox,Chrome vĂ Crom+</b> </font></font><br><FONT SIZE="2"><font color="black"><b>• </b>ChĂºc anh em cĂ³ những giĂ¢y phĂºt thÆ° giĂ£n, giải trĂ vui vẻ vĂ thoải mĂ¡i nhất tại 4rum !</font></font></font></br><br><img src="http://r25.imgfast.net/users/2511/10/52/41/album/sticky10.gif"> <a> <a href="/t40-topic"><font color="red"><font size="2"><blink> HÆ°á»›ng dẫn Post nhạc Nonstop, DJ LĂªn DJQN </blink></font></font></a> </br></div></div></div></td></tr>')})})});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('[zippy]'+name,'[/zippy]');return false}else{alert("LiĂªn kĂ¡ÂºÂ¿t bĂ¡ÂºÂ¡n nhĂ¡ÂºÂp vÄ‚ o khĂ´ng Ă„â€˜Ä‚Âºng");return false}}$(document).on('ready',function(){$(".sceditor-container").append('<div class="sceditor-dropdown sceditor-vfm"style="display:none;margin-top: 27px;"><div><label for="urlvideo"style="text-align:left;">Url ZippyShare:</label><input type="text"id="urlvideo"style="float:left"placeholder="Nháºp url..."><input type="button"style="margin-top: 15px;"class="button"value="insert"></div></div>');$('<a class= "sceditor-button bbcode-tooltip" title= "ZippyShare"><div style="background-image:url(http://i76.servimg.com/u/f76/15/42/71/86/zippy10.png)">ZippyShare</div></a>').insertAfter('.sceditor-button-fahide').click(function(){$(".sceditor-vfm").css({"left":$(this).position().left,"top":$(this).position().top,});$(".sceditor-vfm").toggle()});$(".sceditor-vfm .button").click(function(){var a=$(".sceditor-vfm #urlvideo").val();$('#text_editor_textarea').sceditor("instance").insert('[zippy]'+a+'[/zippy]')})});var skin='http://www.longtailvideo.com/files/skins/nature01/5/nature01.zip';plugin='';width='640';height='360';allowfullscreen='true';autostart='false';stretching='uniform';volume='90';centered='true';where='body';$.getScript('http://player.longtailvideo.com/jwplayer.js');$(function(){var a=encodeURIComponent(skin);$(where+' embed[src*="youtube"]').each(function(){$(this).replaceWith("<embed class='jwplayer' name='jwplayer' src='http://player.longtailvideo.com/player.swf' width='"+width+"' height='"+height+"' allowscriptaccess='always' allowfullscreen='"+allowfullscreen+"' flashvars='file="+$(this).attr("src")+"&skin="+a+"&plugins="+plugin+"&autostart="+autostart+"&stretching="+stretching+"&volume="+volume+"' />");if(centered=="true"){$(".jwplayer").wrap("<center/>")}})});
js này có hiệu ứng xoay theo chuột, zippy và youtube. gà js nên ko biết tách riêng, đây là rip theo demo
Re: [Thắc mắc] Làm s khung video được như thế này[✔]
đặt ở : In all the pages
- Code:
var skin = 'http://www.longtailvideo.com/files/skins/nature01/5/nature01.zip';
plugin = ''; // Use coma to separate each plugin
width = '640';
height = '360';
allowfullscreen = 'true'; // true or false
autostart = 'false'; // true or false
stretching = 'uniform'; // none or exactfit or unifrom or fill
volume = '90'; // from 0 to 100
centered = 'true'; // true of false
where = 'body'; // body or .post
////////// DO NOT EDIT ANYTHING BELOW THIS LINE /////////////
$.getScript('http://player.longtailvideo.com/jwplayer.js');
$(function() {
var a = encodeURIComponent(skin);
$(where + ' embed[src*="youtube"]').each(function() {
$(this).replaceWith("<embed class='jwplayer' name='jwplayer' src='http://player.longtailvideo.com/player.swf' width='" + width + "' height='" + height + "' allowscriptaccess='always' allowfullscreen='" + allowfullscreen + "' flashvars='file=" + $(this).attr("src") + "&skin=" + a + "&plugins=" + plugin + "&autostart=" + autostart + "&stretching=" + stretching + "&volume=" + volume + "' />");
if (centered == "true") {
$(".jwplayer").wrap("<center/>")
}
})
});
Similar topics
» Help xin khung video youtube[✔]
» code tạo khung xem video
» [Thắc mắc] ai giúp mình đóng khung 3 video này và cho nằm ngang với
» [Thắc mắc] Cách chèn ô chèn video vào khung trả lời nhanh?
» [Thắc mắc] Gặp sự cố khi xem nhanh video được chèn khung bằng css[✔]
» code tạo khung xem video
» [Thắc mắc] ai giúp mình đóng khung 3 video này và cho nằm ngang với
» [Thắc mắc] Cách chèn ô chèn video vào khung trả lời nhanh?
» [Thắc mắc] Gặp sự cố khi xem nhanh video được chèn khung bằng css[✔]
Trang 1 trong tổng số 1 trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết