View Full Version : What does your index file need to contain for a flash site?
BossChase
07-21-2009, 12:23 AM
I have 4 files in my root dir
actions.js
resize.js
flash.swf
and a blank index.htm
I'm not sure how I link the swf and js files into the index.
Thanks for the help.
tadster
07-22-2009, 11:17 AM
<html>
<head>
<title>Your Title</title>
<script type="text/javascript" src="actions.as"></script>
<..rest just like above for all js also one for SWFObject.js if you'll use it..>
</head>
<body>
<div id="forflash"></div>
<object>
//there are many ways to get the flash into the page
//you can do it directly with the object and embed tags
</object>
//or with SWFObject
<script type="text/javascript">
//<![CDATA[
var so = new SWFObject;
so.embed{"forflash".....};
//]]>
</script>
</body>
</html>
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.