Please take a look at the site:
HERES THE SITE
I generaly use Mozilla and the floating Div displays fine. I will past the code but you can may also want to do a View Page Source.
I have given the Div and ID name of "FloatLayer" which is refered to in the JS. Just incase your wondering.
Ok so heres the JS code place below my Menu/DIV
<script language="JavaScript" type="text/JavaScript">
var hX = 'centre';
var vY = 291;
var nn=(navigator.appName.indexOf("Netscape")!=-1);
var dD=document,dH=dD.html,dB=dD.body,px=dD.layers?'':'px';
function floatLayer(iX,iY,id){
var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];
this[id+'O']=L;
if(dD.layers)L.style=L;
L.nX=L.iX=iX;
L.nY=L.iY=iY;
L.P=function(x,y){
this.style.left=x+px;
this.style.top=y+px;
}
L.Fm=function(){
var pX, pY;
pX=(this.iX >=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dB.clientWidth;
pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dB.scrollTop;
if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dB.clientHeight;
this.nX+=.1*(pX+this.iX-this.nX);
this.nY+=.1*(pY+this.iY-this.nY);
this.P(this.nX,this.nY);
setTimeout(this.id+'O.Fm()',33);
}
return L;
}
floatLayer(hX,vY,'FloatLayer').Fm();
</script>
I would really appreciate some help with this ASAP! as its an urgent matter for me.
Biggest thanks in advance EVER
====================
I just received some advice and that was to replace the code
]L.P=function(x,y){
this.style.left=x+px;
this.style.top=y+px;
}
With...
L.P=function(x,y){
try {
this.style.left=x+px;
this.style.top=y+px;
} catch(e) {
this.style.pixelLeft=x+'px';
this.style.pixelTop=y+'px';
}
}
But unfortunately this did not help
Just thort the above ^^ would be worth mentioning and maybe lead someone in the direction to solving my problem. :wacko:
=======================
Any JavaScript experts that can help? Surely
posts merged
Edited by Donna, 02 May 2006 - 06:10 PM.
