Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

3rd level navigation disapears on mouse over
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: 3rd level navigation disapears on mouse over
#26205
Re:3rd level navigation disapears on mouse over 12 Years, 8 Months ago Karma: 0
any luck yet?
The administrator has disabled public write access.
 
#26206
Re:3rd level navigation disapears on mouse over 12 Years, 8 Months ago Karma: 760
This problem with custom modification. Replace the next code:

Code:


if (Ext.isIE) if (typeof(MooTools) != "undefined") if (typeof(MooTools.More) != "undefined") window.addEvent("domready", _menuInit); else Ext.onReady(_menuInit);



with the following one:

Code:


if (Ext.isIE) { if (typeof(MooTools) != "undefined") if (typeof(MooTools.More) != "undefined") window.addEvent("domready", _menuInit);} else {Ext.onReady(_menuInit);}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#26207
Re:3rd level navigation disapears on mouse over 12 Years, 8 Months ago Karma: 0
That did not see to work. Here is the entire page code

Code:

<?php
/*
 * ARI Ext menu
 *
 * @package ARI Ext Menu
 * @version 1.0.0
 * @author ARI Soft
 * @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved
 * @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
 * 
 */

AriKernel::import('Web.JSON.JSONHelper');

class AriExtMenuHelper
{
function loadAssets($loadExtJS = true)
{
static $loaded;

if ($loaded)
return ;

$rootUrl = JURI::root(true) . '/modules/mod_ariextmenu/mod_ariextmenu/';
$jsUrl = $rootUrl . 'js/';
$cssUrl = $rootUrl . 'js/css/';

$doc =& JFactory::getDocument();
$doc->addStyleSheet($cssUrl . 'menu.min.css');
$doc->addStyleSheet($cssUrl . 'menu.fix.css');
$doc->addCustomTag('<!--[if IE]><link rel="stylesheet" type="text/css" href="' . $cssUrl . 'menu.ie.min.css" /><![endif]-->');
if ($loadExtJS)
$doc->addScript($jsUrl . 'ext-core.js');
$doc->addScript($jsUrl . 'menu.min.js');
$doc->addCustomTag('<!--[if lt IE 8]><script type="text/javascript" src="' . $jsUrl . 'fix.js"></script><![endif]-->');

$loaded = true;
}

function initMenu($id, $params)
{
$loadExtJs = (bool)$params->get('loadExtJS', true);
$loadMethod = $params->get('loadMethod', 'ready');
AriExtMenuHelper::loadAssets($loadExtJs);

$defMenuConfig = array(
'direction' => 'horizontal',
'delay' => 0.2,
'autoWidth' => true,
'transitionType' => 'fade',
'transitionDuration' => 0.3,
'animate' => true
);

$config = array();
foreach ($defMenuConfig as $key => $defValue)
{
$value = AriUtils::parseValueBySample($params->get($key, $defValue), $defValue);
if ($value != $defValue) $config[$key] = $value;
}

$zIndex = intval($params->get('zIndex', -1), 10);
if ($zIndex > 0) $config['zIndex'] = $zIndex;

$doc =& JFactory::getDocument();
if ($loadMethod == 'load')
{
$doc->addScriptDeclaration(
sprintf('Ext.EventManager.on(window, "load", function() { new Ext.ux.Menu("' . $id . '", %1$s); Ext.get("' . $id . '").select(".ux-menu-sub").removeClass("ux-menu-init-hidden"); });',
AriJSONHelper::encode($config)));
}
else
{
$doc->addScriptDeclaration(
sprintf('(function() { var _menuInit = function() { new Ext.ux.Menu("' . $id . '", %1$s); Ext.get("' . $id . '").select(".ux-menu-sub").removeClass("ux-menu-init-hidden"); }; if (Ext.isIE) { if (typeof(MooTools) != "undefined") if (typeof(MooTools.More) != "undefined") window.addEvent("domready", _menuInit);} else {Ext.onReady(_menuInit);} window.addEvent("domready", _menuInit); else Ext.onReady(_menuInit); })();',
AriJSONHelper::encode($config)));
}

AriExtMenuHelper::addCustomStyles($id, $params);
}

function addCustomStyles($id, $params)
{
$styles = str_replace(array('{$id}'), array($id), $params->get('style'));
$styles .= sprintf('UL#%1$s LI A{font-size:%2$s;font-weight:%3$s;text-transform:%4$s;text-align:%5$s;}',
$id,
$params->get('fontSize', '12px'),
$params->get('fontWeight', 'normal'),
$params->get('textTransform', 'none'),
$params->get('textAlign', 'left'));

$bgColor = $params->get('bgColor');
if ($bgColor)
$styles .= sprintf('UL#%1$s LI A{background:%2$s none;}',
$id,
$bgColor);
$textColor = $params->get('textColor');
if ($textColor)
$styles .= sprintf('UL#%1$s LI A{color:%2$s;}',
$id,
$textColor);

$bgHoverColor = $params->get('bgHoverColor');
if ($bgHoverColor)
$styles .= sprintf('UL#%1$s LI A:hover,UL#%1$s LI A:focus,UL#%1$s LI A.ux-menu-link-hover{background:%2$s none;}',
$id,
$bgHoverColor);
$textHoverColor = $params->get('textHoverColor');
if ($textHoverColor)
$styles .= sprintf('UL#%1$s LI A:hover,UL#%1$s LI A:focus,UL#%1$s LI A.ux-menu-link-hover{color:%2$s;}',
$id,
$textHoverColor);

$bgCurrentColor = $params->get('bgCurrentColor');
if ($bgCurrentColor)
$styles .= sprintf('UL#%1$s LI A.current{background:%2$s none;}',
$id,
$bgCurrentColor);
$textCurrentColor = $params->get('textCurrentColor');
if ($textCurrentColor)
$styles .= sprintf('UL#%1$s LI A.current{color:%2$s;}',
$id,
$textCurrentColor);

$inheritMain = (bool)$params->get('inheritMain', true);
if (!$inheritMain)
{
$styles .= sprintf('UL#%1$s LI UL.ux-menu-sub A{font-size:%2$s;font-weight:%3$s;text-transform:%4$s;text-align:%5$s;}',
$id,
$params->get('sub_fontSize', '12px'),
$params->get('sub_fontWeight', 'normal'),
$params->get('sub_textTransform', 'none'),
$params->get('sub_textAlign', 'left'));

$bgColor = $params->get('sub_bgColor');
if ($bgColor)
$styles .= sprintf('UL#%1$s LI UL.ux-menu-sub A{background:%2$s none;}',
$id,
$bgColor);
$textColor = $params->get('sub_textColor');
if ($textColor)
$styles .= sprintf('UL#%1$s LI UL.ux-menu-sub A{color:%2$s;}',
$id,
$textColor);

$bgHoverColor = $params->get('sub_bgHoverColor');
if ($bgHoverColor)
$styles .= sprintf('UL#%1$s LI UL.ux-menu-sub A:hover,UL#%1$s LI UL.ux-menu-sub A:focus,UL#%1$s LI UL.ux-menu-sub A.ux-menu-link-hover{background:%2$s none;}',
$id,
$bgHoverColor);
$textHoverColor = $params->get('sub_textHoverColor');
if ($textHoverColor)
$styles .= sprintf('UL#%1$s LI UL.ux-menu-sub A:hover,UL#%1$s LI UL.ux-menu-sub A:focus,UL#%1$s LI UL.ux-menu-sub A.ux-menu-link-hover{color:%2$s;}',
$id,
$textHoverColor);

$bgCurrentColor = $params->get('sub_bgCurrentColor');
if ($bgCurrentColor)
$styles .= sprintf('UL#%1$s LI UL.ux-menu-sub A.current{background:%2$s none;}',
$id,
$bgCurrentColor);
$textCurrentColor = $params->get('sub_textCurrentColor');
if ($textCurrentColor)
$styles .= sprintf('UL#%1$s LI UL.ux-menu-sub A.current{color:%2$s;}',
$id,
$textCurrentColor);
}

if ($styles)
{
$doc =& JFactory::getDocument();
$doc->addStyleDeclaration($styles);
}
}
}




Can you fix and paste base so I can copy the entire page code?
The administrator has disabled public write access.
 
#26208
Re:3rd level navigation disapears on mouse over 12 Years, 8 Months ago Karma: 760
It seems it works now.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#26209
Re:3rd level navigation disapears on mouse over 12 Years, 8 Months ago Karma: 0
Yeah I just got done restoring the original file before I made the changes. Glad I made a copy. It does seem to work now.

Can you tell me how I extend the width of the subnavigation items? In both nav layer two and nav layer three.

If I want to go longer in width so I can avoid breaking the name in half, what css code do I need to use ?
Last Edit: 2012/03/11 19:25 By robthemanbob.
The administrator has disabled public write access.
 
#26210
Re:3rd level navigation disapears on mouse over 12 Years, 8 Months ago Karma: 760
Provide an image where we can see what do you want to achieve.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 123