swfobject undefined error and flash is not showing

N

ncat_02

Can you look over code and see what I am doing wrong?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Office of Facilities - Home Page</title>
<script type="text/javascript" src="swfobject.js"></script>
<meta name="robots" content="noindex,nofollow" />
</head>

<body>
<div id="flashcontent">
need to install flash. div>

<script type="text/javascript">
var fo = new SWFObject("Home Sept 2006a.swf", "flashcontent", "740", "522",
"6", "#000000");
fo.write("flashcontent");
</script>

</body>
</html>
 
S

Stefan B Rusynko

Remove the spaces from your file name
- Rename the file Home Sept 2006a.swf to say Home-Sept-2006a.swf and change your variable to the name w/o a space

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Can you look over code and see what I am doing wrong?
|
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml">
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
| <title>Office of Facilities - Home Page</title>
| <script type="text/javascript" src="swfobject.js"></script>
| <meta name="robots" content="noindex,nofollow" />
| </head>
|
| <body>
| <div id="flashcontent">
| need to install flash. div>
|
| <script type="text/javascript">
| var fo = new SWFObject("Home Sept 2006a.swf", "flashcontent", "740", "522",
| "6", "#000000");
| fo.write("flashcontent");
| </script>
|
| </body>
| </html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top