|
 |
|
รบกวนขอโค้ด ตั้งให้เว็บเราเป็นหน้าแรกของเบราเซอร์หน่อยครับ |
|
 |
|
|
 |
 |
|
Code (JavaScript)
<script language=”JavaScript”>
<!–
<!–
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName==”Netscape”)&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// –>
function MM_timelinePlay(tmLnName, myID) { //v1.2
//Copyright 1997 Macromedia, Inc. All rights reserved.
var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
if (myID == tmLn.ID) { //if Im newest
setTimeout(‘MM_timelinePlay(“‘+tmLnName+’”,’+myID+’)',tmLn.delay);
fNew = ++tmLn.curFrame;
for (i=0; i<tmLn.length; i++) {
sprite = tmLn[i];
if (sprite.charAt(0) == ‘s’) {
if (sprite.obj) {
numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
keyFrm=1;
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr != props.length) {
if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
else sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
} else {
while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
else sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
} } } } }
} else if (sprite.charAt(0)==’b’ && fNew == sprite.frame) eval(sprite.value);
if (fNew > tmLn.lastFrame) tmLn.ID = 0;
} }
}
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//–>
</script>
นำ Code ด้านล่างไปไว้ใน <body>
Code (PHP)
<a href=”javascript:void(0);” title=”tlcthai” onClick=”this.style.behavior=’url(#default#homepage)’; this.setHomePage(‘http://www.example.com’);” onMouseOver=”MM_displayStatusMsg(‘Set Default HomePage’);return document.MM_returnValue” onMouseOut=”MM_displayStatusMsg(”);return document.MM_returnValue”><font face=”MS Sans Serif” size=”1″>
คลิ๊กที่นี่เพื่อตั้ง Technology Learning Center เป็นหน้า HOME</font></a>
|
ประวัติการแก้ไข 2013-06-26 12:44:04 2013-06-26 12:45:12
 |
 |
 |
 |
Date :
2013-06-26 12:36:54 |
By :
biggest59 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2013-06-27 01:52:01 |
By :
JindaCpe8 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|