Novosti:

Aktualne Joomla! verzije: 3.10.11 i 4.2.6

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Babaroga007

#1
Zna li neko kako ovo da napravim? Da fiksiram meni a prilikom scrollanja da ostane na vrhu. Postavio sam pitanje na glavnom forumu, međutim dobio sam neke upute ali prilično sam loš sa kodiranjem te ne mogu da inplementiram?  Ovo su upute sa foruma:

For the responsiveness, you will need to upload bootstrap.css file inside your template's css folder.
You can get the files from here: http://twitter.github.io/bootstrap/

After you upload them, you need to go to your template and open index.php file.
Paste this following script inside it.


<script>
      $(document).ready(function(){
         var aa=$('.navbar');
         $(window).scroll(function(){
            if($(this).scrollTop()>136){
               aa.addClass("navbar-fixed-top");
            }
            else{
               aa.removeClass("navbar-fixed-top");
            }
         });
      });
   </script>




Make sure that you include jquery in the head tag and it should be the first script to get loaded on your site so, it should be the first line after head tag.

Here, "navbar" is the class which is currently applied on your menubar, you can change it according to the class you have applied on your module. You can also use ids in this case instead of class, your choice (just use # instead of . when using id).

Now, inside your head tag, also include the path of the bootstrap css file you have just uploaded.

It is done, things should work now.

Pozdrav :)