Using SWFObject and Calling Javascript
-
Good Evening,
I have read a lot through the forums and on other blogs about replacing your header with a flash SWF file.I have gotten pretty far on my own experimenting with this but I am wondering how you call the javascript in the beggining of the file. Here is my code placed after the <div id=”header”>:
<script type=”text/javascript” src=”swfobject.js”></script><div id=”headerflash”>
</div><script type=”text/javascript”>
var so = new SWFObject(“https://c1test.com/images/header.swf”, “headerflash”, “900”, “250”, “8”, “#FFFFFF”);
so.write(“headerflash”);
</script>Is that all the code I need to call the swfobject.js?
If so all I’m getting is a white box. Although this box is dispaying in flash because you can right click and see that it’s Flash. Maybe I’m screwing up with the div ID I’m not sure. I know that is definitely the URL where the swf is located. Any help would be truly appreciated.
Thanks,
JustinP.S. Here is aLINK to what I have so far.
- The topic ‘Using SWFObject and Calling Javascript’ is closed to new replies.