Vibay
Hiển thị các bài đăng có nhãn Vibay code. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Vibay code. Hiển thị tất cả bài đăng

Thứ Ba, 21 tháng 2, 2012

Vibay code 1

Nhúng video từ V.ifeng.com

<div id="playerDiv" class="video">
<embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="http://img.ifeng.com/swf/zuheVplayer_v2.09.swf" height="375" width="530" id="fplay" flashvars="guid=9f393960-c521-472b-a157-a53393dbd247&amp;from=free&amp;AutoPlay=false&amp;ADPlay=false&amp;uid=1348409412517_8873&amp;sid=&amp;locid=&amp;startTime=0&amp;parent=0&amp;light=ON&amp;adType=5&amp;preAdType=0&amp;pageurl=http://v.ifeng.com/mil/mainland/201209/9f393960-c521-472b-a157-a53393dbd247.shtml&amp;PlayerName=vFreePlayer" allowfullscreen="true" wmode="Opaque" allowscriptaccess="always"></div>

Video MP4

<object type="application/x-shockwave-flash" id="playerID-video-details" name="playerID-video-details" data="http://vibay.weebly.com/uploads/1/1/4/1/11413983/player.swf" width="530" height="370"><param name="wmode" value="opaque"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="flashvars" value="controlbar=bottom&amp;file=URL.mp4&amp;image=URL.jpg&amp;backcolor=000000&amp;frontcolor=999999&amp;lightcolor=CC0000&amp;screencolor=000000&amp;width=530&amp;height=370&amp;viral.oncomplete=false&amp;viral.onpause=false&amp;repeat=always&amp;provider=http&amp;autostart=true"></object>

Nhúng video tắt âm thanh từ youtube

<center>
<script src="http://www.google.com/jsapi"></script>
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
<div id="ytapiplayer">You need Flash player 8+ and JavaScript enabled to view this video.</div>
<script type="text/javascript">
google.load("swfobject", "2.1");
function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById("myytplayer");
ytplayer.playVideo();
ytplayer.mute();
}
var params = { allowScriptAccess: "always" };
var atts = { id: "myytplayer" };
swfobject.embedSWF("http://www.youtube.com/v/wUcjjMaR5-s?enablejsapi=1&playerapiid=ytplayer&allowFullScreen=true&version=3",
"ytapiplayer", "290", "160", "8", null, null, params, atts)
</script>
</center>

Nhúng video MP4 vào blog


<object type="application/x-shockwave-flash" id="playerID-video-details" name="playerID-video-details" data="http://tv.tuoitre.vn/js/player/player.swf" width="530" height="380"><param name="wmode" value="opaque">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="flashvars" value="controlbar=bottom&amp;file=http://123.30.128.25/r/2012/02/nwFHwL7g.mp4&amp;image=http://123.30.128.26/t/s639/2012/02/0dwVprZs.jpg&amp;backcolor=000000&amp;frontcolor=999999&amp;lightcolor=CC0000&amp;screencolor=000000&amp;width=530&amp;height=380&amp;viral.oncomplete=false&amp;viral.onpause=false&amp;repeat=always&amp;autostart=true&amp;provider=http">
</object>

Hiển thị vị trí Thẻ Div

<div style="position: absolute; width: 150px; height: 100px; z-index: 1; left: 180px; top: 98px" id="layer1">
anh yêu em nhiều lắm</div>
<!--<div style="position: absolute; width: 100px; height: 100px; z-index: 2; left: 180px; top: 98px" id="layer2">
<font color="#FF0000">ti&#7873;n không có thì &#273;&#7915;ng có &#273;òi yêu</font><p>
<font color="#FF0000">ti&#7873;n t&#7843;i n&#7893;i lên trên tình yêu th&#7853;t s&#7921;</font>
</div>-->

Thẻ div nhúng video ở trang chủ

<!--Th&#7917; nghi&#7879;m-->
<div style="position: absolute; width: 150px; height: 100px; z-index: 1; left: 160px; top: 58px" id="layer1">
<object width="150" height="100"><param name="movie" value="http://www.youtube.com/v/SMj1cyQxI7g&autoplay;=1?version=3&amp;hl=vi_VN&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/SMj1cyQxI7g&autoplay;=1?version=3&amp;hl=vi_VN&amp;rel=0" type="application/x-shockwave-flash" width="150" height="100" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<!--&#272;óng mã-->

Bài viết mới theo nhãn giống Vnexpress

