Popup und IE

ace24

ace24

Aktives Mitglied
Thread Starter
Dabei seit
13.03.2009
Beiträge
147
Reaktionspunkte
4
Hallo zusammen,

hab ein Popup erstellt! Es läuft im Firefox und im Safari. Popup geht auf, es läuft ein Video ab und am ende des Videos kommt ein Bild - klick auf das popup und es öffnet sich ein link.

So nun zu meinem Problem: Beim Ie wird ein Flash Video geladen. Am Ende des Videos habe ich das Bild mit Link via Flash eingebunden. Wenn ich das solo im IE aufmachen funktioniert alles. Der Link öffnet sich - alles super. Wenn ich das aber so mache wie unten im CODE..öffnet sich auch der Link ABER immer noch ein zweites leeres Fenster (wo Verbindung wird hergestellt im Tab steht...es bleibt aber leer)...und bekomm es nicht raus? WARUM? :confused: ?

Evtl. kann mir jemand helfen??

Page:

Code:
<script language="javascript" type="text/javascript">
<!--
var win=null;

onerror = stopError;
function stopError(){
    return true;
}



function abc(){
    myleft=200;
    mytop=200;
    settings="width=400,height=400,top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
    win=window.open("popup.html","popup",settings);
    win.focus();

}
// -->
</script>


</head>

<body>
<a href="javascript:abc();">LinkText</a>

</body>
</html>


Das Popup selber:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Popup</title>

    <style type="text/css" media="screen">
        html, body { height:100%; background-color: #ffffff;}
        body { margin:0; padding:0; }
        </style>


<script
language="JavaScript">
<!--

function changeMovie() {
            theFile='<img src="bild.jpg" alt="Grafik" width="400" height="400">';
            document.getElementById("film").innerHTML = theFile;
    }
    
//-->
</script>

</head>
<body>


<div id="film" onClick="window.open('http://www.blabla.de')"> 

    <video width="400" height="400" autoplay onended="javascript: changeMovie();">
     <source src="xxxxxxxxxxxxx.mp4" type="video/mp4"> <!-- MPEG4 for Safari -->
     <source src="xxxxxxxxxx.ogv" type="video/ogg">  <!-- OGG Theora/Vorbis für Firefox -->

  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="400" id="xxxxxxxxxxxxxxx.flv" align="middle">
                <param name="movie" value="xxxxxxxxxxxxxxx.flv.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <param name="play" value="true" />
                <param name="loop" value="true" />
                <param name="wmode" value="window" />
                <param name="scale" value="showall" />
                <param name="menu" value="true" />
                <param name="devicefont" value="false" />
                <param name="salign" value="" />
                <param name="allowScriptAccess" value="sameDomain" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="xxxxxxxxxxx.flv.swf" width="400" height="400">
                    <param name="movie" value="xxxxxxxxxx.flv.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflash">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
                    </a>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
    </video>    
</div>



</body>
</html>


Vielen Danke schon mal !!!

Alex
 
Zuletzt bearbeitet:
push !
#Keiner ne Idee?
 
Zurück
Oben Unten