Forum Moderators: open
However in IE there is no error message or anything but nothing actually loads at all. Can anyone explain why that would be and how I can make this code IE compatible?
Cheers & Thanks:
<SCRIPT Language="JavaScript">
function createCode(FileName)
{
/*
This function doesn't seem to work properly in IE (IE won't display a new Flash object) even though it doesn't have any errors.
*/
var arguments = createCode.arguments;
FileName = arguments[0];
var code = "<object width='700' height='600'>"+"<param name='movie' value='"+FileName+"'>"+"<embed src='"+FileName+"'"+"width='700'height='600'>"+"</embed>"+"</object>";
return code;
}
function showEngagement()
{
code = createCode('Engagement.swf');
document.getElementById("gallery").innerHTML = code;
}
function showBloopers()
{
code = createCode('bloopers.swf');
document.getElementById("gallery").innerHTML = code;
}
function showFamily()
{
code = createCode('family.swf');
document.getElementById("gallery").innerHTML = code;
}
</SCRIPT>
<body>
<h1>Pictures</h1>
<div width="700">
<a href="javascript:showEngagement()"><h3><u>Engagement</u></h3></a>
<a href="javascript:showFamily()"><h3><u>Family</u></h3></a>
<a href="javascript:showBloopers()"><h3><u>Bloopers</u></h3></a>
</div>