ใครทำหิมะตกในทัมเบอร์เป็นบ้าง???

13 ก.ค. 56 19:05 น. / ดู 736 ครั้ง / 7 ความเห็น / 0 ชอบจัง / แชร์
ตามนั้นเลยยย แบบในหน้าทัม.เรามันจะมีหิมะตก ช่วยหน่อยนะๆ ขอบคุณล่วงหน้าครับ 
แก้ไขล่าสุด 13 ก.ค. 56 19:06 | เลขไอพี : ไม่แสดง

อ่านต่อ คุณอาจจะสนใจเนื้อหาเหล่านี้ (ความคิดเห็นกระทู้ อยู่ด้านล่าง)

ความคิดเห็น

#2 | บาบิบีไอ | 13 ก.ค. 56 19:46 น.

http://iclinh.tumblr.com/ แบบในทัม.นี้อ่ะครับ มันจะมีตกๆลงมา

ไอพี: ไม่แสดง

#3 | cr.mickey/.? | 13 ก.ค. 56 20:13 น.

เพราะ background รึป่าวคะ ? อาจทำเป็นหิมมะตกอยู่แล้ว #เราไม่รู้นะเราแค่อยากช่วยแต่เรามั่ว 5555555

ไอพี: ไม่แสดง

#4 | `zs-typ. | 13 ก.ค. 56 20:36 น.

มีแต่แบบนี้อ่า Ex.

Code
เปลี่ยนสีหิมะที่ข้อความสีแดง

<script type="text/javascript">
// <![CDATA[
var speed=33; // lower number for faster
var flakes=100; // number of flakes
var colour="#FFFFFF"; // colour of flakes
var slush=20; // set to '0' for no slush or otherwise set to height at which slush melts
/*********\
*    Let It Snow Effect    *
*(c)2004-11 mf2fm web-design*
http://www.mf2fm.com/rv  *
* DON'T EDIT BELOW THIS BOX *
\*********/
var flks=new Array();
var flkx=new Array();
var flky=new Array();
var fldy=new Array();
var slss=new Array();
var slsh=new Array();
var swide, shigh, boddie;
window.onload=function() { if (document.getElementById) {
  boddie=document.createElement("div");
  boddie.style.position="fixed";
  boddie.style.top="0px";
  boddie.style.left="0px";
  boddie.style.width="1px";
  boddie.style.height="1px";
  boddie.style.overflow="visible";
  boddie.style.backgroundColor="transparent";
  document.body.appendChild(boddie);
  set_width();
  for (var i=0; i<flakes; i++) {
    flks=createDiv(3, 3, colour);
    flkx=3*Math.floor(Math.random()*swide/3);
    flky=Math.floor(Math.random()*shigh);
    fldy=2+Math.floor(Math.random()*4);
    flks.style.left=flkx+"px";
    flks.style.top=flky+"px";
    boddie.appendChild(flks);
  }
  setInterval("let_it_snow()", speed);
}}
function createDiv(height, width, colour) {
  var div=document.createElement("div");
  div.style.position="absolute";
  div.style.height=height+"px";
  div.style.width=width+"px";
  div.style.overflow="hidden";
  div.style.backgroundColor=colour;
  return (div);
}
window.onresize=set_width;
function set_width() {
  var sw_min=999999;
  var sh_min=999999;
  if (document.documentElement && document.documentElement.clientWidth) {
    if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
    if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
  }
  if (typeof(self.innerWidth)!="undefined" && self.innerWidth) {
    if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
    if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
  }
  if (document.body.clientWidth) {
    if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
    if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
  }
  if (sw_min==999999 || sh_min==999999) {
    sw_min=800;
    sh_min=600;
  }
  swide=sw_min-3;
  shigh=sh_min;
  if (slush) {
    if (swide/3>slss.length) for (i=slss.length; i<swide/3; i++) {
      if (!slsh) slsh=3;
      slss=createDiv(slsh, 3, colour);
      boddie.appendChild(slss);
    }
    for (i=0; i<swide/3; i++) {
      slss.style.height=slsh+"px";
      slss.style.top=shigh-slsh+"px";
      slss.style.left=3*i+"px";
    }
    if (i<slss.length && slss.style.left!="-3px") for (; i<slss.length; i++) slss.style.left="-3px";
  }
}
function let_it_snow(c) {
  var i, x, o=0, z=0;
  for (i=0; i<flakes; i++) {
    flky+=fldy;
x=Math.floor(flkx/3);
    if (slush) {
      o+=slsh[x];
      if (flky>=shigh-slsh[x]) {
        if (x<swide && slsh[x]>slsh[x+1]+3) x++;
        else if (x>0 && slsh[x]>slsh[x-1]+3) x--;
        slss[x].style.top=shigh-(slsh[x]+=3)+"px";
        slss[x].style.height=slsh[x]+"px";
  flky=shigh;
  }
    }
    if (flky>=shigh || flkx>swide) {
  flky=0;
  fldy=2+Math.floor(Math.random()*4);
  flkx=3*Math.floor(Math.random()*swide/3);
  flks.style.left=flkx+"px";
  z++;
}
flks.style.top=flky+"px";
  }
  if (o>flakes*slush) for (i=0; i<slsh.length; i++) if (slsh>3) slsh--;
  if (z || o>flakes*slush) set_width();
}
// ]]>
</script>

แก้ไขล่าสุด 13 ก.ค. 56 20:39 | ไอพี: ไม่แสดง

#5 | บาบิบีไอ | 14 ก.ค. 56 07:05 น.

ขอบคุณมากครับบ แล้วโค้ดนี่ต้องไปวางตรงไหนอ่ะครับ?

ไอพี: ไม่แสดง

#6 | `zs-typ. | 14 ก.ค. 56 09:05 น.

วางใต้ <body>

ไอพี: ไม่แสดง

#7 | บาบิบีไอ | 14 ก.ค. 56 13:35 น.

`.Yoongform.|  อ่ออ ขอบคุณครับบบ

ไอพี: ไม่แสดง

แสดงความคิดเห็น

จะต้องเป็นสมาชิกจึงจะแสดงความคิดเห็นได้
เป็นสมาชิกอยู่แล้ว ลงชื่อเข้าใช้ระบบ
ยังไม่ได้เป็นสมาชิก สมัครสมาชิกใหม่
หรือจะลงชื่อเข้าใช้ระบบด้วย Google หรือ Facebook ก็ได้
ลงชื่อเข้าใช้ระบบด้วย Facebook
ลงชื่อเข้าใช้ระบบด้วย Google