This all happens in the HTML file…
Place this in the beginning.
<div id="staticbanner" style="position:absolute;">
<!-- PUT YOUR .SWF EMBED CODE BETWEEN THESE TAGS -->
</div>
That is the div tag that will contain your Flash movie.
Now right underneath the placement of that div tag add this javascript…
<script>
//define universal reference to "staticbanner"
var crossobj=document.all? document.all.staticbanner : document.getElementById? document.getElementById("staticbanner") :
document.staticbanner
function positionit(){
//position left
var dsocleft=document.all ? document.body.scrollLeft : pageXOffset
//position top
var dsoctop=document.all ? document.body.scrollTop : pageYOffset
//define universal browser window width
var window_width=document.all? document.body.clientWidth : window.innerWidth
//if the user is using IE 4+ or NS6+
if (document.all||document.getElementById){
crossobj.style.left=parseInt(dsocleft)+
parseInt(window_width)-(window_width)+10 //tells it to be 10px from left side of screen
crossobj.style.top=dsoctop+10 //tells it to be 10px from top of screen
}
//else if the user is using NS 4
else if (document.layers){
crossobj.left=
dsocleft+window_width-window_width+5
crossobj.top=dsoctop+25
}
}
//position the div tag every 1 millisecond
setInterval("positionit()",1)
</script>