Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Floating TrustLogo image on SSL Pages?


carmandp

Recommended Posts

Posted

I have been given this tag information from Comodo to add to my webpages and would like to add it to my secure pages. Which file/files should I add it to and where to get it to float. I want it located in the bottom right of the screen and it stays there as you scroll down the page.

 

Snippet 1: Copy/Paste the following piece of code and insert EXACTLY before your </HEAD> tag.

<script language="javascript" type="text/javascript">

var cot_loc0=(window.location.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>');

</script>

 

 

Snippet 2: Copy/Paste the following piece of code and insert EXACTLY before your </BODY> tag.

 

<script language="JavaScript">COT("http://carmandp.com/catalog/images/secure_site.gif", "SC2", "none");</script>

 

 

Thanks for your help. This site has been awesome for answering my questions but havn't been able to find information on this one.

 

Thank you,

 

Craig

Posted
I have been given this tag information from Comodo to add to my webpages and would like to add it to my secure pages. Which file/files should I add it to and where to get it to float. I want it located in the bottom right of the screen and it stays there as you scroll down the page.

 

Snippet 1: Copy/Paste the following piece of code and insert EXACTLY before your </HEAD> tag.

<script language="javascript" type="text/javascript">

var cot_loc0=(window.location.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>');

</script>

 

 

Snippet 2: Copy/Paste the following piece of code and insert EXACTLY before your </BODY> tag.

 

<script language="JavaScript">COT("http://carmandp.com/catalog/images/secure_site.gif", "SC2", "none");</script>

Thanks for your help. This site has been awesome for answering my questions but havn't been able to find information on this one.

 

Thank you,

 

Craig

 

Craig

I believe if you want to add this logo in the bottom right of every page, you just need to add it to the

column_right.php file. If you do not see the <HEAD> tag, you will need to create your own. it is very simple and basic HTML code.

 

Let me know if you need further assistance.

 

Amit

  • 1 year later...
Posted

Another way to add the floating logo, is to add the code below just before the </body> tag

 

<script>
if (!document.layers)
document.write('<div id="divStayTopRight" style="position:absolute">')
</script>

<layer id="divStayTopRight">

<!--EDIT BELOW CODE TO YOUR OWN CHOICE-->
<a target="_blank" href="http://www.comodo.com/"><img border="0" src="images/secure_site.gif" width="100" height="85"></a>
<!--END OF EDIT-->

</layer>

<script type="text/javascript">
/*
Floating Menu script-  Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"

if (!document.layers)
document.write('</div>')

function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 85; //change this to height of image
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	if(d.layers)el.style=el;
	el.sP=function(x,y){this.style.right=x;this.style.top=y;};
	el.x = startX;
	if (verticalpos=="fromtop")
	el.y = startY;
	else{
	el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
	el.y -= startY;
	}
	return el;
}
window.stayTopRight=function()
{
	if (verticalpos=="fromtop"){
	var pY = ns ? pageYOffset : document.body.scrollTop;
	ftlObj.y += (pY + startY - ftlObj.y)/8;
	}
	else{
	var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
	ftlObj.y += (pY - startY - ftlObj.y)/8;
	}
	ftlObj.sP(ftlObj.x, ftlObj.y);
	setTimeout("stayTopRight()", 10);
}
ftlObj = ml("divStayTopRight");
stayTopRight();
}
JSFX_FloatTopDiv();
</script>

 

I used a find and replace programme to add the above code in one hit.

____________________________________________________________________

____________________________________________________________________

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...