[SWFObject] resize the flashcontent div?

Martin Eiler | Cumuli martin at cumuli.net
Tue Jun 27 01:12:44 PDT 2006


Please check this link.
http://www.mustardlab.com/developer/flash/objectresize/

 

 

 

  _____  

Fra: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] På vegne af Psychoinca
Sendt: 27. juni 2006 09:27
Til: swfobject at lists.deconcept.com
Emne: Re: [SWFObject] resize the flashcontent div?

 

this is what works for ie: 

 

<script type="text/javascript" src="swfobject.js"></script> 

<script language="javascript" type="text/javascript"> 

function setHeight(sizeY) { 
   if(document.all && !document.getElementById) { 
      document.all['movieID'].style.pixelHeight = sizeY;     
   }else{ 
      document.getElementById('movieID').style.height = sizeY;    
   } 
   //window.scrollTo(0,0); 
} 

</script> 

<style type="text/css"> 

html,body{ 
   margin:0px; 
   height: 100%; 
   width: 100%; 
   background-color: #FFFFFF; 
   } 
    
.textformat{ 
   font-family:Arial Narrow,Arial, Helvetica, sans-serif; 
   font-size:16px; 
   font:bold; 
   color:#666666; 
   width:520px; 
   position:relative; 
   left:20%; 
   top:20%; 
   } 
</style> 

</head> 

<body> 

       
<div id="flashcontent"> 
  This text is replaced by the Flash movie. 
</div> 

<script type="text/javascript"> 
   var so = new SWFObject("movie.swf", "movieID", "100%", "100%", "8",
"#FFFFFF"); 
   so.addParam("quality", "high"); 
   so.addParam("salign", "LT"); 
   so.addParam("scale", "noscale"); 
   so.write("flashcontent"); 
</script>

 

how can i modify the fnction to use it with firefox?  

 

 

----- Original Message ----- 

From: Geoff Stearns <mailto:geoff at deconcept.com>  

To: swfobject at lists.deconcept.com 

Sent: Monday, June 26, 2006 5:03 PM

Subject: Re: [SWFObject] resize the flashcontent div?

 

should be fine, but you'll probably want to set the height of your swfobject
to 100% so it will stretch when you resize the div. 

 

 

 

On Jun 26, 2006, at 6:12 AM, Psychoinca wrote:





Is there a possibility to change the height of the "flashcontent"-div from
within flash. I need it for a Portalsite. the content expands and i can use
the browsers scrollbars.

 

I need a javascript funktion which adjust the height of the div.

 

Before the ie update it was possible, with the swfobject i got a mistake

 

Please help me

 

 

Greetings from Germany

Carsten

_______________________________________________

SWFObject mailing list

SWFObject at lists.deconcept.com

http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com

 


  _____  


_______________________________________________
SWFObject mailing list
SWFObject at lists.deconcept.com
http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060627/191d1631/attachment-0005.htm>


More information about the Swfobject mailing list