Newbie here! I am having trouble adding HTML code to the product thumbnail & detail view. I have a current website using another shopping cart program and I am migrating to x-cart. The code works fine on my home page and other shopping cart.
I don't know if I am using the correct syntax since I am unfamiliar to the smarty templates. I'm not sure if I need to include the <html> beggining and ending tags </html>. I'm not sure if I should paste this code prior to the smarty code or at the end.
Basically, I can't find a topic in the forum (Unless I'm not looking in the right area) regarding where and how to place HTML in templates?
I have attached the code below which I am trying to add. The code basically disables the right click option to save to disk if the user is over an image on the page. It also eliminates the auto save option when the mouse hovers over a image.
Any help would be greatly appreciated.
HTML Code:
<html>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<script language="JavaScript1.2">
/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit
http://www.dynamicdrive.com
*/
var clickmessage="Copyright б╘ 2003 Wireless Concepts"
function disableclick(e)
if (document.all)
if (event.button==2||event.button==3)
if (event.srcElement.tagName=="IMG")
alert(clickmessage);
return false;
}
}
}
else if (document.layers)
if (e.which == 3)
alert(clickmessage);
return false;
}
}
else if (document.getElementById)
if (e.which==3&&e.target.tagName=="IMG")
alert(clickmessage)
return false
}
}
}
function associateimages()
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>
</html>