Looking again, you centerpopup function looks like this:
Code:
function centerPopUp(){
var w=window.innerWidth? window.innerWidth : document.body.clientWidth
document.getElementById('flashDiv').style.left=(w-document.getElementById('popup').width)/2+'px'
}
onresize=function(){centerPopUp();jsStarFieldBG_onResize();}
Instead of doing all that, you can get rid of the flash pop up and use a gif like you wanted. just use this for the "on click" action of the pic on the page:
Code:
<script language="JavaScript">
function openNewWindow(URLtoOpen,windowName,height,width)
{
windowFeatures ="menubar=no,scrollbars=no,location=yes,favorites=no,resizable=no,status=no,toolbar=no,directories=no";
var test = "'";
winLeft = (screen.width-width)/2;
winTop = (screen.height-(height+110))/2;
myWin= open(URLtoOpen,windowName,"width=" + width +",height=" + height + ",left=" + winLeft + ",top=" + winTop + test + windowFeatures + test);
myWin.document.open();
myWin.document.close();
}
</script>
</head><p><img src="images/this.jpg" onclick="openNewWindow('http://www.wwwhiz.com/lazy_programmer/index.html','windowname',400,400)">
Changing the addresses to your gif image of course.
Bookmarks