PDA

Volledige versie bekijken : [opgelost] 2e swf op 100% breedte geeft IE probleem!


Freek
%Europe/Berlin %614 %2007, 15:44
http://www.experienz.nl/strandooginal/IE_index.htm


<html>
<head>
<title>strand Oog in Al | Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="favicon.ico" >
<meta name="keywords" content="Oog in Al, stadsstrand, strand, strand oog in al, Utrecht beach, utrechtbeach, beach, beach volleybal, voleybal, strandbal, strandfeest, experienz, praya, better days" >
<meta name="description" content="Strand Oog in Al is hét nieuwe stadsstrand in Utrecht, waar u de hele zomer kunt ontspannen in de zon, sporten, eten, drinken en dansen. Op het stadsstrand staat een strandpaviljoen waar je ook lekker overdekt kunt zitten met een groep voor een borrel of een diner.">
<meta name="robot" content="index,follow">
<meta name="copyright" content="Copyright ©2007 Experienz.nl. Alle Rechten Voorbehouden.">
<meta name="language" content="Nederlands">
<meta name="revisit-after" content="1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- saved from url=(0013)about:internet -->
<script type="text/javascript" src="js/swfobject.js"></script>
<link href="css/soia.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="250" rowspan="2" valign="top"><div id="flash_navigatie">Flash navigatie</div></td>
<td width="350" valign="top">&nbsp;</td>
<td rowspan="2" valign="top"><div id="flash_rechts">Flash rechts</div></td>
</tr>
<tr>
<td width="350" height="50" valign="top">&nbsp;</td>
</tr>
</table>
<script type="text/javascript">
// <![CDATA[
var swfSource = "flash/soia_navigatie.swf" + "?" + new Date();
var fo = new FlashObject(swfSource, "strandooginal", "250", "100%", "8", "#FFFFFF", true);
fo.setAttribute('xiRedirectUrl', 'http://www.strandooginal.nl');
fo.addParam("scale", "noscale");
fo.addParam("allowScriptAccess", "always");
fo.addVariable("page", "0");
fo.addVariable("xmlPath", "flash/");
fo.write("flash_navigatie");

var swfSource1 = "flash/soia_rechts.swf" + "?" + new Date();
var fo1 = new FlashObject(swfSource1, "strandooginal_01", "100%", "100%", "8", "#FFFFFF", false);
fo1.setAttribute('xiRedirectUrl', 'http://www.strandooginal.nl');
fo1.addParam("scale", "noscale");
fo1.addParam("allowScriptAccess", "always");
fo1.addVariable("page", "0");
fo1.addVariable("xmlPath", "flash/");
fo1.write("flash_rechts");
// ]]>
</script>
</body>
</html>

liendp
%Europe/Berlin %631 %2007, 16:08
Ik zie de navigatie wel in IE maar soia_rechts.swf zie ik niet. Best wel raar eigenlijk. Probeer anders eens op die background van de 2de swf te verzetten naar een ander opvallend kleur, dan zie je of er toch iets getoond wordt, en waar de swf ergens neergezet wordt. Misschien dat je 2de swf raar gepositioneerd wordt in IE. Ofwel vaste waardes om je dimenties in te stellen.
Ik zie wel iets blijkbaar=>EDIT: never mind had op 1 van de links geklikt in IE en dan zie je wel iets.

Freek
%Europe/Berlin %636 %2007, 16:17
Heb de oplossing gevonden:

<script type="text/javascript">

if(navigator.appName == "WebTV")
{
var flashW = "100%"
}
if(navigator.appName == "Netscape")
{
var flashW = "100%"
}
if(navigator.appName == "Microsoft Internet Explorer")
{
var flashW = screen.width-620
}
// <![CDATA[
var swfSource = "flash/soia_navigatie.swf" + "?" + new Date();
var fo = new FlashObject(swfSource, "strandooginal", "250", "100%", "8", "#FFFFFF", true);
fo.setAttribute('xiRedirectUrl', 'http://www.strandooginal.nl');
fo.addParam("scale", "noscale");
fo.addParam("allowScriptAccess", "always");
fo.addVariable("page", "3");
fo.addVariable("xmlPath", "flash/");
fo.write("flash_navigatie");

var swfSource1 = "flash/soia_rechts.swf" + "?" + new Date();
var fo1 = new FlashObject(swfSource1, "strandooginal_01", flashW, "100%", "8", "#FFFFFF", false);
fo1.setAttribute('xiRedirectUrl', 'http://www.strandooginal.nl');
fo1.addParam("scale", "noscale");
fo1.addParam("allowScriptAccess", "always");
fo1.addVariable("page", "3");
fo1.addVariable("xmlPath", "flash/");
fo1.write("flash_rechts");
// ]]>
</script>

Uiteraard is 620 hier de maat van de eerste twee kolommen en de scrollbar.