placing the layer in upper right corner...
hi,
In my html page i want to display the layer(it display my name)in upper right corner of my window....Normally you can fix the position.
But here my problem is...
All the time i want to display the layer at right upper corner. Suppose if the user resizing the window or they change the resolution, i want to display the layer in right upper corner of the particular window.
How can i achieve this ?
---------------------
suresh
Re: placing the layer in upper right corner...
Finally i got the solution...Here is the script for this problem..
[CODE]<script language="javascript">
function SetPosition(){
var leftPosi = document.body.clientWidth-50;
alert(leftPosi);
document.getElementById("AjaxProgress").style.position = "absolute";
document.getElementById("AjaxProgress").style.left=leftPosi+"px";
document.getElementById("AjaxProgress").style.top=10px;
}
</script>[/CODE]
You must call this function in body onload...
--------------------
suresh