Hello
You need to create a .html file called newpage.html" and add the
HTML Code:
<img src="" alt="" width="" height="">
tag to that, use .css to remove the margins and padding from the page by placing the following in the <head></head>:
Code:
<style type="text/css">
body, html, img {margin:0;padding:0}
</style>
Then place this JavaScript...
Code:
function popUp() {
/* begin configuration */
var url = "newpage.html";
var w = "500";
var h = "300";
var menu = "no";
var scroll = "no";
var tool = "no";
var location = "no";
var resize = "no";
/* end configuration */
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'width='+w+', height='+h+', top='+wint+', left='+winl+', menubar='+menu+', scrollbars='+scroll+', toolbar='+tool+', location='+location+', resizable='+resize+''
window.open(url, 'popup', winprops);
}
...in a new file save it as popup.js (or whatever you want to name it just use a .js extension) in the same folder as the .swf file. Adjust the width and height to match the image dimensions, then add this in the <head></head> of the page with the Flash embedded on it.
Code:
<script src="popup.js" type="text/javascript"></script>
Hope it helps. If not post again, we will get it sorted
Bookmarks