PDA

View Full Version : QQ for code junkies


SsapS
06-24-2011, 09:52 PM
I'm a little lame when it comes to the 'lingo' of dreamweaver, but have been quite surprised at how well i can fudge through most of it.

However, I was just czeching out my .dwt with a validation tool, and it came up with 4 errors.

These can be found here: http://validator.w3.org/check?verbose=1&uri=http://autodiagcartdev.com/

The entire page code will be listed below

I read through these, but I havent been able to get through it.

#1
<script language="JavaScript" type="text/javascript">
function EJEJC_lc(th) { return false; }
</script>
<script type="text/javascript" src="https://www.e-junkie.com/ecom/box.js"></script>

So, the "function ejejc_lc(th)" is colored black in dreamweaver, so obviously, according to the validation notes, this needs to be on the body. However this is for my shopping cart, and was specifically told by a 'fat free shopping cart tutorial' to put it EXACTLY THERE !!! So I just cut and paste it into the body, upload, and BAM I get 6 more validation errors.

For the rest I'm not quite sure. I think its just editing or adding tags but I'm not sure which ones, as I'm in more of a 'wow someone told me to paste this ooooooooo cool" stage


<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css" media="all">
<!--
@import url("../Horsepower/styles.css");
-->
</style>
<!--[if IE 5]>
<style type="text/css">
#outerWrapper #contentWrapper #leftColumn1 {
width: 200px;
}
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css">
#outerWrapper #contentWrapper #content {
zoom: 1;
}
</style>
<![endif]-->
<script src="../Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<script language="JavaScript" type="text/javascript">
function EJEJC_lc(th) { return false; }
</script>
<script type="text/javascript" src="https://www.e-junkie.com/ecom/box.js"></script>
<body>


<div id="header">
<div id="logo">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="479" height="65" id="FlashID" title="Automotive Diagnostic Solutions">
<param name="movie" value="../Site Root/Images/Titlenew/Title.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you donít want users to see the prompt. -->
<param name="expressinstall" value="../Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="../Site Root/Images/Titlenew/Title.swf" width="479" height="65">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="../Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<div id="links">
<div align="left"><a href="../Site Root/About.html">About Us | Contact Us</a><a href="#"></a> | 1(720)291-7724 | <a href="https://www.e-junkie.com/ecom/fgb.php?c=cart&amp;cl=1&amp;ejc=2&amp;
merchant_id=your_google_merchant_id&amp;business="paulcallanan@hotmail.com" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="../Site Root/Images/Titlenew/cart/ViewCartButton.jpg" border="0" align="middle"></a></div>
</div>
<div class="clearFloat"></div>
</div>
<div id="outerWrapper">
<div id="gradient">
<div id="feature"></div>
<div id="nav" style="margin-bottom: 10px;">
<ul>
<li><a href="../Index.html">Home</a></li>
<li><a href="../Site Root/Products.html">Products</a></li>
<li><a href="http://forum.autodiagcart.com/">Forums</a></li>
<li></li>
<li><a href="../Site Root/Accessories.html">Accessories</a></li>
<li></li>
</ul>
<ul>
<li></li>
</ul>
<ul>
<li></li>
</ul>
</div>
<div id="contentWrapper">
<div id="leftColumn1">
<div id="leftColumnContent">
<h3>Monthly Deals !!!</h3>
<ul>
<li> <a href="../Site Root/Products/Scan Tools/VeDiSII.html">Autoland VeDiS II is out !</a> </li>
<li></li>
</ul>
</div>
</div>
<div id="content"><!-- TemplateBeginEditable name="Content" -->
<h1 align="center">Acura</h1>
<p align="left">We have three scan tools that we support for Acura, these are listed from top to bottom, top being the most recommended.s </p>
<p align="left">&nbsp;</p>
<h2 align="left">iScan-II from Autoland Scientech</h2>
<p align="left">&nbsp;</p>
<p align="left"><a href="../Site Root/Products/Scan Tools/iScanII.html"><img src="../Site Root/Images/iScan II/Autoland/iscan2-1/iSCAN-II leafre.jpg" alt="iScan-II" width="243" height="162" align="left" /></a></p>
<p align="left">iScan-II is our most versatile tool we have. With coverage up to 2011 this is our most recommended tool. <strong>The iScan II allows for OEM softwares to run through our tool to the car !</strong> </p>
<p align="left">&nbsp;</p>
<p align="left">&nbsp;</p>
<p align="left">&nbsp;</p>
<h2>VeDiS II from Autoland Scientech
</h2>
<p align="left"><a href="../Site Root/Products/Scan Tools/VeDiSII.html"><img src="../Site Root/Images/Vedis II/V2_HQFront Color.jpg" alt="VeDiS II" width="243" height="182" align="left" /></a></p>
<p align="left">&nbsp;</p>
<p align="left">VeDiS II offers the same great vehicle coverage we find on the iScan-II. this tool is ismilar to the iScan-II with different package opportunities and the same great vehicle coverage and friendly user interface !</p>
<p align="left">&nbsp;</p>
<p align="left">&nbsp;</p>
<p align="left">&nbsp;</p>
<h2 align="left">Diagnostics Online</h2>
<p align="left">&nbsp;</p>
<p align="left"><a href="../Site Root/Products/Scan Tools/DOL.html"><img src="../Site Root/Images/DOL/DOL+PCtst.jpg" alt="Diagnostics Online" width="243" height="157" align="left" /></a></p>
<p align="left">&nbsp;</p>
<p align="left">DOL or Diagnostics Online is the first online diagnostic system in the world ! Clear/Read Codes, Adaptations, Data Stream, SRI resets. </p>
<p align="left">&nbsp;</p>
<p align="left">&nbsp;</p>
<!-- TemplateEndEditable --></div>
<br class="clearFloat" />
</div>
<img src="http://www.justdreamweaver.com/templates/link/spacer.gif" width="1" height="1" />
<div id="footer">Copyright &copy; 2008 AutoDiagCart.com |<a href="../Site Root/Return.html"> Return Policy</a> |<a href="../Site Root/Privacy.html"> Privacy Policy</a><a href="#"></a></div>
<!--The following code must be left in place and unaltered for free usage of this theme. If you wish to remove the links, visit http://www.justdreamweaver.com/dreamweaver-template.html and purchase a template license.-->

</div>
</div><div id="credit"><a href="http://www.justdreamweaver.com/dreamweaver-templates.html">Dreamweaver templates</a> by <a href="http://www.justdreamweaver.com">JustDreamweaver.com</a></div>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>


Appreciate your time !

domedia
06-25-2011, 06:08 PM
There can be nothing between the closing HEAD and the opening BODY tag.
I doubt the tutorial told you to put it there, it's more likely there's some mis-communication somewhere.

All you have to do is move the SCRIPT tag above the closing HEAD tag and everything is fine.