PHP Classes

File: Layouts/RightMenu.php

Recommend this page to a friend!
  Classes of Aleksey Nemiro   PHP ASP.NET WebForms   Layouts/RightMenu.php   Download  
File: Layouts/RightMenu.php
Role: Auxiliary data
Content type: text/plain
Description: Example script
Class: PHP ASP.NET WebForms
Emulation of ASP.NET WebForms engine in PHP
Author: By
Last change:
Date: 8 years ago
Size: 1,454 bytes
 

Contents

Class file image Download
<!--registration controls--> <?#Register Src="~/Controls/Header.php" TagPrefix="php" TagName="Header"?> <?#Register Src="~/Controls/Footer.php" TagPrefix="php" TagName="Footer"?> <!--//--> <!DOCTYPE html> <html xmlns:php="http://aleksey.nemiro.ru/php-webforms"> <head> <title></title> <meta name="viewport" content="width=device-width" /> <link rel="stylesheet" href="/Content/css/compiled.min.css" /> <script src="/Scripts/compiled.min.js" type="text/javascript"></script> <!--block of content "Head"--> <php:Head/> <!--//--> </head> <body> <!--Header control--> <php:Header ID="Header1" /> <!--//--> <div class="container"> <div class="col-xs-12 col-sm-10 col-md-10 col-lg-10"> <!--block of content "MainContent"--> <php:MainContent/> <!--//--> </div> <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2"> <!--block of content "RightMenu"--> <php:RightMenu/> <!--//--> </div> </div> <!--Footer control--> <php:Footer/> <!--//--> <script type="text/javascript"> $(document).scroll(function (e) { if ($('.col-md-2').position().top > $('#header').height() + 100) { return; } var scrollTop = $(document).scrollTop(); if (scrollTop > $('#header').height()) { $('#rightMenu').css('position', 'fixed'); $('#rightMenu').css('top', '20px'); } else { $('#rightMenu').css('position', 'relative'); } }); </script> </body> </html>