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

insert an image over a menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-10-2005, 11:42 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default insert an image over a menu

I would like to insert an image over my current menu background; so the background image displays and the buttons appear on top of them?

Appreciate help?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 08-10-2005, 12:17 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Use CSS...take a look at menu.tpl and edit the class that references the table cell that has the menu contents. Take a look at the .button class for reference.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-10-2005, 12:59 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

when you referance the button class you mean button.tpl?

I tried coding inserting an image tag but I got a smarty error unrecognized syntax.

Here was the original code I used and I'll past what I insertend into the menu tpl file.

Original menu.tpl file

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD class="VertMenuBorder">
<TABLE border="0" cellpadding="1" cellspacing="1" width="100%">
<TR>

<TD class="VertMenuTitle">{$link_begin}[img]{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}[/img]{$link_end}
{if $link_href}
<FONT class="VertMenuTitle">{$menu_title}</FONT>
{else}
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT>
{/if}
</TD>
</TR>
<TR>
<TD class="VertMenuBox">
<TABLE border="0" cellpadding="5" cellspacing="0" width="100%" >

<TR>
<TD>{$menu_content}
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>



My modication is located at the bottom

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD class="VertMenuBorder">
<TABLE border="0" cellpadding="1" cellspacing="1" width="100%">
<TR>

<TD class="VertMenuTitle">{$link_begin}[img]{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}[/img]{$link_end}
{if $link_href}
<FONT class="VertMenuTitle">{$menu_title}</FONT>
{else}
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT>
{/if}
</TD>
</TR>
<TR>
<TD class="VertMenuBox">
<TABLE border="0" cellpadding="5" cellspacing="0" width="100%" >

<{$img_type} src="{$ImagesDir}/files/images/loginbglarge.gif">
<TR>
<TD>{$menu_content=}[img]{$ImagesDir}/files/images/loginbglarge.gif[/img]</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #4  
Old 08-10-2005, 01:27 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

No, not html...you need to use CSS. Take a look at skin1.css. the .button class in particular. It uses a background image, so you would need to do something similar for the .vertmenubox class.

Sounds like you need yourself a good CSS book
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-10-2005, 02:04 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I posted a background image tag in like you mentioned in css and it should be right over the username,password area but i cannot see nothing. Is their some background that needs to be transparent?
Location - Vertmenubox.


<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD class="VertMenuBorder">
<TABLE border="0" cellpadding="1" cellspacing="1" width="100%">
<TR>

<TD class="VertMenuTitle">{$link_begin}[img]{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}[/img]{$link_end}
{if $link_href}
<FONT class="VertMenuTitle">{$menu_title}</FONT>
{else}
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT>
{/if}
</TD>
</TR>
<TR>
<TD class="VertMenuBox">
<TABLE border="0" cellpadding="5" cellspacing="0" width="100%" background-image: url("file/images/loginbglarge.gif")>
<TR>
<TD>{$menu_content}
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>

__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #6  
Old 08-10-2005, 08:11 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I keyed background: instead of background-inage: but that didn't help any.
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #7  
Old 08-15-2005, 07:09 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

Can anyone help me on how to insert a background images in my menu.tpl?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #8  
Old 08-15-2005, 08:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Ok, you aren't listening to me This needs to be done in CSS, not html in the template. In skin1.css, in the .vertmenubox class, add this:

background-image: url(images/loginbglarge.gif)
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 12:42 PM.

   

 
X-Cart forums © 2001-2020