Thursday, June 11, 2020

Slide In Navigational Bar in HTML and CSS

Here it the program written by my friend and fellow software engineer Sir Ernel. Thank you very much Sir Ernel for sharing your work to us.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/


Program Listing


<html>
<head>
 <title>Menu Bar - Hide/Show</title>
 <style type="text/css">
 #top_bg{
 position: absolute;
 top: 0; left: 0;
 width: 100%; height: 50px;
 background-color: green;
 }
 #bar_btn{
 position: absolute;
 top: 0; left: 0;
 font-family: Calibri;
 font-size: 26px; color: white;
 font-weight: bold;
 word-spacing: 2px;
 width: 200px; padding: 8px;
 text-indent: 30px;
 background-color: darkGreen;
 }
 #bar_btn:hover{
 color:lightGreen;
 cursor: pointer;
 }
 .txt{
 position: absolute;
 top: 12px; right: 50px;
 font-family: Calibri;
 font-size: 20px; color: yellow;
 font-weight: bold;
 word-spacing: 2px;
 }
 .title{
 position: absolute;
 top: 200px; left: 0;
 width: 100%; text-align: center;
 font-family: Times; font-size: 150px;
 font-weight: bold;
 cursor: default;
 }
 #start{
 position: absolute;
 top: 390px; left: 0;
 width: 18%; margin-left: 41%; margin-right: 41%;
 padding: 10px; text-align: center;
 font-size: 22px; opacity:0.6;
 font-family: calibri; color: white;
 border:none; border-radius:10px;
 background-color: green;
 }
 #start:hover{
 opacity: 0.8;
 cursor: pointer;
 }
 #navbar{
 position: fixed;
 top: 48px; left: 0;
 width: 300px; height: 100%;
 padding: 20px; display: none;
 background-color: darkGreen;
 animation-name: navbar;
 animation-duration: 3s;
 -webkit-animation-name: navbar;
 -webkit-animation-duration: 3s;
 -moz-animation-name: navbar;
 -moz-animation-duration: 3s;
 }
 @keyframes navbar{
 from{left: -500px;}
 to{left: 0;}
 }
 @-webkit-keyframes navbar{
 from{left: -500px;}
 to{left: 0;}
 }
 @-moz-keyframes navbar{
 from{left: -500px;}
 to{left: 0;}
 }
 .head{
 padding: 30px;
 font-family:cursive;
 font-size: 38px; color: white;
 cursor: default; text-align: center;
 width: 100%;
 }
 .links{
 background-color: green;
 color: white;
 padding: 10px;
 font-family: Calibri; word-spacing: 2px;
 font-size: 20px; opacity: 0.7;
 }
 .links:hover{
 background-color: white;
 border-right: solid;
 border-right-width: 6px;
 border-right-color: Orange;
 color: black; opacity: 0.9;
 font-weight: bold;
 cursor: pointer;
 }
 </style>
 <script type="text/javascript">
 function display(){
 var bar = document.getElementById("navbar");
 bar.style.display = 'block';
 }
 function hidebar(){
 var bar = document.getElementById("navbar");
 bar.style.display = 'none';
 }
 </script>
</head>
<body>
<div id="top_bg"></div>
<div id="bar_btn" onclick="display()">MENU</div>
<div class="txt">Google</div>
<font class="title">Google</font>
<div id="start" onclick="display()">Get Started</div>
<div id="navbar">
 <table style="width: 100%" cellspacing="10">
 <tr><td class="head" align="center"><b>Google</b></td></tr>
 <tr><td class="links">Open Gmail Account</td></tr>
 <tr><td class="links">Create Dev. Account</td></tr>
 <tr><td class="links">Veriify An Account</td></tr>
 <tr><td class="links">Work And Earn Online</td></tr>
 <tr><td class="links">Learning Sites Available</td></tr>
 <tr><td class="links">Google Aspects/Categories</td></tr>
 <tr><td class="links" onclick="hidebar()">x Close</td></tr>
 </table>
</div>
</body>
</html>


No comments:

Post a Comment