View Single Post
  #1  
Old 02-07-2011, 04:12 PM
 
ScrapbookSupplies ScrapbookSupplies is offline
 

eXpert
  
Join Date: Oct 2009
Location: Texas
Posts: 325
 

Default Adding tabs to welcome page

I am using Smart Template, it comes with a lot of js files.

On the main part of my website (the HTML side outside of xCart) I have an option for adding tabbed boxes (see pic), so I have the necessary js files and scripts to do this. I'm wanting to add these tabs to my xCart home page, but to do this as it is on the HTML part of the site I have to post the "link href" to the js file in the head of the document (welcome.tpl doesn't have a <head></head>). I added <head> tags along with the code when I attempted to put these tabs in; it seemed okay. But then I have to add this script to the page, and this is where I had a problem, it produces a smarty error.

PICTURE OF WHAT I AM TRYING TO ADD:

Click image for larger version

Name:	tabbed-menu-sample.jpg
Views:	215
Size:	52.1 KB
ID:	2427

CODE CAUSING PROBLEM:

HTML Code:
<script type="text/javascript"> // This script is for the accordion $(function() { $("#accordion").accordion({ autoHeight: false, collapsible: true, icons: {'header': 'ui-icon-plus', 'headerSelected': 'ui-icon-minus' } }); }); </script>

So, here's my problem. I really want to add these little tabs but am not sure how it can be done.

Anyone have any ideas? Anyone know of a mod that will let me do this? Anyone up for hire?

I'm stuck!!
Thanks,
__________________
(1) xCart
(1) xPayments

2-12-14 FOR SALE
Reply With Quote