function BrowserCheck() { var b = navigator.appName if (b=="Netscape") this.b = "ns" else if (b=="Microsoft Internet Explorer") this.b = "ie" else this.b = b this.version = navigator.appVersion this.v = parseInt(this.version) this.ns = (this.b=="ns" && this.v>=4) this.ns4 = (this.b=="ns" && this.v==4) this.ns5 = (this.b=="ns" && this.v==5) this.ie = (this.b=="ie" && this.v>=4) this.ie4 = (this.version.indexOf('MSIE 4')>0) this.ie5 = (this.version.indexOf('MSIE 5')>0) this.min = (this.ns||this.ie) } is = new BrowserCheck() function trans(ImgName,ImgSrc) { if ((screen.colorDepth >= 24) && (is.ie4)) { eval('document.images.'+ImgName+'.src = '+ImgSrc+'.src;'); } else { eval(ImgName + '.filters.blendTrans.stop();'); eval(ImgName + '.filters.blendTrans.Apply();'); eval(ImgName + '.src=' + ImgSrc + '.src;'); eval(ImgName + '.filters.blendTrans.Play();'); } } function trans2(ImgName,ImgSrc) { eval('document.images.'+ImgName+'.src = '+ImgSrc+'.src;'); } var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4"); var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4"); function CheckUIElements() { var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck; if ( bNetscape4plus ) { // ³×Ã÷ÄÉÀÌÇÁ ¿ë ¼³Á¤ //yButtonFrom = document["divLinkButton"].top; //yButtonTo = top.pageYOffset + top.innerHeight - 55; yMenuFrom = document["divMenu"].top; yMenuTo = top.pageYOffset + 200; // À§ÂÊ À§Ä¡ } else if ( bExplorer4plus ) { // IE ¿ë ¼³Á¤ //yButtonFrom = parseInt (divLinkButton.style.top, 10); //yButtonTo = document.body.scrollTop + document.body.clientHeight - 55; yMenuFrom = parseInt (divMenu.style.top, 10); yMenuTo = document.body.scrollTop + 200; // À§ÂÊ À§Ä¡ } timeoutNextCheck = 300; if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) { setTimeout ("CheckUIElements()", timeoutNextCheck); return; } if ( yButtonFrom != yButtonTo ) { yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 ); if ( yButtonTo < yButtonFrom ) yOffset = -yOffset; if ( bNetscape4plus ) document["divLinkButton"].top += yOffset; else if ( bExplorer4plus ) divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset; timeoutNextCheck = 10; } if ( yMenuFrom != yMenuTo ) { yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 ); if ( yMenuTo < yMenuFrom ) yOffset = -yOffset; if ( bNetscape4plus ) document["divMenu"].top += yOffset; else if ( bExplorer4plus ) divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset; timeoutNextCheck = 10; } setTimeout ("CheckUIElements()", timeoutNextCheck); } function OnLoad() { var y; // ÇÁ·¹ÀÓ ¿¡¼­ ¹þ¾î³ª°Ô ÇÏ´Â ÇÔ¼öÀÔ´Ï´Ù. ÇÁ·¹ÀÓ¿¡ ³ÖÀ¸·Á¸é »èÁ¦Çϼ¼¿ä //if ( top.frames.length ) // top.location.href = self.location.href; // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç if ( bNetscape4plus ) { document["divMenu"].top = top.pageYOffset + 135; document["divMenu"].visibility = "visible"; //document["divLinkButton"].top = top.pageYOffset + top.innerHeight - 55; //document["divLinkButton"].visibility = "visible"; } else if ( bExplorer4plus ) { divMenu.style.top = document.body.scrollTop + 135; divMenu.style.visibility = "visible"; //divLinkButton.style.top = document.body.scrollTop + document.body.clientHeight - 55; //divLinkButton.style.visibility = "visible"; } // initializing UI update timer CheckUIElements(); //if ( bExplorer4plus ) // setTimeout ( "FlashTitleStepIt(255)", 10 ); return true; } function funcSwapImage(imageName, bHilite) { // DUMB Netscape doesn't see img names if they're inside a
- it's okay, but that's not the case :\ // Workaround (using layers) was provided by Kostya. Tnx man :) if ( bExplorer4plus ) { document.images[imageName].src = "images/" + imageName + (bHilite == 1 ? "_hi.gif" : "_lo.gif"); } else if ( bNetscape4plus ) { document.layers["divMenu"].document.images[imageName].src = "images/" + imageName + (bHilite == 1 ? "_hi.gif" : "_lo.gif"); } return false; }