Topic: I can't get the Spry Menu to work with SimpleViewer in IE
For some reason I can't get the menu bars to display in IE when using SimpleViewer. It works on all the other pages except the ones that I have the SimpleViewer in. I would love help.
Here is my code.
<!-- saved from url=(0014)about:internet -->
<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" />
<link rel="stylesheet" type="text/css" href="../karman.css">
<title>Karman Art and Design</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="SpryAssets/SpryMenuBarHorizontal2.css"/>
<script type="text/javascript">
function HttpRequest(url){
var pageRequest = false //variable to hold ajax object
/*@cc_on
@if (@_jscript_version >= 5)
try {
pageRequest = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try {
pageRequest = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e2){
pageRequest = false
}
}
@end
@*/
if (!pageRequest && typeof XMLHttpRequest != 'undefined')
pageRequest = new XMLHttpRequest()
if (pageRequest){ //if pageRequest is not false
pageRequest.open('GET', url, false) //get page synchronously
pageRequest.send(null)
embedpage(pageRequest)
}
}
function embedpage(request){
//if viewing page offline or the document was successfully retrieved online (status code=2000)
if (window.location.href.indexOf("http")==-1 || request.status==200)
document.write(request.responseText)
}
HttpRequest("navbar.html") //include "external.htm" onto current page
HttpRequest("navbar2.html") //include "external.htm" onto current page
</script>
</head>
<body>
<script type="text/javascript">
ajaxinclude("navbar.html")
ajaxinclude(rootdomain+"/includes/navbar.html")
ajaxinclude("navbar2.html")
ajaxinclude(rootdomain+"/includes/navbar2.html")
</script>
<div class="SecondTitle">Gallery</div>
<div class="viewer">
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player.
<a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
<script type="text/javascript">
var fo = new SWFObject("viewer.swf", "viewer", "800", "400", "4", "#000000");
fo.write("flashcontent");
</script>
</div>
</body>
</html>