Logo Webboard ของ Materialz
ติดต่อโฆษณา  |  สมัครใช้งานสุดยอดแห่ง Free Webboard ได้แล้ววันนี้ คลิ๊ก !!  | แจ้งบอร์ดไม่เหมาะสม


  Code

  

  Topic : โค้ดร่วงๆ ลอยๆ ทั้งหลาย

Delete
Admin ลบกระทู้
   Page [1]
  สมาชิกพิเศษ
Materialz

  
chawhong@hotmail.com 203.145.22.89

  โพสต์เมื่อ : 18 ม.ค. 2548 18:14 น.

โค้ดรูปลอยมาจากข้างล่าง

<SCRIPT LANGUAGE="JavaScript">
<!--
var no = 10;             //
var speed = 10;        //
var snow = new Array();
snow[0] = "URL PIX"
var ns4up = (document.layers) ? 1 : 0; 
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var dx, xp, yp;  
var am, stx, sty; 
var i, doc_width = 800, doc_height = 1800;
if (ns4up||ns6up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
}
else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
j = 0;
for (i = 0; i < no; ++ i) {
    dx[i] = 0; 
    xp[i] = Math.random()*(doc_width-50);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;   
    stx[i] = 0.02 + Math.random()/10; 
    sty[i] = 0.7 + Math.random();
    if (ns4up) {  
        if (i == 0) {
            document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
        }
        else {
            document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
        }
    }
    else if (ie4up||ns6up) {
        if (i == 0) {
            document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
        }
        else {
            document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
        }
    }
    if (j == (snow.length-1)) { j = 0; }
    else { j += 1; }
}
function snowNS() {
    for (i = 0; i < no; ++ i) {  
        yp[i] -= sty[i];
        if (yp[i] < -50) {
            xp[i] = Math.random()*(doc_width-am[i]-30);
            yp[i] = doc_height;
            stx[i] = 0.02 + Math.random()/10;
            sty[i] = 0.7 + Math.random();
            doc_width = self.innerWidth;
            doc_height = self.innerHeight;
        }
        dx[i] += stx[i];
        document.layers["dot"+i].top = yp[i];
        document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", speed);
}
function snowIE_NS6() {   
    for (i = 0; i < no; ++ i) {
        yp[i] -= sty[i];
        if (yp[i] < -50) {
            xp[i] = Math.random()*(doc_width-am[i]-30);
            yp[i] = doc_height;
            stx[i] = 0.02 + Math.random()/10;
            sty[i] = 0.7 + Math.random();
            doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
            doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
        }
        dx[i] += stx[i];
        if (ie4up){
            document.all["dot"+i].style.pixelTop = yp[i];
            document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
        }
        else if (ns6up){
            document.getElementById("dot"+i).style.top=yp[i];
            document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
        }
    }
    setTimeout("snowIE_NS6()", speed);
}

if (ns4up) {
    snowNS();
}
else if (ie4up||ns6up) {
    snowIE_NS6();
}
//-->
</SCRIPT>



   Admin ลบความคิดเห็นนี้ 
 


  18 ม.ค. 2548 18:17 น. Admin ลบความคิดเห็นนี้ 
  สมาชิกพิเศษ
Materialz

  
chawhong@hotmail.com 203.145.22.89

  

ดอกไม้ร่วง โค้ดไหนใช้การมะได้ อย่าถามนะ
เพราะที่เอามาลง พี่ไม่เคยใช้มาก่อน

<SCRIPT language=JavaScript1.2>
var dollarsrc="URL PIC"
var no = 8;
var ns4up = (document.layers) ? 1 : 0; // browser sniffer
var ie4up = (document.all) ? 1 : 0;
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 (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();

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.04 + Math.random()/15; // set step variables
sty[i] = 0.9 + Math.random(); // set step variables
if (ns4up) { // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+dollarsrc+"' border=\"0\"></a></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+dollarsrc+"' border=\"0\"></layer>");
}
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 30px; LEFT: 15px;\"><img src='"+dollarsrc+"' border=\"0\"></a></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 30px; LEFT: 15px;\"><img src='"+dollarsrc+"' border=\"0\"></div>");
}
}
}

function snowNS() { // Netscape main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height+800) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.04 + Math.random()/20;
sty[i] = 0.9 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", 20);
}

function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height+1000) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.04 + Math.random()/20;
sty[i] = 0.8 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", 20);
}

if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}

</SCRIPT>

 


  18 ม.ค. 2548 18:19 น. Admin ลบความคิดเห็นนี้ 
  สมาชิกพิเศษ
Materialz

  
chawhong@hotmail.com 203.145.22.89

  

ดอกไม้ลอยเต็มหน้าจอ

<script language=JavaScript1.2>
<!-- Begin
//<!-- Original:  Altan (
snow@altan.hr) -->
//<!-- Web Site: 
http://www.altan.hr/snow -->

