Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with script

Status
Not open for further replies.

oxicottin

Programmer
Jun 20, 2008
353
US
Hello, I am using Zencart and wanted to add a module to show a image at the bottom right of the screen and this image when clicked onto will open a link the module is to add Comodo SSL certificate but I wanted to alter the files so it just shows an image and when clicked it opens a link. I have no clue as to where to start. I don't want the mouse over and I have no clue as to how that even works :) Thanks!

Here is a link to the files if needed:

Code that is in the tpl_Main_page.php file:

Code:
<!-- Comodo code -->
<a href="[URL unfurl="true"]http://www.instantssl.com"[/URL] id="comodoTL">SSL</a>
<script language="JavaScript" type="text/javascript">
COT("[URL unfurl="true"]https://www.yoursite.com/images/cornertrust.gif",[/URL] "SC2", "none");
</script>
<!-- end Comodo code -->

Code that's in the jscript_comodocorner.php file:

Code:
<script language="javascript">
//<![CDATA[
var cot_loc0=(window.location.protocol == "https:")? "[URL unfurl="true"]https://secure.comodo.net/trustlogo/javascript/cot.js"[/URL] :
"[URL unfurl="true"]http://www.trustlogo.com/trustlogo/javascript/cot.js";[/URL]
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
</script>


Thanks,
SoggyCashew.....
 
This is a Java forum, not JavaScript...

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top