Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Problem with horizontal navigation bar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-10-2005, 02:52 PM
 
Dowhatchalike Dowhatchalike is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 84
 

Default Problem with horizontal navigation bar

I am using a software that creates navigation bars. Somehow the x-cart is taking over the formatting of the bar when I add a hyperlink. I have created a new .tpl file head_nav.tpl and I call it directly after head.tpl. If I format the menu then upload it, if I add a hyperlink to the button, for some reason the formatting changes. Here is my code for head_nav.tpl

Code:
<head> <script language="JavaScript" type="text/javascript" src="http://www.nowperformance.com/shop/images/topbar_scr.js"> </script> </head> <body> <table id="m1mainSXMenu2" cellspacing="0" cellpadding="5" class="x1" border="0" width="800"> <tr align="left"> <td onmouseover="chgBg(m1,'m1tlm0',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm0',0,1)" id="m1tlm0" class="m1mit" bgcolor="#535353"> <a id="m1tlm0a" class="m1CL0" href="http://www.nowperformance.com/shop/customer/home.php" > <div class='topFold'>Home</div></a></td> <td onmouseover="chgBg(m1,'m1tlm1',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm1',0,1)" id="m1tlm1" class="m1mit" bgcolor="#535353">About Us</td> <td onmouseover="chgBg(m1,'m1tlm2',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm2',0,1)" id="m1tlm2" class="m1mit" bgcolor="#535353"> <a id="m1tlm2a" class="m1CL0" href="http://www.nowperformance.com/shop/customer/help.php?section=contactus&mode=update" > <div class='topFold'>Contact Us</div></a></td> <td onmouseover="chgBg(m1,'m1tlm3',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm3',0,1)" id="m1tlm3" class="m1mit" bgcolor="#535353">Shipping</td> <td onmouseover="chgBg(m1,'m1tlm4',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm4',0,1)" id="m1tlm4" class="m1mit" bgcolor="#535353">Payment Options</td> <td onmouseover="chgBg(m1,'m1tlm5',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm5',0,1)" id="m1tlm5" class="m1mit" bgcolor="#535353">Specials</td></tr></table> </body>

You can see how it is messed up at http://www.nowperformance.com/shop/customer/home.php . The buttons without hyperlinks look how I want them to, I cannot figure out how to fix this, can anyone help!
Reply With Quote
  #2  
Old 03-10-2005, 03:35 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

You need to edit the site.css style sheet or create a new one for the top bar there.
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #3  
Old 03-11-2005, 07:33 AM
 
Dowhatchalike Dowhatchalike is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 84
 

Default

I apologize for not listing this before but I am using version 3.5.14 . I do not think I have a site.css, or if so I cannot find it.....
Reply With Quote
  #4  
Old 03-11-2005, 07:42 AM
 
Dowhatchalike Dowhatchalike is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 84
 

Default

I was able to get the head_nav.tpl to use a seperate css file, however, the rest of the page also changes when I edit this css file. I am calling the new css file from within the head_nav.tpl .

So does anyone know how to disable css formatting for a particular piece of code, or any other solution to my problem ?
Reply With Quote
  #5  
Old 03-11-2005, 08:02 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,052
 

Default

Remove the "class" from your code.
e.g. class='topFold'
That way it will not use the css code.

Paul Dodman
e-business consultant
Lumino Internet
luminointernet.co.uk
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #6  
Old 03-11-2005, 09:36 AM
 
Dowhatchalike Dowhatchalike is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 84
 

Default

I need those class tags becasue that is what the javascript uses for formatting. I tried removing all of the class tags, and it made it in just plain text.

I am sure someone out there has done this before. The code I am using is directly from the software tool to make the navigation bar, so I can't really delete anything from the code....
Reply With Quote
  #7  
Old 03-14-2005, 08:10 AM
 
Dowhatchalike Dowhatchalike is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 84
 

Default

Well for anyone who cares, I removed the DIV from the very first part of the skin1.css file and it apeears to be working now. Apparently that DIV in the class file was taking over the javascripts formatting....

Not sure if it is going ot cause some other issues, but for now I am making progress by removing the DIV
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:45 PM.

   

 
X-Cart forums © 2001-2020