SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    updating swfobject 2 from static to dynamic

    I've used the old version of swfobject (1.5) and someone helped me earlier update my page code using 2.1 rather than the old version of swfobject.

    The thing is I want the use of swfobject to be dynamic and the code I seem to have here is the static version. I went and read up on the documentation of the new version of swfobject and have toyed with updating it to what I want but I just can't seem to nail it.

    Can someone help me update this code to utilize the dynamic version? THANKS SO MUCH!

    Code:
    <!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></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <script type="text/javascript" src="includes/swfobject21.js"></script>
        <script type="text/javascript" src="includes/swffit.js"></script>
    
        <script type="text/javascript">
    		swfobject.registerObject("myId", "8.0.0", "swfobject/expressInstall.swf");
    		swffit.fit("myId",964,850);
        </script>
    	<style type="text/css">
    	/* hide from ie on mac \*/
    	html {
    		height: 100%;
    		overflow: hidden;
    	}
    	
    	#flashcontent {
    		height: 100%;
    	}
    	#alert {
    		background: #666;
    		border: #FFF 1px solid;
    	    margin: 50px;
    		padding: 20px;
    		color: #FFF;
    		font-family: verdana, arial, helvetica;
    		font-size: 12px;
    		
    	}
    	/* end hide */
    	body, object, embed, #flashcontent {
    		height: 100%;
    		width: 100%;
    		margin: 0;
    		padding: 0;
    		background-color: #000000;
    	}
    	object {
    		display: block;
    	}
    	</style>
      </head>
      <body>
        <div id="flashcontent">
          <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
            <param name="movie" value="sgmain.swf" />
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="sgmain.swf" width="100%" height="100%">
            <!--<![endif]-->
              <div id="alert">Please install or update Flash...</div>
            <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
        </div>
      </body>
    </html>

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,551
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    Download the swfobject generator

  3. #3
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very handy! thanks for the link to that.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •