Nel mio sito, in cui ho inserito dei css per posizionare dei div, ho inserito un SWFObject caricato dinamicamente con javascript.
Ho notato che se lo visualizzo con Firefox va tutto bene ma il problema si verifica con IExplorer che mi visualizza l'swf sopra tutto, nascondendo testo e immagine.
Ho provato anche a dare la z-index ad ogni div ma comunque non risolvo il problema, il flash è sempre su ogni cosa! Forse devo dare qualche parametro al javascript?
Questo è il codice:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Two Women in the World</title>
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #000000;
color:#ffffff;
font-family:sans-serif;
font-size:30;
}
a {
color:#cccccc;
}
#logo {
width: 1000px;
height: 100px;
position: absolute;
left: 50%;
margin-left: -500px;
padding-top: 0px;
top: 0px;
}
#back {
width: 54px;
height: 16px;
position: absolute;
margin-left: 50px;
padding-top: 0px;
bottom: 10px;
}
#copertura {
background: #000000;
width: 100%;
height: 70px;
position: absolute;
right: 0px;
margin-left: -600px;
padding-top: 0px;
bottom: 0px;
}
.Stile1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Stile2 {color: #FFFFFF}
.Stile3 {font-size: 14px}
</style>
</head>
<body>
<div id="flashcontent">TiltViewer requires JavaScript and the latest Flash Player. Get Flash here. </div>
<script type="text/javascript">
var fo = new SWFObject("TiltViewer.swf", "viewer", "100%", "100%", "9.0.28", "#000000");
// TILTVIEWER CONFIGURATION OPTIONS
// To use an option, uncomment it by removing the "//" at the start of the line
// For a description of config options, go to:
// http://www.airtightinteractive.com/p...g_options.html
//FLICKR GALLERY OPTIONS
// To use images from Flickr, uncomment this block
//fo.addVariable("useFlickr", "true");
//fo.addVariable("user_id", "48508968@N00");
//fo.addVariable("tags", "jump,smile");
//fo.addVariable("tag_mode", "all");
//fo.addVariable("showTakenByText", "true");
// XML GALLERY OPTIONS
// To use local images defined in an XML document, use this block
fo.addVariable("useFlickr", "false");
fo.addVariable("xmlURL", "gallery.xml");
fo.addVariable("maxJPGSize","640");
//GENERAL OPTIONS
fo.addVariable("useReloadButton", "false");
fo.addVariable("columns", "5");
fo.addVariable("rows", "5");
//fo.addVariable("showFlipButton", "true");
//fo.addVariable("showLinkButton", "true");
//fo.addVariable("linkLabel", "View image info");
fo.addVariable("frameColor", "0xFFFFFF");
fo.addVariable("backColor", "0xFFFFFF");
fo.addVariable("bkgndInnerColor", "0x000000");
fo.addVariable("bkgndOuterColor", "0x000000");
//fo.addVariable("langGoFull", "Go Fullscreen");
//fo.addVariable("langExitFull", "Exit Fullscreen");
//fo.addVariable("langAbout", "About");
// END TILTVIEWER CONFIGURATION OPTIONS
fo.addParam("allowFullScreen","true");
fo.write("flashcontent");
</script>
<div id="logo" style="position: absolute;z-index: 2;">
<div align="center">[img]logo_w.png[/img]</div>
</div>
<div class="Stile1" id="back" style="position: absolute;z-index: 4;">Back</div>
<div class="Stile1" id="copertura" style="position: absolute;z-index: 3;"></div>
</body>
</html>
Dov'è l'errore? Nel CSS o in JAVAScript?
![]()