<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#panelHandle').on('mouseover', function () {
$('#sidePanel').stop(true, false).animate({ 'left': '0px' }, 900);
});
$('#sidePanel').on('mouseleave', function () {
$('#sidePanel').animate({ left: '-202px' }, 800);
});
});
</script>
<style type="text/css">
#sidePanel {
width: 250px;
position: fixed;
left: -202px;
top: 20%;
z-index: 9999;
}
#panelContent {
border-radius: 5px 0px 5px 5px;
float: left;
border: 1px solid #000000;
height: 300px;
width: 200px;
font-family: Verdana;
font-size: 11px;
word-wrap: break-word;
}
#panelHandle {
background-image: url('../images/TouchMe.png');
background-color: #cccccc;
height: 180px;
width: 40px;
border-radius: 0px 5px 5px 0px;
float: left;
cursor: pointer;
}
.divContent {
font-family: Verdana;
font-size: 11px;
padding-left: 10px;
padding-right: 10px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="sidePanel">
<div id="panelContent">
<div class="divContent">
<p>
Text goes here...
</p>
</div>
</div>
<div id="panelHandle">
</div>
</div>
</form>
</body>
</html>
No comments:
Post a Comment