สคริปทำตัวอักษรติดเม้า
ก็อปปี้โคดไปวางที่สคริปเอเรียค่ัะ
<STYLE type=text/css>#divCursor {
    WIDTH: 100px; POSITION: absolute; HEIGHT: 15px
}
</STYLE>

<SCRIPT language=JavaScript type=text/javascript>
/********************************************************************************





********************************************************************************/
//Default browsercheck, added to all scripts!
function checkBrowser(){
    this.ver=navigator.appVersion
    this.dom=document.getElementById?1:0
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
    this.ns4=(document.layers && !this.dom)?1:0;
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
    return this
}
bw=new checkBrowser()
//Set these variables:
fromLeft=10 // How much from the left of the cursor should the div be?
fromTop=10 // How much from the top of the cursor should the div be?

/********************************************************************
Initilizes the objects
*********************************************************************/
function cursorInit(){
    oCursor=new makeCursorObj('divCursor')
    scrolled=bw.ns4 || bw.ns5?"window.pageYOffset":"document.body.scrollTop"
    if(bw.ns4)document.captureEvents(Event.MOUSEMOVE)
    document.onmousemove=move;
}
/********************************************************************
Contructs the cursorobjects
*********************************************************************/
function makeCursorObj(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'                                        
       this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;                                                        
    this.moveIt=b_moveIt;                                                                     
    return this
}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y}
/********************************************************************
Tracking the mousemove and moves the object along.
*********************************************************************/
function move(e){
    x=bw.ns4 || bw.ns5?e.pageX:event.x
    y=bw.ns4 || bw.ns5?e.pageY:event.y
    if(bw.ie4 || bw.ie5) y=y+eval(scrolled)
    oCursor.moveIt(x+fromLeft,y+fromTop)
}
onload=cursorInit;
</SCRIPT>

<DIV id=divCursor>เขียนข้อความที่ต้องการที่นี่ค่ะ</DIV>
ทดสอบหน้าตาโคดเป็นยังไงคลิกที่นี่ค่ะ



Create Date : 01 สิงหาคม 2550
Last Update : 1 สิงหาคม 2550 17:07:56 น.
Counter : 3061 Pageviews.

10 comments
  

โดย: lozocat วันที่: 1 สิงหาคม 2550 เวลา:17:44:48 น.
  
ลองเทสดูแล้วค่ะ เก๋มากเลย ขอบคุณค่ะ
โดย: Too Optimistic วันที่: 1 สิงหาคม 2550 เวลา:18:17:10 น.
  
ขอบคุณมากค่ะ น่ารักดี
โดย: thaispicy วันที่: 1 สิงหาคม 2550 เวลา:23:21:52 น.
  
แวะมาจิกบีจีไปคะ ขอบคุณนะคะ แล้วโคตลิ้งค์สวยๆด้วยสวยยังใจดีอีก
โดย: bagarbu วันที่: 2 สิงหาคม 2550 เวลา:4:04:07 น.
  

โดย: oranuch_sri วันที่: 2 สิงหาคม 2550 เวลา:6:44:17 น.
  
ลองทำดูเเล้วค่ะ น่ารักดี คุณเเคทนี่หาอะไรยอดเเปลกๆให้สนใจเรื่อยเลย
นับถือค่ะ เก่งจริงๆ
โดย: ELiiCA วันที่: 2 สิงหาคม 2550 เวลา:6:54:31 น.
  
มาลองทำเหมือนกันค่ะ น่ารักดีค่ะ
โดย: wee_nong วันที่: 8 สิงหาคม 2550 เวลา:10:44:17 น.
  
ลองทำดูแล้ว น่ารักจังเลยค่ะ ขอบคุณนะคะ
โดย: janeko วันที่: 9 สิงหาคม 2550 เวลา:13:54:50 น.
  
ขอบคุณที่แบ่งปัน
โดย: หมูอ้วน (pigarea ) วันที่: 17 กันยายน 2550 เวลา:15:46:57 น.
  
ขอบคุณนะคะ
โดย: สปันงา วันที่: 23 ตุลาคม 2550 เวลา:14:46:32 น.
ชื่อ : * blog นี้ comment ได้เฉพาะสมาชิก
Comment :
 *ส่วน comment ไม่สามารถใช้ javascript และ style sheet
 

Misscat.BlogGang.com

lozocat
Location :
  

[ดู Profile ทั้งหมด]
 ผู้ติดตามบล็อก : 13 คน [?]

บทความทั้งหมด