-
AuthorPosts
-
March 14, 2011 at 11:39 pm #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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 15, 2011 at 2:59 am #381352Hi,
I viewed your website? But i don’t realize what you said. Can you explain more detail? A snapshot with comment is very helpfulMarch 15, 2011 at 5:35 am #381386Hi 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
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
March 15, 2011 at 8:40 am #381429Dear 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.
March 15, 2011 at 9:39 am #381443So the allign center is done by javascript.
It just looks a irritating for the eye when it takes a little second each time.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 16, 2011 at 4:30 am #381559Hi,
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" / -->
April 7, 2011 at 10:29 pm #385326Thanks 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
– libsIn layouts I can find header.php, but not with the code you talk about. Can you help me more?
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 10, 2011 at 12:39 pm #385601Hi,
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)); ?>
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 3 voices, and was last updated by khoand 13 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Moving Menu problem
Viewing 8 posts - 1 through 8 (of 8 total)