|
-
i'm trying to create a link from an image that brings up a new window - but i want it to be of a particular width and height, and if possible even position it where it appears on the screen. Is this possible - i'm using flash 4.
Much appreciated,
-
Add the following code to a button in flash, changing the name of 'yourfile.html' to whatever your file is called:
getURL ("javascript:newWindow('yourfile.html')");
Then in the HTML page that embeds the movie add the JavaScript code:
<script type="text/javascript">
<!--
function newWindow(htmlFile)
{
mapWindow=window.open(htmlFile, 'mapWin', 'width=300,height=300,left=0,top=0,scrollbars=yes, toolbar=yes,location=yes');
}
-->
</script>
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|