<!--Tin headlines-->
<table border='0' cellpadding='0' cellspacing='0' class='reference' width='545px'>
<tbody>
<tr>
<td bgcolor='#ffffff' height='200px' valign='top' width='300px'>
<style type='text/css'>

.mota{
position: relative;
z-index: 0;
text-decoration:none;
}

.mota:hover{
background-color: transparent;
z-index: 50;
}

.mota span{
position: absolute;
background-color: #ffffff;
padding: 5px;
left: -1000px;
border: 1px solid #ffffff;
visibility: hidden;
color: white;
text-decoration: none;
}

.mota span img{
border-width: 0;
padding: 5px;
}

.mota:hover span{
padding:3px;
visibility: visible;
top: 10px;
left:30px;
width:300px;
background:#ffffff;
text-align: justify;
}

</style>

<script language='JavaScript'>
imgr = new Array();

imgr[0] = &quot;http://sites.google.com/site/fdblogsite/Home/nothumbnail.gif&quot;;


showRandomImg = true;
tablewidth = 300;
cellspacing = 0;
borderColor = &quot;#ffffff&quot;;
bgTD = &quot;#ffffff&quot;;

imgwidth = 300; // &#273;&#7897; r&#7897;ng c&#7911;a &#7843;nh thumbnail
imgheight = 200; // chi&#7873;u cao c&#7911;a &#7843;nh thumbnail
fntsize = 0;
acolor = &quot;#ffffff&quot;;
aBold = true;
icon = &quot; &quot;;

text = &quot;no&quot;;

showPostDate = false;

summaryPost = 0;
summaryFontsize = 0;
summaryColor = &quot;#000&quot;;
icon2 = &quot; &gt; &quot;;

numposts = 1;
label = &quot;Headlines&quot;;
home_page = &quot;http://vibay.blogspot.com/&quot;;

</script>
<script src='http://vibay.weebly.com/uploads/1/1/4/1/11413983/1965/evnrecent_post_thumnail_blogger2.js' type='text/javascript'/>
</td>
<td bgcolor='#ffffff' height='200px' valign='top' width='245px'>
<style type='text/css'>
.wbox {background-color:#ffffff;width:auto;height:auto;}
.wbox.Cat {width:245px;height:auto;margin-bottom:3px;}
.wbox .tl {
background:url(http://quantrimang.com.vn/App_Themes/default/images/left_wbox_03.jpg) no-repeat left top;
padding-left:3px;
}
.wbox .tr {
background:url(http://quantrimang.com.vn/App_Themes/default/images/right_wbox_03.jpg) no-repeat right top;
padding-right:3px;
}
.wbox .tc {
background:url(http://quantrimang.com.vn/App_Themes/default/images/mid_wbox_03.jpg) repeat-x left top;
height:15px;
color:#246296;
font-size:15px;
text-transform:uppercase;
font-weight:bold;
padding-top:3px;
padding-left:5px;
}
.wbox .tc a {text-decoration:none;color:#246296;}
.wbox .ml {
background:url(http://quantrimang.com.vn/App_Themes/default/images/left_contannerbox.jpg) repeat-y left top;
padding-left:3px;
}
.wbox .mr
{
background:url(http://quantrimang.com.vn/App_Themes/default/images/right_contannerbox.jpg) repeat-y right top;
padding-right:3px;
}
.wbox .mc {background-color:#FFFFFF;}
.wbox .bl
{
background:url(http://quantrimang.com.vn/App_Themes/default/images/bottomLeft_wbox.jpg) no-repeat left top;
padding-left:3px;
height:3px;
}
.wbox .br
{
background:url(http://quantrimang.com.vn/App_Themes/default/images/bottomright_wbox.jpg) no-repeat right top;
height:3px;
padding-right:3px;
}
.wbox .bc
{
background:url(http://quantrimang.com.vn/App_Themes/default/images/bottomMiddle_wbox.jpg) repeat-x left top;
height:3px;
font-size:0;
line-height:5px;
}
.Tin_lienquan ul,.Tin_lienquan li {list-style:true}
.Title_article {
color:#336699;
font-size:17px;
font-weight:bold;
padding-top:0px;
padding-bottom:7px;
padding-left:3px;
}
.Title_article {text-decoration:none;color:#336699;}
.Title_article a {text-decoration:none;color:#336699;}
.Title_article a:hover {color:#990000; text-decoration:none;}
.imgModule {padding-left:3px;}
.imgModule img {height:0px; width:0px; margin-right:3px;}
.imgModule a {text-decoration:none;}
.Tin_lienquan {
color:#797979;
font-size:13px;
font-weight:normal;
padding-top:7px;
font-family:Tahoma;
padding-left:3px;
}
.Tin_lienquan a {text-decoration:none; color:#004784;}
.Tin_lienquan a:hover {text-decoration:none;color:#CC3300;}
</style>
<script type='text/javascript'>
home_page = &quot;http://vibay.blogspot.com/&quot;;
label = &quot;Headlines&quot;;
numposts = 3;
list1 = 1;
sumPosts = 137;
mode = &quot;label&quot;;
</script>
<div class='wbox Cat'>
<!-- Header widget -->
<!--<div class="tl"><div class="tr"><div class="tc"><a href="http://itechplus.info/search/label/Office">Tin h&#7885;c v&#259;n phòng</a></div></div></div>-->
<!-- END Header widget -->
<div class='ml'>
<div class='mr'>
<div class='mc'>
<!-- noi dung cua tien ich -->
<script src='http://vibay.weebly.com/uploads/1/1/4/1/11413983/rc-post-qmt.txt' type='text/javascript'/>
<!-- END noi dung cua tien ich -->
</div>
</div>
</div>
<!-- Footer widget -->
<div class='bl'><div class='br'><div class='bc'/></div></div>
<!-- END footer widget -->
</div></td></tr></tbody></table>
<!--Đóng mã-->
1

Thứ Năm, 16 tháng 2, 2012

Mã thường dùng

Nhúng video MP4 vào blog

<object type="application/x-shockwave-flash" id="playerID-video-details" name="playerID-video-details" data="http://tv.tuoitre.vn/js/player/player.swf" width="530" height="380"><param name="wmode" value="opaque">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="flashvars" value="controlbar=bottom&amp;file=http://123.30.128.25/r/2012/02/nwFHwL7g.mp4&amp;image=http://123.30.128.26/t/s639/2012/02/0dwVprZs.jpg&amp;backcolor=000000&amp;frontcolor=999999&amp;lightcolor=CC0000&amp;screencolor=000000&amp;width=530&amp;height=380&amp;viral.oncomplete=false&amp;viral.onpause=false&amp;repeat=always&amp;autostart=true&amp;provider=http">
</object>

Nhúng video FLV vào blog

<div style="display:inline-block;">
<script type="text/javascript" src="http://vibay-tips.googlecode.com/files/FLV-object-video.js"></script>
<div id="lecteur_12462" style="display:inline-block;">
<a href="http://get.adobe.com/fr/flashplayer/">You need to install the Flash plugin</a> - <a href="http://www.webestools.com/">Webestools</a> - <a href="http://205.196.123.168/a1b0dv2t6ahg/dt68apq89speclm/19022012_Toan+canh+the+gioi.mov.flv">Flash Flv Video Player</a>
</div>
<script type="text/javascript">
//<!--
var flashvars_12462 = {};
var params_12462 = {
quality: "high",
bgcolor: "#000000",
allowScriptAccess: "always",
allowFullScreen: "true",
wmode: "transparent", flashvars: "fichier=http://205.196.123.168/a1b0dv2t6ahg/dt68apq89speclm/19022012_Toan+canh+the+gioi.mov.flv&apercu=http%3A//flash.webestools.com/flv_player/extract_elephant_dream.png"
};
var attributes_12462 = {};
flashObject("http://flash.webestools.com/flv_player/v1_27.swf", "lecteur_12462", "530", "390", "8", false, flashvars_12462, params_12462, attributes_12462);
//-->
</script>
</div>

Nhúng chương trình truyền hình của VTV

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='530' height='380' id='Object1' name='single1'><param name='movie' value='http://media.vtv.vn/Content/player/player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='flashvars' value='file=/MediaFile/Thoi su/Thang 2_2012/19022012_Toan canh the gioi.mov&streamer=rtmp://203.162.1.56/vod&skin=http://media.vtv.vn/Content/player/stylish.swf&autostart=true'>
<embed type='application/x-shockwave-flash' id='single2' name='single2' src='http://media.vtv.vn/Content/player/player.swf'width='530' height='380' bgcolor='undefined' allowscriptaccess='always' allowfullscreen='true'wmode='transparent' flashvars='file=/MediaFile/Thoi su/Thang 2_2012/19022012_Toan canh the gioi.mov&streamer=rtmp://203.162.1.56/vod&skin=http://media.vtv.vn/Content/player/stylish.swf&autostart=true' /></object>

Bài đăng mới

<script type="text/javascript">
if (!window.google || !google.friendconnect) {
document.write('<script type="text/javascript"' +
'src="http://www.google.com/friendconnect/script/friendconnect.js">' +
'</scr' + 'ipt>');
}
</script>
<script type="text/javascript">
if (!window.registeredBloggerCallbacks) {
window.registeredBloggerCallbacks = true;




gadgets.rpc.register('requestReload', function() {
document.location.reload();
});


gadgets.rpc.register('requestSignOut', function(siteId) {

google.friendconnect.container.openSocialSiteId = siteId;
google.friendconnect.requestSignOut();
});
}
</script>
<script type="text/javascript">

function registerGetBlogUrls() {
gadgets.rpc.register('getBlogUrls', function() {
var holder = {};




holder.currentPost = "http://www.blogger.com/feeds/4401750727240516708/posts/default/1714925695943319412";



holder.currentComments = "http://www.blogger.com/feeds/4401750727240516708/1714925695943319412/comments/default";

holder.currentPostUrl = "";
holder.currentPostId = 1714925695943319412



holder.postFeed = "http://www.blogger.com/feeds/4401750727240516708/posts/default";



holder.commentFeed = "http://www.blogger.com/feeds/4401750727240516708/comments/default";

holder.currentBlogUrl = "http://vibay.blogspot.com/";
holder.currentBlogId = "4401750727240516708";

return holder;
});
}
</script>
<script type="text/javascript">
if (!window.registeredCommonBloggerCallbacks) {
window.registeredCommonBloggerCallbacks = true;

gadgets.rpc.register('resize_iframe', function(height) {
var el = document.getElementById(this['f']);
if (el) {
el.style.height = height + 'px';
}
});


gadgets.rpc.register('set_pref', function() {});

registerGetBlogUrls();
}
</script>
<div id="div-n5i6bmxbeqk7" style="width: 100%; "></div>
<script type="text/javascript">
var skin = {};
skin['FACE_SIZE'] = '32';
skin['HEIGHT'] = "150";
skin['TITLE'] = "Thu1eed nghiu1ec7m - Xxf3a ngay";
skin['BORDER_COLOR'] = "transparent";
skin['ENDCAP_BG_COLOR'] = "transparent";
skin['ENDCAP_TEXT_COLOR'] = "#666666";
skin['ENDCAP_LINK_COLOR'] = "#0000CD";
skin['ALTERNATE_BG_COLOR'] = "transparent";

skin['CONTENT_BG_COLOR'] = "transparent";
skin['CONTENT_LINK_COLOR'] = "#0000CD";
skin['CONTENT_TEXT_COLOR'] = "#666666";
skin['CONTENT_SECONDARY_LINK_COLOR'] = "#0b8ee5";
skin['CONTENT_SECONDARY_TEXT_COLOR'] = "#999999";
skin['CONTENT_HEADLINE_COLOR'] = "#cc6600";
skin['FONT_FACE'] = "normal normal 100% Georgia, Serif";
google.friendconnect.container.setParentUrl("/");
google.friendconnect.container["renderOpenSocialGadget"](
{id: "div-n5i6bmxbeqk7",
height: 150,

url: "http://bloggerplugins.org/scripts/recent_posts_with_thumbnails_and_more_from_www.bloggerplugins.org.xml",


"view-params": {"f":false,"g":true,"d":false,"e":"80","b":"87","c":"2","a":"10","p":false,"l":true,"k":false,"h":"15","i":false},


"prefs": {"f":"0","g":"1","d":"0","e":"70","b":"60","c":"2","a":"10","n":"","o":"","l":"1","m":"","j":"","k":"0","h":"12","i":"0","q":"","p":"0"},

site: "01458473777746714654",

locale: 'vi' },
skin);
</script>

------------------------------------------------------

<!-- Recent Posts Start -->
<script type="text/javascript">
function recentpostslist(json) {
document.write('<ul>');
for (var i = 0; i < json.feed.entry.length; i++)
{
for (var j = 0; j < json.feed.entry[i].link.length; j++) {
if (json.feed.entry[i].link[j].rel == 'alternate') {
break;
}
}
var entryUrl = "'" + json.feed.entry[i].link[j].href + "'";//bs
var entryTitle = json.feed.entry[i].title.$t;
var item = "<li>" + "<a href="+ entryUrl + '" target="">' + entryTitle + "</a> </li>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://vibay.blogspot.com/feeds/posts/summary/?max-results=10&alt=json-in-script&callback=recentpostslist"></script>
<!-- Recent Posts by Label End -->
0