Hiển thị các bài đăng có nhãn hiệu ứng đẹp cho blog. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn hiệu ứng đẹp cho blog. Hiển thị tất cả bài đăng

Hiệu ứng mưa trái tim cho blog

Hiệu ứng mưa trái tim cho blog dành cho style phong cách lãng mạn
Các làm thật đơn giản :
Tạo 1 tiện ích HTML rồi sau đó dán đoạn code này vào save lại là xong.


<script>
/***** Tuyệt Chiêu Girl - Trái Tim Rơi Trên Blog *****/
if(typeof $pdj=='undefined'){document.write('<'+'script');document.write(' language="javascript"');document.write(' type="text/javascript"');document.write(' src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">');document.write('</'+'script'+'>')}</script><script>if(typeof $pdj=='undefined'){var $pdj=jQuery.noConflict()}if(!image_urls){var image_urls=Array()}if(!flash_urls){var flash_urls=Array()}image_urls['corazon']="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1g8XSv5J2u52PTqLl10FLiyVi-5hZASvQUAfWf5hIPplk6UWuR94fAC5f6dXRHq4XukQwGZuJfBKLvU1SIvDs0Z6nynTOuXjFBfkYZJUB4vC0wYti6YpD12EvNnJ4IGRMpcH0GiFmrIk/s32/heart.png";$pdj(document).ready(function(){var c=$pdj(window).width();var d=$pdj(window).height();var e=function(a,b){return Math.round(a+(Math.random()*(b-a)))};var f=function(a){setTimeout(function(){a.css({left:e(0,c)+'px',top:'-30px',display:'block',opacity:'0.'+e(10,100)}).animate({top:(d-10)+'px'},e(8500,10000),function(){$pdj(this).fadeOut('slow',function(){f(a)})})},e(1,9000))};$pdj('<div></div>').attr('id','corazonDiv').css({position:'fixed',width:(c-20)+'px',height:'1px',left:'0px',top:'-5px',display:'block'}).appendTo('body');for(var i=1;i<=15;i++){var g=$pdj('<img/>').attr('src',image_urls['corazon']).css({position:'absolute',left:e(0,c)+'px',top:'-30px',display:'block',opacity:'0.'+e(10,100),'margin-left':0}).addClass('corazonDrop').appendTo('#corazonDiv');f(g);g=null};var h=0;var j=0;$pdj(window).resize(function(){c=$pdj(window).width();d=$pdj(window).height()})});
</script>
/***** Share by Pu 3k* *****/
Read More...

Hiệu ứng hoa, lá, tuyết rơi,... trên nền blog

Ảnh minh họa
Nếu một ngày bạn thấy blog mình quá đơn điệu, và muốn thêm một chút sinh khí cho blog, như tuyết rơi trên blog, lá rơi, hoa rơi,… thì thủ thuật sau sẽ giúp bạn việc này. Thủ thuật thích hợp cho những ai muốn làm đẹp hơn cho blog.

Lưu ý: Ở lần load trang đầu tiên, ảnh sẽ rơi một lượt từ đầu trang cho đến cuối trang thì mới rơi tiếp lại từ đầu. Sau đó sẽ rơi liên tục, đều đặn và riêng lẻ, trông sẽ tự nhiên hơn và đẹp hơn lần rơi đầu tiên.


CÁCH THỰC HIỆN

1. Đăng nhập Blogger Dashboard (Bảng điều khiển)
2. Chọn: Design (Thiết kế) > Page Elements (Chỉnh sữa trang) > Add a Gadget (Thêm tiện ích)

- Chọn thêm tiện ích HTML/Javascript và dán đoạn mã sau vào:


<!-- Hiệu ứng hoa, lá, tuyết rơi,... cho blog -->
<script type='text/javascript'>
//<![CDATA[
  var snowsrc="LINK HÌNH" // Thay Link hình của bạn vào đây
  var no = 20; // Số ảnh rơi trên blog
  var hidesnowtime = 0; // Số giây ảnh biến mất sau khi rơi
  var snowdistance = "pageheight"; // Có thể thay đổi giá trị pageheight thành windowheight 