var no = 8; // snow number ‚P‰ๆ–ส‚ษ•\Žฆ‚ท‚้”
var speed = 5; // smaller number moves the snow faster
snow = new Array();
snow[0] = "URL PIC"; 
snow[1] = "URL PIC"; 
snow[2] = "URL PIC"; 
var maxsize = 80;  
//

//var maxsnow = snow.length-1;  // ‰ๆ‘œ‚ฬ–‡”-1
var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 500, doc_height = 400;

if (ns4up) {
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
} else if (ie4up) {
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
var j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_height-maxsize);  // set position variables
        yp[i] = Math.random()*(doc_width-maxsize);
        am[i] = Math.random()*10;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables

        if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\"" + snow[j] + "\" border=\"0\"></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\"" + snow[j] + "\" border=\"0\"></layer>");
                }
        } else if (ie4up) {
                if (i == 0) {
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +" VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +" VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

document.write("<div id=\"damy\" style=\"POSITION: absolute; width:1; Z-INDEX: "+ i +" VISIBILITY: visible; TOP: 15px; LEFT: " + (doc_width+maxsize) + "px;\"> </div>");

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                if (i%2) {
                        yp[i] += sty[i];
                        if (yp[i] > doc_width) {
                                xp[i] = Math.random()*(doc_height-am[i]-maxsize);
                                yp[i] = 0-maxsize;
                                stx[i] = 0.02 + Math.random()/10;
                                sty[i] = 0.7 + Math.random();
                                doc_width = self.innerWidth;
                                doc_height = self.innerHeight;
                        }
                } else {
                        yp[i] -= sty[i];
                        if (yp[i] < -maxsize) {
                                xp[i] = Math.random()*(doc_height-am[i]-maxsize);
                                yp[i] = doc_width;
                                stx[i] = 0.02 + Math.random()/10;
                                sty[i] = 0.7 + Math.random();
                                doc_width = self.innerWidth;
                                doc_height = self.innerHeight;
                        }
                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = xp[i] + am[i]*Math.sin(dx[i]);
                document.layers["dot"+i].left = yp[i];
        }
        setTimeout("snowNS()", speed);
}

function snowIE() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                if (i%2) {
                        yp[i] += sty[i];
                        if (yp[i] > doc_width) {
                                xp[i] = Math.random()*(doc_height-am[i]-maxsize);
                                yp[i] = 0-maxsize;
                                stx[i] = 0.02 + Math.random()/10;
                                sty[i] = 0.7 + Math.random();
                                doc_width = document.body.clientWidth;
                                doc_height = document.body.clientHeight;
                        }
                } else {
                        yp[i] -= sty[i];
                        if (yp[i] < -maxsize) {
                                xp[i] = Math.random()*(doc_height-am[i]-maxsize);
                                yp[i] = doc_width;
                                stx[i] = 0.02 + Math.random()/10;
                                sty[i] = 0.7 + Math.random();
                                doc_width = document.body.clientWidth;
                                doc_height = document.body.clientHeight;
                        }
                }
                dx[i] += stx[i];
                document.all["dot"+i].style.pixelTop = xp[i] + am[i]*Math.sin(dx[i]);
                document.all["dot"+i].style.pixelLeft = yp[i];
        }
        setTimeout("snowIE()", speed);
}

if (ns4up) {
        snowNS();
} else if (ie4up) {
        snowIE();
}

// End -->
</script>

 


  18 ม.ค. 2548 18:21 น. Admin ลบความคิดเห็นนี้ 
  สมาชิกพิเศษ
Materialz

  
chawhong@hotmail.com 203.145.22.89

  

ข้อความหล่นๆ

<SCRIPT language="JavaScript">

