Zen Follower
- Join Date:
- Jul 2008
- Posts:
- 192
- Plugin Contributions:
- 0
Embed Javascript into ez page
I'm trying to embed the code below into an ez page but just can't get it to work. I have all the files in my root directory and it works fine in an html page...
This is the code as it appears in the .html page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- 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=utf-8" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="expires" content="Sun, Dec 31 1970 12:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache">
<title>BananAlbum</title>
<script type="text/javascript" src="res/scripts.js"></script>
<script type="text/javascript" src="res/swfobject.js"></script>
<link rel="stylesheet" href="res/styles.css" type="text/css" charset="utf-8"></link>
</head>
<body bgcolor="#eeeeee">
<!-- Rudin Swagerman -->
<!-- thegreatesthits.net -->
<!-- 2007 -->
<!-- BananAlbum.net -->
<div id="flashcontent">
<noscript>
<a href="http://www.bananalbum.com/go/enablejavascript/"><img src="res/PleaseEnableJavascript.gif"/></a>
</noscript>
<script type="text/javascript">
document.write("<a href=\"http://www.bananalbum.com/go/getflash/\"><img src=\"res/PleaseUpdateFlashPlayer.gif\"/></a>");
</script>
</div>
<script type="text/javascript">
// <![CDATA[
document.title = "Gallery";
bgcolor = "#eeeeee";
imgcolor = "#ffffff";
linecolor = "#000000";
txtcolor = "#000000";
respath = "res/";
var so = new SWFObject("res/BananAlbum.swf", "BananAlbum", "100%", "100%", "8", "#eeeeee");
so.addVariable("jalbum", "true");
so.addVariable("bgcolor", bgcolor.replace("#","0x"));
so.addVariable("imgcolor", imgcolor.replace("#","0x"));
so.addVariable("linecolor", linecolor.replace("#","0x"));
so.addVariable("txtcolor", txtcolor.replace("#","0x"));
so.addParam("allowFullScreen", "true");
so.write("flashcontent");
// ]]>
</script>
</body>
</html>
Help will be appreciated!