home *** CD-ROM | disk | FTP | other *** search
- <!--
- function startFix(){
-
- fixedLAYER( 'fixedLay0' ,10,0)
- }
- //e4,e5,e6,n4,n6,n7,m1,o6,o7,s1ùp
- function fixedLAYER(layName,offSetX,offSetY){
-
- if(!window.fixedLAYER[layName]){
- this.ie = !!document.all
- this.n4 = !!document.layers
- this.w3c = !!document.getElementById
- this.ua = navigator.userAgent
- this.mac45 = ua.indexOf('MSIE 4.5; Mac_PowerPC') != -1
- this.mac5 = ua.indexOf('MSIE5.0;Mac_PowerPC') != -1
- this.macie = ua.indexOf('Mac_PowerPC') !=-1 && ie
- this.moz = ua.indexOf('Gecko') !=-1
- this.opr = !!window.opera
- if(this.ie&&!(this.mac45)){
- window.onscroll = window.onresize = startFix
- }
- if(this.n4)
- window.onresize = function(){ location.reload() }
- window.fixedLAYER[layName] = true
- }
-
- offSetX = parseInt(offSetX,10)
- offSetY = parseInt(offSetY,10)
- offLeft = offSetX
- offTop = offSetY
-
- if(document.all&&!this.opr){
- var mx = document.body.scrollLeft + offLeft
- var my = document.body.scrollTop + offTop
- } else {
- var mx = self.pageXOffset + offLeft
- var my = self.pageYOffset + offTop
- }
-
- if(document.getElementById){
- document.getElementById(layName).style.left = mx
- document.getElementById(layName).style.top = my
- } else if(document.all){
- document.all(layName).style.pixelLeft = mx
- document.all(layName).style.pixelTop = my
- } else if(document.layers) //n4ùp
- document.layers[layName].moveTo(mx,my)
-
- if(!(this.ie&&!this.mac45) || this.opr){
- clearTimeout(fixedLAYER[layName])
- fixedLAYER[layName]=setTimeout("fixedLAYER('"+layName+"','"+posString
- +"','" +offSetX+"','"+offSetY+"')",100)
- }
- }
- // Original Script:(c) Toshirou Takahashi / Modified by Neo-Logue,Inc
- //-->