// FallT v1.0 By Maxx Blade - http://www.maxxblade.co.uk
///////////// Only Edit these lines ////////////////
var no=5,speed=30,slider=30,fallmax=8,wind=0,fallwhat=" ข้อความ ",fallsize=10,fallfont="Tahoma";
var colours=new Array("FF008A","FD54B0","FC87C7","FCB4DB","FDD6EB","FFFFFF");
//////////////////////////////////////////////////////
var o=new Array(), tog=1, dofallt=new Array();
var ns4=(document.layers)?1:0;
var ie4=(document.all)?1:0;
var ns6=(document.getElementById&&!document.all)?1:0;
if(ie4) falllayer="document.all['gf'+i].style";
if(ns4) falllayer="document.layers['gf'+i]";
if(ns6) falllayer="document.getElementById('gf'+i).style";
function winWid(){ return (ns4||ns6)?window.innerWidth:document.body.clientWidth; }
function winHei(){ return (ns4||ns6)?window.innerHeight:document.body.clientHeight; }
function winOfy(){ return (ns4||ns6)?window.pageYOffset:document.body.scrollTop; }
function togFall(){ for(i=0;i<no;i++){ if(tog==1){ with(eval(falllayer)){ left=-500; } clearTimeout(dofallt[i]); }else{ fallt(i); } } tog*=-1 }
function newobj(q,t){
spin = parseInt(Math.random()*slider);
spin = (Math.random()>0.5) ? spin : -spin;
o[q] = new Array(parseInt(Math.random()*(winWid()-slider)),-30,spin,0.02+Math.random()/10,parseInt(1+Math.random()*fallmax),0);
if(t==1){
if(ns4){ document.write('<layer name="gf'+q+'" left="0" top="0" visibility="show">'+fallwhat+'</layer>'); }
if(ie4||ns6){ document.write('<span id="gf'+q+'" style="POSITION: absolute; Z-INDEX: -'+q+'; VISIBILITY: visible; TOP: 0px; LEFT: 0px; font-size: '+fallsize+'px; font-family: '+fallfont+';">'+fallwhat+'</span>'); }
}
}
function fallt(i){
if((o[i][1]>winHei()-(fallsize*1.5))||(o[i][0]>winWid()-slider-(fallsize*fallwhat.length))){ newobj(i,0); }
o[i][1] += o[i][4];
o[i][0]+=wind;
o[i][5] += o[i][3];
sizexy=Math.sin(o[i][5]);
lay=(ie4)?sizexy:parseInt(sizexy+1);
sizexy=(sizexy>0)?sizexy:0-sizexy;
with(eval(falllayer)){
top = o[i][1]+winOfy();
left = o[i][0]+o[i][2]*Math.cos(o[i][5]);
if(!ns4){
zIndex=lay;
color=colours[parseInt(sizexy*(colours.length-1))]
}
}
dofallt[i] = setTimeout("fallt("+i+")", speed);
}
for (i = 0; i < no; i++){ newobj(i,1); fallt(i); }
</SCRIPT>

 


  16 มิ.ย. 2550 15:46 น. Admin ลบความคิดเห็นนี้ 
  ผู้ชมทั่วไป Brayden

 shelton@operamail.com 81.33.140.53

   http://5241f1c895f020c5ff4f78c7b525033f-t.estdap.info 5241f1c895f020c5ff4f78c7b525033f [url]http://5241f1c895f020c5ff4f78c7b525033f-b1.estdap.info[/url] [url=http://5241f1c895f020c5ff4f78c7b525033f-b2.estdap.info]5241f1c895f020c5ff4f78c7b525033f[/url] [u]http://5241f1c895f020c5ff4f78c7b525033f-b3.estdap.info[/u] 4af46dcbdde5249b085219f4861704fa

 


  16 ส.ค. 2550 07:16 น. Admin ลบความคิดเห็นนี้ 
  ผู้ชมทั่วไป POOM

 poom-d_dum@hotmail.com 58.64.19.18

   thank u

 


  16 พ.ค. 2553 01:21 น. Admin ลบความคิดเห็นนี้ 
  ผู้ชมทั่วไป crusnerfede

 dfgdfgwerw@mail.ru 109.254.4.9

   The first situation dedicated to medical goods, here you are your concentration most of the drugs that are now on the market. Also, you can augment any responses to certain the deliver of pharmacies where you can prosecute any responses to harmony your desired consequence. Where the lowest prices on your desired offshoot. Here is the report of the newest drugs, which merely arrive on the market. so the anyhow on our web spot you wishes clear a doctor of your questions. All consultations are conducted anonymously and on touching it no one desire comprehend. [url=http://berlin.yackk.com/?p=3]Best Pharmacy[/url]

 


page [1]

** พื้นที่การใช้งานบอร์ดเต็มทำอย่างไรดี มี 2 วิธีง่ายๆดังต่อไปนี้ค่ะ **

1.upgrade เป็น board vip เพื่อสนับสนุนทางเว็บไซด์ click upgrade
2.ลบกระทู้เก่าๆที่มีภาพออกไปให้มากที่สุด และประมาณ 8-10 ชม.หลังจากนั้นระบบจะอัพเดทพื้นที่การใช้งานของท่านอีกครั้ง


ร่วมแสดงความคิดเห็น (กรุณาใช้คำพูดที่สุภาพ)
  โพสต์โดย
  Email
  Post ภาพ
* สมาชิกเท่านั้น
ขนาดของไฟล์ภาพไม่เกิน 100 kb. เฉพาะไฟล์ jpg, gif หรือ swf เท่านั้น
  Security code:
 กรุณากรอกรหัสที่เห็นเพื่อยืนยันการโพสต์


บริการฟรีเว็บบอร์ดจาก YimWhan.com :: copyrights © 2009-2010