Adding new module position to the menu that drops on scroll?

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Apr 22, 2014 9:43 am
Reply with quote
Report this post
Hi,
I need to add a module position to the menu that shows on the top when you scroll the page down.

For easier illustration check this link (http://www.gorast.com/eusnov/) and see that I want the complete top to show in that position. Now only mainmenu and logo shows.

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Tue Apr 22, 2014 10:14 am
Reply with quote
Report this post
Hi

Do You mean to show new module in submenu box when mouse is over the menu option ? Here is an instruction for that: https://www.gavick.com/documentation/ge ... into-menu/
User avatar
Moderator

GK User
Tue Apr 22, 2014 10:25 am
Reply with quote
Report this post
Not exactly. Here is what I want.

When the page loads. It shows (in my case) TOP MENU (the blue circle) and the MAIN MENU (green circle).
Image

Now when you start scrolling down on the page, the TOP MENU disappear and only MAIN MENU stays.
Image

I want, both TOP MENU (there are actually 4 module positions on the top, above the main menu) and the MAIN MENU to show to the top when you scroll down the website.
User avatar
Platinum Boarder

teitbite
Thu Apr 24, 2014 1:06 pm
Reply with quote
Report this post
Hi

Ok. I'm not sure if this will work, but please try to copy in /layout/default.php this part (I think it's custom addon):

Code: Select all
<div id="gkNajgore">
<div class="moduletable menuNajgore">
<div class="moduletable izborJazik">
<div class="moduletable iBanka">
</div>


into the bottom part:

Code: Select all
<div id="gkFixedMenu" class="active">
<div class="gkPage">
<a id="gkLogoSmall" class="cssLogo" href="http://www.gorast.com/eusnov/">Еуростандард Банка А.Д. Скопје</a>
<div id="gkTopNav">
</div>
</div>


Of course I mean the php version which is responsible for this part. Looking at Your work I believe You have a knowledge to do this. If not than I'll need Your ftp access to try it myself.
User avatar
Moderator

GK User
Thu Apr 24, 2014 1:41 pm
Reply with quote
Report this post
That is the problem :D
The Fixed menu is created with a menu.js and I couldn't find a way to implement it.

You will have credentials in msg.

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Fri Apr 25, 2014 11:12 pm
Reply with quote
Report this post
Hi

Done.

I've added this to override.css:

Code: Select all
#gkFixedMenu {
    top: -110px;
}


and this to gk.menu.js

Code: Select all
    var gore = jQuery('#gkNajgore');

    if(gore.length > 0) {
       menuWrap.find('.gkPage').prepend(gore.clone(true));
    }
User avatar
Moderator

GK User
Fri Apr 25, 2014 11:35 pm
Reply with quote
Report this post
YES! You are the man! :D

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Sat Apr 26, 2014 10:58 pm
Reply with quote
Report this post
Hi

Yes I am :) Thank You. Took me a while to figure it out, but from the amount of code this looks easy, just to make You fill better. It wasn;t easy at all, I tried like 5 different solutions before I decided to modifie the orginal code.
User avatar
Moderator

GK User
Sun Apr 27, 2014 7:44 pm
Reply with quote
Report this post
teitbite wrote:Hi

Yes I am :) Thank You. Took me a while to figure it out, but from the amount of code this looks easy, just to make You fill better. It wasn;t easy at all, I tried like 5 different solutions before I decided to modifie the original code.


huh! 5 time! I tried 50 and couldn't make it. The html and php part I understand, the java thingy is a bearhole for me :D

Thanks again! :D
Gorast
User avatar
Platinum Boarder

teitbite
Tue Apr 29, 2014 8:03 pm
Reply with quote
Report this post
Hi

I remember me being allergic to javascript :), now I use it as often as possible :) Try jQuery. It's very easy for start.
User avatar
Moderator

GK User
Tue Apr 29, 2014 8:40 pm
Reply with quote
Report this post
teitbite wrote:Hi

I remember me being allergic to javascript :), now I use it as often as possible :) Try jQuery. It's very easy for start.


Yup, its on my "50 things (till today) I need to learn list" ;DD

Thanks,
Gorast
User avatar
Platinum Boarder


cron