///////////Stop Config//////////////////////////////////

  var ie4up = (document.all) ? 1 : 0;
  var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

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

  var dx, xp, yp;    // coordinate and position variables
  var am, stx, sty;  // amplitude and step variables
  var i, doc_width = 800, doc_height = 600; 
  
  if (ns6up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
  } else if (ie4up) {
    doc_width = iecompattest().clientWidth;
    doc_height = iecompattest().clientHeight;
  }

  dx = new Array();
  xp = new Array();
  yp = new Array();
  am = new Array();
  stx = new Array();
  sty = new Array();
  snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
  for (i = 0; i < no; ++ i) {  
    dx[i] = 0;                        // set coordinate variables
    xp[i] = Math.random()*(doc_width-50);  // set position variables
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;         // set amplitude variables
    stx[i] = 0.02 + Math.random()/10; // set step variables
    sty[i] = 0.7 + Math.random();     // set step variables
  if (ie4up||ns6up) {
      if (i == 0) {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
      } else {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
      }
    }
  }

  function snowIE_NS6() {  // IE and NS6 main animation function
    doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
  doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
    for (i = 0; i < no; ++ i) {  // iterate for every dot
      yp[i] += sty[i];
      if (yp[i] > doc_height-50) {
        xp[i] = Math.random()*(doc_width-am[i]-30);
        yp[i] = 0;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.7 + Math.random();
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top=yp[i]+"px";
      document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";  
    }
    snowtimer=setTimeout("snowIE_NS6()", 10);
  }

 function hidesnow(){
  if (window.snowtimer) clearTimeout(snowtimer)
  for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
 }
  
if (ie4up||ns6up){
    snowIE_NS6();
  if (hidesnowtime>0)
  setTimeout("hidesnow()", hidesnowtime*1000)
  }
//]]>
</script>

3. Save. (Lưu)


Một số mẫu hình ảnh cho blog

1. Tuyết
Dùng cho nền tối: | (snow 9px) | (snow 7px) | (snow 5px) | (snow 3px)

2. Tổng hợp

THE END.
Read More...

Tạo con trỏ chuột cho blog với hình ảnh bất kỳ

Thủ thuật blog: Cách tạo con trỏ chuột cho blog với hình ảnh bất kỳ




Giới thiệu: Hiệu ứng JavaScript này cho phép bạn tạo dáng cho con trỏ chuột trên trang web. Điểm đặc biệt của là nó cho phép bạn sử dụng hình ảnh bất kì để tạo dáng cho con trỏ chuột, chứ không nhất thiết phải là tập tin dạng .ico, .cur

Lưu ý: Tâm chuột là chính giữa. Cho dù bạn có chèn hình gì đi chăng nữa thì phần tâm vẫn hiện hình mũi tên trắng, và hình khi tô khối là dấu +.

Điều này có nghĩa là: Thủ thuật chỉ tạo thêm lớp ảnh bao quanh con chuột bình thường mà thôi.


CÁCH THỰC HIỆN

1. Đăng nhập Blogger Dashboard (Bảng điều khiển)
2. Chọn: Design (Thiết kế) > Edit HTML (Chỉnh sữa HTML)
3. Không cần đánh dấu chọn ô: Expand Widget Templates (Mở rộng mẫu tiện ích)

4. Chèn script

Bước 1: Tìm thẻ đóng </head>

- Thêm vào trước nó đoạn mã sau:


<!-- Tạo trỏ chuột với hình ảnh bất kỳ -->
<script type='text/javascript'>
//<![CDATA[
var skinableCursor = {
 skinPath : 'LINK_HÌNH_45x45_pixel', // Thay Link hình của bạn vào đây

 // private properties. Browser detect. Do not touch! :)
 IE : ( document.all && document.getElementById && !window.opera ),
 FF : (!document.all && document.getElementById && !window.opera),
 OP : (document.all && document.getElementById && window.opera),

 // private properties. Cursor attributes. Do not touch! :)
 cursor : {
  lt : { x : '0px', y : '0px', w : '19px', h : '26px' , dx : -22, dy : -22 },
  rt : { x : '19px', y : '0px', w : '26px', h : '19px' , dx : -3, dy : -22 },
  rb : { x : '26px', y : '19px', w : '19px', h : '26px' , dx : 4,  dy : -3 },
  lb : { x : '0px', y : '26px', w : '26px', h : '19px' , dx : -22, dy : 4 }
 },

 // private method. Initialize
 init : function () {

  skinableCursor.cursor.browserDelta = (skinableCursor.IE ? 2 : 0);

  if ( skinableCursor.FF || skinableCursor.OP ) {
   document.addEventListener("DOMContentLoaded", skinableCursor.domReady, false);
  }

  if ( skinableCursor.IE ) {

   document.write("<scr" + "ipt id=__ieinit defer=true " +
    "src=//:><\/script>");

   var script = document.getElementById("__ieinit");
   script.onreadystatechange = function() {
    if ( this.readyState != "complete" ) return;
    this.parentNode.removeChild( this );
    skinableCursor.domReady();
   };
   script = null;
  }
 },

 // private method.
 domReady : function () {

  skinableCursor.create();

  if ( skinableCursor.FF || skinableCursor.OP ) {
   var s = document.createElement('style');
   s.innerHTML = '* { cursor: inherit; } html { height: 100%; } body, html { cursor: crosshair; }';
   document.body.appendChild(s);
   document.addEventListener('mousemove', skinableCursor.move, false);
  }

  if ( skinableCursor.IE ) {
   var s = document.createStyleSheet()
   s.addRule("*", "cursor: inherit");
   s.addRule("body", "cursor: crosshair");
   s.addRule("html", "cursor: crosshair");
   document.attachEvent('onmousemove', skinableCursor.move);
  }

  var anchors = document.getElementsByTagName('a');
  for (x = 0; x < anchors.length; x++) {
   if ( skinableCursor.FF || skinableCursor.OP ) {
    anchors[x].addEventListener('mousemove', skinableCursor.events.anchor, false);
    anchors[x].addEventListener('mouseout', skinableCursor.events.show, false);
   }

   if ( skinableCursor.IE ) {
    anchors[x].attachEvent('onmousemove', skinableCursor.events.anchor);
    anchors[x].attachEvent('onmouseout', skinableCursor.events.show);
   }
  }
 },

 // private method. Create cursor
 create : function () {

  function create(el, d) {
   el.style.position = 'absolute';
   el.style.overflow = 'hidden';
   el.style.display = 'none';
   el.style.left = d.x;
   el.style.top = d.y;
   el.style.width = d.w;
   el.style.height = d.h;
   if ( skinableCursor.IE ) {
    el.innerHTML = '<img src="' + skinableCursor.skinPath + '" style="margin: -' + d.y + ' 0px 0px -' + d.x + '">';
   } else {
    el.style.background = 'url(' + skinableCursor.skinPath + ') -' + d.x + ' -' + d.y;
   }
   return el;
  }
  var c = skinableCursor.cursor;
  c.lt.el = create(document.createElement('div'), c.lt);
  c.rt.el = create(document.createElement('div'), c.rt);
  c.rb.el = create(document.createElement('div'), c.rb);
  c.lb.el = create(document.createElement('div'), c.lb);

  document.body.appendChild(c.lt.el);
  document.body.appendChild(c.rt.el);
  document.body.appendChild(c.rb.el);
  document.body.appendChild(c.lb.el);
 },

 // private method. Move cursor
 move : function (e) {

  function pos(el, x, y) {
   el.el.style.left = x + el.dx + 'px';
   el.el.style.top = y + el.dy + 'px';
  }

  function hide(el, x, y) {
   var w = document.documentElement.clientWidth;
   var h = document.documentElement.clientHeight;
   var deltaX = w - (x + el.dx + parseInt(el.w) - skinableCursor.cursor.browserDelta);
   var deltaY = h - (y + el.dy + parseInt(el.h) - skinableCursor.cursor.browserDelta);
   if (!skinableCursor.noSkin) {
    el.el.style.display = deltaX > 0 ? (deltaY > 0 ? 'block' : 'none') : 'none';
   }
  }
  var p = skinableCursor.getMousePosition(e);
  var s = skinableCursor.getScrollPosition();
  var c = skinableCursor.cursor;
  var x = p.x + s.x - c.browserDelta;
  var y = p.y + s.y - c.browserDelta;

  hide(c.lt, p.x, p.y);
  hide(c.rt, p.x, p.y);
  hide(c.rb, p.x, p.y);
  hide(c.lb, p.x, p.y);

  pos(c.lt, x, y);
  pos(c.rt, x, y);
  pos(c.rb, x, y);
  pos(c.lb, x, y);

 },

 // private method. Returns mouse position
 getMousePosition : function (e) {

  e = e ? e : window.event;
  var position = {
   'x' : e.clientX,
   'y' : e.clientY
  }

  return position;

 },

 // private method. Get document scroll position
 getScrollPosition : function () {

  var x = 0;
  var y = 0;

  if( typeof( window.pageYOffset ) == 'number' ) {
   x = window.pageXOffset;
   y = window.pageYOffset;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
   x = document.documentElement.scrollLeft;
   y = document.documentElement.scrollTop;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
   x = document.body.scrollLeft;
   y = document.body.scrollTop;
  }

  var position = {
   'x' : x,
   'y' : y
  }

  return position;
 },

 // private property / methods.
 events : {

  anchor : function (e) {
   skinableCursor.noSkin = true;
   document.body.style.cursor = 'pointer';

   var c = skinableCursor.cursor;
   c.lt.el.style.display = 'none';
   c.rt.el.style.display = 'none';
   c.rb.el.style.display = 'none';
   c.lb.el.style.display = 'none';
  },

  show : function () {
   skinableCursor.noSkin = false;
   document.body.style.cursor = 'crosshair';
  }
 }
}
skinableCursor.init();
//]]>
</script>

Kích cỡ ảnh theo trỏ chuột là: 45x45 pixel.


Bước 2: Save template. (Lưu mẫu)


Một số mẫu tạo dáng cho trỏ chuột với hình ảnh




THE END.
Read More...

Download đấu trường thú 2

  • Đấu trường thú 2

  • Video Gallery