Hello everyone,
Does someone know why my javascript function does not work with Internet Explorer ?
You can check it on http://immo-virtueel.be/360_cam_bis/.
Click on 'Foto Album'
This is the code.
Code
<plugin name="foto_onder" url="%SWFPATH%/images/foto.png" keep="true" x="305" y="0" align="topleft" zorder="102" style="button_style"
onclick="js(openPopup(gallerij2/index.html))"
/>
This is the code in the html file :
Code
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<link media="screen" rel="stylesheet" href="js/colorbox/colorbox.css" />
<script src="js/colorbox/jquery.colorbox.js"></script>
<script type="text/javascript">
function krpano(){
return document.getElementById("krpanoSWFObject");
}
function openPopup(_url, _title, _width, _height, _type)
{
if(typeof _type === 'undefined') _type = 'iframe';
if(typeof _width === 'undefined') _width = "85%";
if(typeof _height === 'undefined') _height = "100%";
console.log(_url, _type, _width, _height);
$.colorbox({
//onOpen: function(){ krpano().call("trace(0, 'opening popup')"); },
//onClosed:function(){ krpano().call("trace(0, 'closing popup')"); },
width: _width,
height: _height,
iframe: _type == 'iframe',
href: _url
});
}
</script>
Display More
This is the content of the js folder:
and the 'gallerij2' folder:
With IE, the button doesn't react at all...
This is what you should see :
Can someone help me with this ??!
Thanks in advance !
=servaas=