ของสวยงามก็ต้องเหมาะกับผู้หญิงอย่างเรา ๆ สิเนอะ ^^

oop*ib
Location :
สุพรรณบุรี Thailand

[Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed

ผู้ติดตามบล็อก : 1 คน [?]




สวัสดีค่ะเพื่อน ๆ ทุกคน ขอบคุณที่เข้ามาเยี่ยมชม blog นี้กันนะคะขอขอบคุณ bloggang แห่ง Pantip ด้วยนะคะ blog นี้จัดทำขึ้นมาเพื่อเป็นที่ไว้พูดคุยกันโน้นนี่นั่นนะคะ ขอบคุณค่ะ
(สงวนสิทธิ์ทุกสิ่งอย่างใน blog นี้ ใครละเมิดนำส่วนหนึ่งส่วนใดของ blog นี้ไปเผยแพร่ต่อ หรือไปกระทำการผิดกฏหมาย เจ้าของ blog จะดำเนินคดีตามกฏหมายสูงสุด)

Blouse

Dress

Shorts

Skirt

Belt

Accessories

Welcome to
Oop*ib Shop
***********************
เสื้อผ้า ชุดนอน กระเป๋า ของเบ็ดเตล็ด
http://www.facebook.com/oopibshop2011

Friends' blogs
[Add oop*ib's blog to your web]
Links
 

 
ตัวอักษรค่อย ๆ วิ่งรวมตัวกันที่ Status bar

ส่วนนี้ไว้ตบแต่ง Status bar ที่ให้อักษรค่อย ๆ วิ่งมารวมตัวกัน.. น่าเล่นนะลองดู

*SCRIPT LANGUAGE="JavaScript"*
// set speed of banner (pause in milliseconds between addition of new character)
var speed = 10

// decrease value to increase speed (must be positive)
// set pause between completion of message and beginning of following message
var pause = 1500

// increase value to increase pause
// set initial values
var timerID = null
var bannerRunning = false

// create array
var ar = new Array()

// assign the strings to the array's elements
ar[0] = "พิมพ์ข้อความที่ 1 ที่นี่"
ar[1] = "พิมพ์ข้อความที่ 2 ที่นี่"
ar[2] = "พิมพ์ข้อความที่ 3 ที่นี่"
ar[3] = "พิมพ์ข้อความที่ 4 ที่นี่"

// assign index of current message
var message = 0

// empty string initialization
var state = ""

// no value is currently being displayed
clearState()

// stop the banner if it is currently running
function stopBanner() {
// if banner is currently running
if (bannerRunning)
// stop the banner
clearTimeout(timerID)
// timer is now stopped
timerRunning = false
}

// start the banner
function startBanner() {
// make sure the banner is stopped
stopBanner()
// start the banner from the current position
showBanner()
}

// assign state a string of "0" characters of the length of the current message
function clearState() {
// initialize to empty string
state = ""
// create string of same length containing 0 digits
for (var i = 0; i < ar[message].length; ++i) {
state += "0"
}
}

// display the current message
function showBanner() {
// if the current message is done
if (getString()) {
// increment message
message++
// if new message is out of range wrap around to first message
if (ar.length <= message)
message = 0
// new message is first displayed as empty string
clearState()
// display next character after pause milliseconds
timerID = setTimeout("showBanner()", pause)
}
else {
// initialize to empty string
var str = ""
// built string to be displayed (only character selected thus far are displayed)
for (var j = 0; j < state.length; ++j) {
str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " "
}
// partial string is placed in status bar
window.status = str
// add another character after speed milliseconds
timerID = setTimeout("showBanner()", speed)
}
}

function getString() {
// set variable to true (it will stay true unless proven otherwise)
var full = true
// set variable to false if a free space is found in string (a not-displayed char)
for (var j = 0; j < state.length; ++j) {
// if character at index j of current message has not been placed in displayed string
if (state.charAt(j) == 0)
full = false
}
// return true immediately if no space found (avoid infinitive loop later)
if (full) return true
// search for random until free space found (braoken up via break statement)
while (1) {
// a random number (between 0 and state.length - 1 == message.length - 1)
var num = getRandom(ar[message].length)
// if free space found break infinitive loop
if (state.charAt(num) == "0")
break
}
// replace the 0 character with 1 character at place found
state = state.substring(0, num) + "1" + state.substring(num + 1, state.length)
// return false because the string was not full (free space was found)
return false
}

function getRandom(max) {
// create instance of current date
var now = new Date()
// create a random number (good generator)
var num = now.getTime() * now.getSeconds() * Math.random()
// cut random number to value between 0 and max - 1, inclusive
return num % max
}
startBanner()
// -->
*/SCRIPT*


Create Date : 12 สิงหาคม 2550
Last Update : 12 สิงหาคม 2550 12:17:48 น. 7 comments
Counter : 715 Pageviews.

 
โอ๊ะโอ๋ ...

โค้ดยาวมากเลยค่ะ

ขอเอาไปทดลองดูนะคะ

ขอบคุณค่ะ


โดย: หยุ่ยยุ้ย วันที่: 12 สิงหาคม 2550 เวลา:12:38:48 น.  

 
ลองดูมั่งเผื่อบล๊อกจะสวยขึ้น


โดย: mrs.postman วันที่: 12 สิงหาคม 2550 เวลา:14:38:20 น.  

 
เราเกิดมาไม่เคยเห็นหน้าเลย


โดย: thiravat_3024 วันที่: 12 สิงหาคม 2550 เวลา:22:19:57 น.  

 
แวะมาดู แวะมาทักทายค่า


โดย: ket (ket_20005 ) วันที่: 13 สิงหาคม 2550 เวลา:12:51:55 น.  

 
ขอบคุณค่ะ


โดย: โลมาน้อยน่ารัก วันที่: 15 สิงหาคม 2550 เวลา:22:12:04 น.  

 
รบกวนขอโค๊ดทำ บาร์ทางด้านซ้ายมือที่เป็น All blog ได้ไหมค่ะ เพราะตอนนี้ หัวข้อเริ่มเยอะแล้ว
ขอบคุณค่ะ


โดย: โลมาน้อยน่ารัก วันที่: 15 สิงหาคม 2550 เวลา:22:13:30 น.  

 
แวะมาดูดโค๊ต ไปลองค่ะ


โดย: โอ๋น่ารัก (Nasther ) วันที่: 2 พฤษภาคม 2551 เวลา:14:54:18 น.  

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 
 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.