Hi Guys
I'm trying to insert a script into a sidebar.js file for my website.
The script shows basket quantity and subtotal.
I can insert it into a html page and it works fine but does not work when i insert it into the sidebar.js. I would like the basket on the sidebar rather than on the page itself. You can see how I want it to look here www.pwauk.com/test2.htm
This is the area i wish to insert the code.
[CODE]//
1ST NOTES AREA
if (notes1 == "yes") {
document.write('<fieldset><legend>');
document.write('Your Shopping Basket<br></legend>');
document.write('<div align="center"><img src="shopping_cart_2.gif" width="100" height="80"></div> <br><br> ');
document.write('Basket Qty:<br><br>');
document.write('Subtotal:<br><br>');
document.write('<a href="http://www.romancart.com/cart.asp?storeid=25978">View Basket & Checkout</a>');
document.write('</fieldset>');
document.write('<br><br><br>');
}
[CODE]
And the two lines i want to insert is
[CODE]
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.romancart.com/cartinfo.asp?storeid=25978&type=1"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.romancart.com/cartinfo.asp?storeid=25978&type=5"></SCRIPT>
[CODE]
Anyone got any ideas?
Thanks
Peter
Sorry, I think I've posted this in the wrong section!



Reply With Quote

Bookmarks