test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • cuds Friend
    #161458

    Site almost done, but i’m having a problem with the menu

    When it loads it’s right allign, until it’s done and then it allright.

    Please take a look at these sites:

    http://cuds.dk/ (mine)
    http://humanwebsite.com.my/
    http://dynastydragon.com.my/

    Thanks

    khoand Friend
    #381352

    Hi,
    I viewed your website? But i don’t realize what you said. Can you explain more detail? A snapshot with comment is very helpful

    cuds Friend
    #381386

    Hi Khoand

    Its when the page is loaded, ore you go to other parts of the home page, then the menu always start at the right side and then after is centered on the page, and it´s every time you use the menu or load the page.

    Also one thing more is the Virtue mart, im using it for the shopping module, is there a way that it can be moved to the left side of the shop page ? ore is it to hard to update ?

    Best Regards

    CUDS


    1. homepage
    Sherlock Friend
    #381429

    Dear cuds,

    I think thst is not a problem,the top menu items were alligned center via the javascript and it was centered after your site was loaded completely.

    cuds Friend
    #381443

    So the allign center is done by javascript.

    It just looks a irritating for the eye when it takes a little second each time.

    khoand Friend
    #381559

    Hi,
    You try this way:
    – Open <joomla url>templatesja_noriteblocksheader.php file
    – Move this code (end of file)


    <script type="text/javascript">
    //update width for inner div of mainnav
    $('ja-mainnav').getElement('div').setStyle('width', $('ja-mainnav').getElement('div').getElement('ul').offsetWidth+10);
    </script>

    after

    <!-- jdoc:include type="menu" level="0" / -->

    cuds Friend
    #385326

    Thanks for your help khoand, but i can’t find the file you talk about.

    my structure is like this

    templatesja_norite

    – admin
    – css
    – element
    – html
    – images
    – js
    – layouts
    – libs

    In layouts I can find header.php, but not with the code you talk about. Can you help me more?

    khoand Friend
    #385601

    Hi,
    your norite for joomla 1.5. You try this way:
    – Delete this code in <joomla url>templatesja_noritelayoutsblockshead.php file


    <!--Update width for mainnav -->
    <script type="text/javascript">
    //<!]>
    </script>

    – Add this code into <joomla url>templatesja_noritelayoutsblocksmainnav.php file


    <script type="text/javascript">
    if ($E('#ja-mainnav .inner') && $E('#ja-mainnav ul').offsetWidth) {
    $E('#ja-mainnav .inner').setStyle ('width', $E('#ja-mainnav ul').offsetWidth + 5);
    }
    </script>

    after

    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam('startlevel',0), $this->getParam('endlevel',-1)); ?>

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 3 voices, and was last updated by  khoand 13 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum