Thứ Sáu, 4 tháng 1, 2013

nguồn:lemyuri.blogspot.com



Sau đây là tổng hợp những code hay dành cho thiết kế blogspot

Đăng nhập vào blog--->Thiết kế--->Bố cục --->Thêm tiện ích --->HTML/Javascript.Sau đó copy từng đoạn code mà mình chọn rồi paste vào

1.Đồng hồ cổ lắc:
<embed src="http://www.nackvision.com/goodies/clocks/nackvision_timer06.swf" quality="high" width="240" height="240" name="calendar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
Code &#273;&#7891;ng h&#7891; qu&#7843; l&#7855;c Flash:
<embed src=" http://d.violet.vn/uploads/resources/495/0.Lam_dong_ho_Flash.swf?TimeZone=VietNam_Hanoi&Place=&" width="180" height="180" wmode="transparent" type="application/x-shockwave-flash">

2.Nhạc nền Zing.vn:
<object width="230" height="61"><param name="movie" value="http://static.mp3.zing.vn/skins/mp3_main/flash/player/mp3Player_skin1.swf?xmlurl=http://mp3.zing.vn/blog?MjAxMC8xMS8xMy8wL2UvInagaMEMGUwOWM4YjU0ZTFkNjZlODNiZThmZGIxOGE3NTQzYTUdUngWeBXAzfEJhIE5n4WeBdUngNWeBiBO4WeBq_WeBiBMdW5nIExpWeBmh8UGjGsMahWeBmmUsICgVGjhdUngqNvInagaMEIGZ0LiBOZ-G7jWMgTOG7hXwxfDI" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed width="230" height="61" src="http://static.mp3.zing.vn/skins/mp3_main/flash/player/mp3Player_skin1.swf?xmlurl=http://mp3.zing.vn/blog?MjAxMC8xMS8xMy8wL2UvInagaMEMGUwOWM4YjU0ZTFkNjZlODNiZThmZGIxOGE3NTQzYTUdUngWeBXAzfEJhIE5n4WeBdUngNWeBiBO4WeBq_WeBiBMdW5nIExpWeBmh8UGjGsMahWeBmmUsICgVGjhdUngqNvInagaMEIGZ0LiBOZ-G7jWMgTOG7hXwxfDI" quality="high" wmode="transparent" type="application/x-shockwave-flash"></embed></object><br />

( đây là mẫu từ blog lemyuri.blogspot.com)

3.List nhạc ( từ nhaccuatui.com):
<object width="230" height="230">  <param name="movie" value="http://www.nhaccuatui.com/l/cC0N3sh2jj2U" />  <param name="quality" value="high" />  <param name="wmode" value="transparent" />  <param name="allowscriptaccess" value="always" />  <param name="flashvars" value="&autostart=false" />  <embed src="http://www.nhaccuatui.com/l/cC0N3sh2jj2U" flashvars="target=blank&autostart=false" allowscriptaccess="always" quality="high" wmode="transparent" type="application/x-shockwave-flash" width="200" height="230"></embed></object>

( đây là mẫu từ blog lemyuri.blogspot.com)

4.Hiệu ứng tuyết rơi:
<script type='text/javascript'>
//<![CDATA[
var snowmax = 50; 
var snowcolor = new Array("#aaaacc", "#ddddFF", "#ccccDD");
var snowtype = new Array("Arial Black", "Arial Narrow", "Times", "Comic Sans MS");
var snowletter = "***"; 
var sinkspeed = 0.9; 
var snowmaxsize = 30; 
var snowminsize = 10; 
var snowingzone = 1;

var snow = new Array();
var marginbottom;
var marginright;
var ScrollTop;
var timer;
var i_snow = 0;
var x_mv = new Array();
var crds = new Array();
var lftrght = new Array();
var browserinfos = navigator.userAgent;
var ie5 = document.all && document.getElementById && !browserinfos.match(/Opera/);
var ns6 = document.getElementById && !document.all;
var opera = browserinfos.match(/Opera/);
var browserok = ie5 || ns6 || opera;
function randommaker(a) 
{
    rand = Math.floor(a * Math.random());
    return rand
}

function iecompattest()
{
 return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body 
}

function InitHeight() {
 if (ie5 || opera) {
  marginbottom = iecompattest().clientHeight + 5; //clientHeight;
  marginright = iecompattest().scrollWidth + 5; //clientWidth
 }
 else {
  if (ns6) {
   marginbottom = self.innerHeight;
   marginright = self.innerWidth
  }
 }
 ScrollTop = document.body.scrollTop;
 if (ScrollTop == 0) {
  if (window.pageYOffset)
   ScrollTop = window.pageYOffset;
  else
   ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
 }
 marginbottom += ScrollTop;
}

function initsnow() 
{
 InitHeight()
  var a = snowmaxsize - snowminsize;
  for (i = 0;i <= snowmax;i++) 
 {
  crds[i] = 0;
  lftrght[i] = Math.random() * 15;
  x_mv[i] = 0.03 + Math.random() / 10;
  snow[i] = document.getElementById("s" + i);
  snow[i].style.fontFamily = snowtype[randommaker(snowtype.length)];
  snow[i].size = randommaker(a) + snowminsize;
  snow[i].style.fontSize = snow[i].size + "px";
  snow[i].style.color = snowcolor[randommaker(snowcolor.length)];
  snow[i].sink = sinkspeed * snow[i].size / 5;
  if (snowingzone == 1) { snow[i].posx = randommaker(marginright - snow[i].size) } 
  if (snowingzone == 2) { snow[i].posx = randommaker(marginright / 2 - snow[i].size) }
  if (snowingzone == 3) { snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 4 }
  if (snowingzone == 4) { snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 2 }
  snow[i].posy =  randommaker(2 * marginbottom - marginbottom - 2 * snow[i].size);
  snow[i].style.left = snow[i].posx + "px";
  snow[i].style.top = snow[i].posy + "px"
  } 
  movesnow()
}
 
function movesnow() 
{
 InitHeight();
 for (i = 0; i <= snowmax; i++)
 {
  crds[i] += x_mv[i];
  snow[i].posy += snow[i].sink;
  snow[i].style.left = snow[i].posx + lftrght[i] * Math.sin(crds[i]) + "px";
  snow[i].style.top = snow[i].posy + "px";
  if (snow[i].posy >= marginbottom - 2 * snow[i].size || parseInt(snow[i].style.left) > (marginright - 3 * lftrght[i])) 
  {
   if (snowingzone == 1) { snow[i].posx = randommaker(marginright - snow[i].size) }
   if (snowingzone == 2) { snow[i].posx = randommaker(marginright / 2 - snow[i].size) }
   if (snowingzone == 3) { snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 4 }
   if (snowingzone == 4) { snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 2 }
   snow[i].posy = ScrollTop 
  }
 }
 var a = setTimeout("movesnow()", 60) 
}
function hidesnow() 
{
 if (window.timer) { clearTimeout(timer) }
 for (i = 0;i <= snowmax;i++)
 { 
  document.getElementById("s" + i).style.visibility = "hidden"
 }
}


for (i = 0;i <= snowmax;i++)
{
 document.write('<div id="s' + i + '" style="POSITION: absolute; Z-INDEX: 9' + i + "; VISIBILITY: visible; TOP:-" + snowmaxsize + 'px; LEFT: 15px;">' + snowletter + "</div>")
}
if (browserok)
{ initsnow() } 
else 
{ document.write('Votre navigateur ne supporte pas ce Javascript, ') };
//]]>
</script>

5.Tạo tên mình trên nền flash:
<embed src="http://www.notcelebrity.co.uk/flashcontent/flashHeader.swf?thename=Lemyjuri" type="application/x-shockwave-flash" wmode="transparent" width="230" height="150"></embed>
Đổi tên Lemyjuri( bôi đen ) thành tên blog của bạn

6.Tạo menu hiệu ứng liên kết:
<script language="JavaScript">
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=530,height=530,left = 280,top = 80');");
    }
    </script>
<style type="text/css">
.bubblewrap{
list-style-type:none;
margin:0;
padding:0;
}
.bubblewrap li{
display:inline;
width: 64px;
height:64px;
}
.bubblewrap li img{
width: 20px; /* độ rộng của hình ảnh.*/
height: 36px; /* chiều cao của hình ảnh.*/
border:0;
margin-right: 3px; /*Khoảng cách giữa 2 ảnh*/
-webkit-transition:-webkit-transform 0.1s ease-in; /*animate transform property */
-o-transition:-o-transform 0.1s ease-in; /*animate transform property in Opera */
}
.bubblewrap li img:hover{
-moz-transform:scale(1.8); /*scale up image 1.8x*/
-webkit-transform:scale(1.8);
-o-transform:scale(1.8);
}
</style>
<center>
<ul class="bubblewrap">
<li><a href="javascript:popUp('http://funnylogo.info/engines/google/red/lemyjuri.aspx')"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDC-KWlosCS2ZDcqqADuFSjOBjhnbNX8wcxN9M09jEFvHnNfNvyozYdCnu8iJg917B00PpdYSsogfzWpXreWGmKeIIVp6K90NILQ7QOy1XHn9tnDCckMcwS6Lb7zeXqDcTGGC0P8SMoAg/s1600/Google-Chrome-icon.png" title="Tìm kiếm trên Google" /></a></li>
<li><a href="javascript:popUp('https://accounts.google.com/servicelogin?service=blogger&passive=1209600&continue=http://www.blogger.com/home&followup=http://www.blogger.com/home&ltmpl=start#s01')"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgYoH2-GKnkWaLhjWFFk4-DN-pPbE7Tg5yeE-AiKLGfYzP-TZAaqEqECtlHrw6JIroTLgn_xs4I9Lh71nQ3DO-s1ka7o4iVVgUghuASs7M4afD9cRQ40lmrQ9GLN8F8mlXzM8s420iym8/s1600/Blogger-icon.png" title="Đăng nhập Blogspot" /></a></li>
<li><a href="javascript:popUp('https://accounts.google.com/servicelogin?service=mail&passive=true&rm=false&continue=http://mail.google.com/mail/&scc=1&ltmpl=default&ltmplcache=2')"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMyEQ3BKUOP1zCrjxBspnJP-xiaoBlnjR25SS23vo7OjZ4eMFrD6e89wAHLZGTY6CRV69KhS3nCHoPU8S2U8lpRzKFO_BPFCgsEu48Fx1oS4czP9ynitFJZnbtCJILnS76zK0OxtisB3k/s1600/Google-icon.png" title="Đăng nhập Gmail" /></a></li>
<li><a href="javascript:popUp('http://phimvang.org/#!/sessions/new')"><img src="http://www.iconspedia.com/uploads/2071674728279263366.png" title="Xem Phim" /></a></li>
<li><a href="javascript:popUp('http://www.facebook.com')"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0rqVAXn3TUQoO-Nu4w1PYAxRcqbamzDuXzMxkuR3DY1vPCsi3X77F32k-uK7LOCVsEYVqZbCULARxx-5Btn6Jmqy-FAho3wFon4UbkkqYdgqaBb3Rg56UlKHp245yDMm1zvHgymhnMW8/s1600/facebook-icon.png" title="Đăng nhập Facebook" /></a></li>
<li><a href="javascript:popUp('http://www.camnangnaunuong.com/')"><img src="http://www.iconspedia.com/uploads/131331352.png" title="Ẩm Thực" /></a></li>
<li><a href="javascript:popUp('http://www.youtube.com/')"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqgV9rNkgpwcg-qt4DsKNkedOIF3eJIxv3okSIWqdF3ac0IxT196LlhZsdUcsrOUHUTAk67xLjZNWQ_2IbXAQSZWwEuDPpRf3zLLPTpqAaMmw1NBLBOhgdmeSk3m7r5MwqZQuqs6mAG4M/s1600/youtube-icon.png" title="Đăng nhập Youtube" /></a></li>
</ul></center>

Sau đó chỉnh sửa code để hoàn chỉnh theo ý thích của bạn

7.Game Sudoku
<iframe src="http://www.odyssey.ie/sudoku/sudoku-google.html" frameborder="0" width="200" height="200" scrolling="no"></iframe>






CHÚC CÁC BẠN THÀNH CÔNG !!!

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

Đăng nhận xét