var str="Customer Service"
var objFT=new FloatT ("FloatMenu1",str,942,137,125,200,80,10);
objFT.FloatRun();
//js는 스크롤 막대를 따라 이동합니다.
//pObjName: html 요소 ID
//pText:html 요소 콘텐츠
//다른 항목 보기
function FloatT(pObjName,pText,pstmnLEFT,pstmnGAP1,pstmnGAP2,pstmnBASE,pstmnActivateSpeed,pstmnScrollSpeed)
{
var FloatMenu;
var stmnLEFT = pstmnLEFT;
var stmnGAP2 = pstmnGAP2;
var stmnActivateSpeed = pstmn 활성화속도;
var stmnScrollS peed = pstmnScrollSpeed;
this.FloatRun=function(pObjName)
{
var newDiv=document.createElement("div")
newDiv.id=pObjName ;
newDiv.innerHTML=pText;
newDiv.style.position="absolute";
document.body.appendChild(newDiv)
FloatMenu=document.getElementById(pObjName); FloatMenu.style.display=="";
FloatMenu.style.top = document.documentElement.scrollTop stmnBASE "px";
FloatMenu.style.left = stmnLEFT "px"
RefreshStaticMenu ();
}
RefreshStaticMenu=function()
{
var stmnStartPoint,stmnEndPoint,stmnRefreshTimer;
stmnStartPoint =parseInt(FloatMenu.style.top, 10) ;
stmnEndPoint = document.documentElement.scrollTop stmnGAP2;
if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
if(stmnStartPoint != stmnEndPoint)
{
stmnScrollAmount = 수학 .ceil(Math.abs(stmnEndPoint - stmnStartPoint) / 15 );
FloatMenu.style.top =parseInt(FloatMenu.style.top, 10) ((stmnEndPointstmnRefreshTimer = stmnScrollSpeed;
}
else
{
stmnRefreshTimer = stmnActivateSpeed;
}
setTimeout("RefreshStaticMenu();", stmnRefreshTimer)
}