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: 5 years ago
Size: 1,454 bytes



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="">
		<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"-->
		<!--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"-->
			<div class="col-xs-12 col-sm-2 col-md-2 col-lg-2">
				<!--block of content "RightMenu"-->

		<!--Footer control-->

		<script type="text/javascript">
			$(document).scroll(function (e) {
				if ($('.col-md-2').position().top > $('#header').height() + 100)

				var scrollTop = $(document).scrollTop();
				if (scrollTop > $('#header').height()) {
					$('#rightMenu').css('position', 'fixed');
					$('#rightMenu').css('top', '20px');
				} else {
					$('#rightMenu').css('position', 'relative');

For more information send a message to info at phpclasses dot org.