Lawliet
19 มีนาคม พ.ศ. 2551, 05:02:20
วิธีใส่ อยู่ด้านล่าง
<SCRIPT language=Javascript1.2>
ammount = 10;
times = 1;
wait = 0;
done = false;
x = new Array();
y = new Array();
temp = 0;
waitUntil = 10;
pillSrc = "mousePill.gif";
pacCESrc = "mousePacCE.gif";
pacOESrc = "mousePacOE.gif";
pacCWSrc = "mousePacCW.gif";
pacOWSrc = "mousePacOW.gif";
for (i = 1; i <= ammount; i++)
document.write('<DIV ID = "pill' + i + '" STYLE = "visibility: hidden; position: absolute"><IMG NAME = "pic' + i + '" SRC = "' + pillSrc + '"></DIV>');
pillW = document.pic1.width;
pillH = document.pic1.height;
document.write('<DIV ID = "pacCE" STYLE = "visibility: hidden; position: absolute"><IMG NAME = "pac1E" SRC = "' + pacCESrc + '"></DIV>');
document.write('<DIV ID = "pacOE" STYLE = "visibility: hidden; position: absolute"><IMG NAME = "pac2E" SRC = "' + pacOESrc + '"></DIV>');
document.write('<DIV ID = "pacCW" STYLE = "visibility: hidden; position: absolute"><IMG NAME = "pac1W" SRC = "' + pacCWSrc + '"></DIV>');
document.write('<DIV ID = "pacOW" STYLE = "visibility: hidden; position: absolute"><IMG NAME = "pac2W" SRC = "' + pacOWSrc + '"></DIV>');
showPacC = document.getElementById("pacCE").style;
showPacO = document.getElementById("pacOE").style;
pacCWidth = document.pac1E.width;
pacCHeight = document.pac1E.height;
pacOWidth = document.pac2E.width;
pacOHeight = document.pac2E.height;
function pacPicC()
{
temp = place + 1;
if (temp > ammount)
temp = 1;
if (x[temp] >= x[place])
{
showPacC = document.getElementById("pacCE").style;
xOff = 10;
}
else
{
showPacC = document.getElementById("pacCW").style;
xOff = 23;
}
}
function pacPicO()
{
temp = place + 1;
if (temp > ammount)
temp = 1;
if (x[temp] >= x[place])
{
showPacO = document.getElementById("pacOE").style;
xOff = 10;
}
else
{
showPacO = document.getElementById("pacOW").style;
xOff = 23;
}
}
function update(e)
{
wait++;
if (wait == waitUntil)
{
if (times > ammount)
{
done = true;
times = 1;
}
showPill = document.getElementById("pill" + times + "").style;
x[times] = event.x + document.body.scrollLeft - (pillW / 2);
showPill.left = x[times];
y[times] = event.y + document.body.scrollTop - (pillH / 2);
showPill.top = y[times];
showPill.visibility = "visible";
if (done)
{
showPacC.visibility = "hidden";
place = times + 1;
if (place > ammount)
place = 1;
pacPicO();
showPacO.left = x[place] - pacOWidth + xOff;
showPacO.top = y[place] - (pacOHeight / 2) + 3;
showPacO.visibility = "visible";
}
times++;
wait = 0;
}
else if (wait == waitUntil / 2 && done)
{
showPacO.visibility = "hidden";
if (place > ammount)
place = 1;
pacPicC();
showPacC.left = x[place] - pacCWidth + xOff;
showPacC.top = y[place] - (pacCHeight / 2) + 3;
showPacC.visibility = "visible";
}
}
</SCRIPT>
-ทดสอบ Java/Code คลิ๊ก
-วิธีใส่ Java/Code[IE Only] คลิ๊ก
-วิธีใส่ Java/Code[Firefox Only] คลิ๊ก
- พลาดตรงไหนบอกด้วย ![[$5$]](http://www.zone-it.com/forum/Smileys/default/emoticon165.gif)
- ซ้ำต้องขออภัย ![[$5$]](http://www.zone-it.com/forum/Smileys/default/emoticon165.gif)
Lawliet
19 มีนาคม พ.ศ. 2551, 15:20:38
คือว่า ต้อง Copy Code จาวาสคริป ไว้ก่อนเสดแล้ว ลบอันเก่าออกทั้งหมด
แล้วสร้างใหม่ Paste Code อันเก่า
เสดแล้ว Copy Code อันใหม่ มาเพิ่ม
: เวลา จาเพิ่มCodeต้องลบ สมุดบันทึกก่อน ทุกครั้ง ![[$7$]](http://www.zone-it.com/forum/Smileys/default/emoticon288.gif)
zxcvb
19 มีนาคม พ.ศ. 2551, 20:06:34
ไม่เห็นมีอะไรเกิดขึ้นเลยหว่าา!!!??? ![[$6$]](http://www.zone-it.com/forum/Smileys/default/emoo2068.gif)
ทำหลายรอบแล้ว ไม่มีอะไรจริงๆง่าา เซงเลย
Lawliet
19 มีนาคม พ.ศ. 2551, 20:34:57
ไม่มีจริงๆ หลอครับ
ผมก้อ ใส่อยู่น่ะ
กัมๆ
เด่วลองดูใหม่นะ 
beantech
20 มีนาคม พ.ศ. 2551, 05:27:07
ดูตรง รูปสิคับ
ขอลิงค์แบบที่ฝากไว้บนเว็บหน่อยได้มั๊ยคับ
bughums
23 มีนาคม พ.ศ. 2551, 11:37:52
ชอบมากเลยครับ
ขอบคุณมากเลยครับ
Hacker Non
24 มีนาคม พ.ศ. 2551, 14:22:33
ยอดไปเลย

jarkem
25 มีนาคม พ.ศ. 2551, 02:25:26
มันไม่มี ไร เกิด ขึ้น เลย อ่า
Lawliet
25 มีนาคม พ.ศ. 2551, 11:55:17

poodjanart
6 เมษายน พ.ศ. 2551, 12:12:38

oechi
18 เมษายน พ.ศ. 2551, 23:16:49
ไม่ค่อยกล้าเล่น javaมาก
เดว รวน อีก ![[$7$]](http://www.zone-it.com/forum/Smileys/default/emoticon288.gif)