HTML Help

ARRIVALS

Well-Known Member
I need some help re: embedding a SWF file into an HTML page to upload to the web. Not quite sure where to look, so posting here.

I've embedded the SWF file into an HTML page (Rich did actually, thanks bud :icon_thumbup:) but am looking for code to make the web browser open to the size of the actual SWF file, instead of centering it or positioning it somewhere. I just don't like looking at it with a white or coloured background.

Any ideas? I can't find it online anywhere. :icon_Wall:
 
You can not adjust the properties of a window that is already open. fyi
you control the scrollbars with
scrollbars=No or Yes

<Script Language="javascript">

var intwidth;
var intheight;
intwidth=750;
intheight=550;
intwidth=parseInt(intwidth);
intheight=parseInt(intheight);
if(intwidth>0&&intheight>0) {window.resizeTo(intwidth,intheight,
"toolbar=no,location=no,scrollbars=no,status=no,me nubar=no,resizable=no");
}
// End -->
</script>
 
Sorry I should have been more clear. I realise I can't change the size of a window that is already open. What I meant to say was even if someone already has a browser open, is there code that will open my site in a new window at the correct size of the SWF?
 
Hi

If you add some inline javascript within you link (<a>) tag you should be fine, here's an example just change the properites to match your requirements.

Rachel

HTML:
<a href="some.html" target="_blank"
onclick="window.open(this.href,this.target,'height=100, width=100');return false;">Your Link Content</a>
 
Hi

If you add some inline javascript within you link (<a>) tag you should be fine, here's an example just change the properites to match your requirements.

Rachel

HTML:
<a href="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/some.html" target="_blank"
onclick="window.open(this.href,this.target,'height=100, width=100');return false;">Your Link Content</a>

Where does that code in my HTML file?

_________________________________

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Welcome to Arrivals</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style>
#arrivals {margin-left:50%; position:relative; left:-450px;}



</style>


<script type="text/javascript" src="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("arrivals.swf", "arrivals", "900", "700", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div id="arrivals">

<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</body>
</html>
 
Back
Top