var str="Customer Service"; 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 stmnGAP1 = pstmnGAP1;
var stmnBASE = pstmnBASE; = pstmnActivateSpeed;
var stmnScrollSpeed = pstmnScrollSpeed;
this.FloatRun=function(pObjName)
{
var newDiv=document.createElement("div");
newDiv.id=pObjName ;
newDiv.innerHTML=pText;
newDiv.style.position="absolute";
FloatMenu=document.getElementById(pObjName); FloatMenu.style.display=="";
FloatMenu.style.top = document.documentElement.scrollTop stmnBASE "px";
FloatMenu.style.left = stmnLEFT "px"; ();
}
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)スクロール量 = 計算式.ceil(Math.abs(stmnEndPoint - stmnStartPoint) / 15 );
FloatMenu.style.top = parseInt(FloatMenu.style.top, 10) ((stmnEndPointstmnRefreshTimer = stmnScrollSpeed;
else
{
stmnRefreshTimer = stmnActivateSpeed;
setTimeout("RefreshStaticMenu();", stmnRefreshTimer); 🎜>}