[SOLVED] Use thumbnails in menu

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
Lieke
Forum Members
Forum Members
Posts: 42
Joined: Thu Dec 06, 2007 12:47 pm
Location: The Netherlands

[SOLVED] Use thumbnails in menu

Post by Lieke »

Hello,

Is it possible to show thumbnails in a menu?
There is a possibility to choose a thumbnail in the page (in the option tab). I want to show this thumbnail as a tooltip when I click on the menutext.

This is the menu:

Code: Select all

{if $count > 0}
<ul id="menu2">
	{foreach from=$nodelist item=node}
	{if $node->depth > $node->prevdepth}
	{repeat string="<ul>" times=$node->depth-$node->prevdepth}
	{elseif $node->depth < $node->prevdepth}
	{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
	</li>
	{elseif $node->index > 0}</li>
	{/if}
	
	{if $node->current == true}
	<li class="currentpage fx"><a href="{$node->url}">{$node->menutext}</a>
	
	{elseif $node->parent == true}
	<li class="activeparent fx"><a href="{$node->url}">{$node->menutext}</a>
	
	{elseif $node->type == 'sectionheader'}
	<li class="sectionheader fx">{$node->menutext}
	
	{elseif $node->type == 'separator'}
	<li class="separator fx" style="list-style-type: none;"> <hr />
	
	{else}
	<li class="fx"><a href="{$node->url}" rel="{$node->thumbnail}">{$node->menutext}</a>
	
	{/if}
	
	{/foreach}
	{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}


But then I'm lost ???

Please, is there anyone here who can help?

Thanks
Last edited by Lieke on Mon May 20, 2013 3:56 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Use thumbnails in menu

Post by Dr.CSS »

Are you using a JS tooltip script or were you hoping it would just pop up on hover? most organic tooltips, text you see on hover, come from the a link title=...
User avatar
Lieke
Forum Members
Forum Members
Posts: 42
Joined: Thu Dec 06, 2007 12:47 pm
Location: The Netherlands

Re: Use thumbnails in menu

Post by Lieke »

Sorry I've forgot some details :-[
I use tiptip.
But it's working now (the problem were different jquery's)

Thanks
Post Reply

Return to “Layout and Design (CSS & HTML)”