You can't paste code that belongs OUTSIDE the <body> tags into an EZ-Page. Doing that causes you to end up with invalid HTML, and gives you a false sense of thinking you can just drop anything in without doing appropriate edits to suit the environment you're using.
So, some of the errors you need to fix include:
1. You've added a DOCTYPE inside your ez-page, which is wrong since one is already set by the Zen Cart template. Same with the other stuff you added, including your own extra <body> tag.
2. You've hard-coded additional content to refer to various javascript files. Don't do that. Stuff it into the jscript folder for the pages you want it to load on, and use the prescribed filenaming convention.
ie: if you look at the page source in your browser (yes, "View Source" is a handy tool), you'll see that Zen Cart is already putting this in for you:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title>home : Mark Marriott</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
[snip]
<base href="http://www.zentest.net/store/" />
<link rel="stylesheet" type="text/css" href="includes/templates/customstore/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/customstore/css/stylesheet_css_buttons.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/customstore/css/page20.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/customstore/css/print_stylesheet.css" />
<script type="text/javascript" src="includes/templates/customstore/jscript/jscript_jquery.js"></script>
<script type="text/javascript" src="includes/templates/customstore/jscript/jscript_jquery.nivo.slider.js"></script>
</head>
<body id="pageBody">
and then you're putting it all in all over again, and with wrong paths to non-existent js and css files:
Code:
<h1 id="ezPagesHeading">home</h1>
<div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>mark marriott</title>
<link href="page20.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.nivo.slider.js" type="text/javascript"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</head>
<body>
and more of your stuff here ....
and more inappropriate tags here:
</body>
</html>
3. In the actual HTML you put in your ez-page, the images you mention don't actually exist. Thus, it's not loading them. Thus your slider effect is malfunctioning.
Code:
<div id="slider">
<img src="Images/pic1.jpg" width="505" height="345" alt="pic1" />
<img src="Images/pic2.jpg" width="505" height="345" alt="pic2" />
<img src="Images/pic3.jpg" width="505" height="345" alt="pic3" />
</div>
Bookmarks