Hey yellow,
Obviously, you are super multi-tasking.
Actually, this is simpler than that.
I want to update the mod. for installing a Comodo Corner of Trust.
So far, this has been done by hacking into the files.
You can see the solutions that have been implemented by clicking on the link that misty provided.
That solution is incorrect and doesn't follow the guidelines for javascript in Zen Cart.
You should be able to load these scripts dynamically and unobtrusively, i.e. without modifying core Zen cart files at all.
I have achieved this for the header part, by loading the following in includes/templates/CUSTOM/jscript/jscript_comodocorner.js
//<![CDATA[
var cot_loc0=(window.ocation.protocol == "https:")? https://secure.comodo.net/trustlogo/javascript/cot.js" :
"http://www.trustlogo.com/trustlogo/javascript/cot.js";
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
that's how I got rid of the hack to html_header.php.
Please note that I used the Zen Cart convention: there are no <script> tags, Zen Cart will put them in for you.
Also, the file has to be named in a certain way: jscript_XXX.js
Now, I am looking for help on the body part.
I know that within same jscript folder I have to create another on_load folder and put in there a file named on_load_comodocorner.js
This file has to have an on_load function (which can be called anything you like, of course).
This is what this function needs to load:
<a href="http://www.instantssl.com" id="comodoTL">SSL</a>
<script language="JavaScript" type="text/javascript">
COT("images/cornertrust.gif", "SC2", "none");
</script>
So here are my questions:
1) Should I leave off the <script> tags?
2) How do I load the anchor tag?
A suggestion on how to write the function would be much appreciated.
Thanks for the great support.





