Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <! --- paste below <head> --- >
- <script type="text/javascript"
- src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
- <script>
- $(document).ready(function() {
- //
- $('a.poplight[href^=#]').click(function() {
- var popID = $(this).attr('rel'); //Get Popup Name
- var popURL = $(this).attr('href'); //Get Popup href to define size
- var query= popURL.split('?');
- var dim= query[1].split('&');
- var popWidth = dim[0].split('=')[1]; //Gets the first query string value
- $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"></a>');
- var popMargTop = ($('#' + popID).height() + 80) / 2;
- var popMargLeft = ($('#' + popID).width() + 80) / 2;
- //Apply Margin to Popup
- $('#' + popID).css({
- 'margin-top' : -popMargTop,
- 'margin-left' : -popMargLeft
- });
- $('body').append('<div id="fade"></div>');
- $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'})
- return false;
- });
- $('a.close, #fade').live('click', function() {
- $('#fade , .popup_block').fadeOut(function() {
- $('#fade, a.close').remove(); //fade them both out
- });
- return false;
- });
- });
- </script>
- <script>
- $(document).ready(function(){
- $("ul#tabs li").click(function(e){
- if (!$(this).hasClass("active")) {
- var tabNum = $(this).index();
- var nthChild = tabNum+1;
- $("ul#tabs li.active").removeClass("active");
- $(this).addClass("active");
- $("ul#tab li.active").removeClass("active");
- $("ul#tab li:nth-child("+nthChild+")").addClass("active");
- }
- });
- });
- </script>
- /* --- PASTE AFTER <style type="text/css"> --- */
- /* --- MENU START --- */
- .popup_block{
- display:none;
- background: url("");
- background:#fff;
- padding:20px;
- border:1px solid #eeeff2;
- float:left;
- height:317px;
- top:75%; left:57%;
- position:fixed;
- z-index: 99999;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- }
- *html #fade {position: absolute;}
- *html .popup_block {position: absolute;}
- #fade {
- display:none;
- position:fixed;
- left:0px;
- top:0px;
- width:100%;
- height:100%;
- z-index:9999;
- background: none;
- opacity: none;
- }
- #popheaders{
- width:300px;
- height:auto;
- padding:10px;
- font-size:15px;
- text-transform:normal;
- letter-spacing:1px;
- color:#fff;
- font-family: 'Dancing Script', cursive;
- text-shadow:0px 0px 5px #000;
- border: 3px double #fff;
- background: url('https://i.imgur.com/5L1kSTE.png');
- line-height:30%;
- }
- #popuptext {
- margin-top:-12px;
- margin-left:-15px;
- width:400px;
- height:293px;
- font-family: 'Scheherazade', serif;
- font-size:12px;
- color:#919191;
- overflow:scroll;
- text-align:justify;
- position:fixed;
- overflow-y padding:20px;
- }
- .poplinks {
- padding-top:5px;
- text-align:center;
- }
- .poplinks a {
- display:inline-block;
- width:120px; height:8px;
- margin:2px; padding:6px 6px 10px;
- text-align:center;
- font-family:'helvetica';
- font-size:11px;
- text-transform:uppercase;
- letter-spacing:1px;
- color:#eee; background:transparent;
- background-image:url('');
- border:1px dotted #eee;
- }
- .poplinks a:hover {
- display:inline-block;
- width:120px; margin:2px;
- padding:6px 6px 10px;
- text-align:center;
- font-family:times;
- font-size:11px;
- text-transform:normal;
- letter-spacing:1px;
- color:#eee;
- background:transparent
- }
- .buttons a {
- text-decoration:none;
- background: #fafafa;
- border:1px solid #919191;
- padding:10px;
- width:50px;
- margin-top:3px;
- margin-left:5px;
- display:inline-block;
- color:#fff;
- text-align:center;
- }
- .butons a:hover {
- background:#053355;
- background: #fafafa;
- border:1px solid #919191;
- color:#fff;
- -webkit-transition: all 0.3s ease-in-out;
- -moz-transition: all 0.3s ease-in-out;
- -o-transition: all 0.3s ease-in-out;
- -ms-transition: all 0.3s ease-in-out;
- transition: all 0.3s ease-in-out;
- }
- ul#tabs {
- list-style-type: none;
- padding: 0;
- text-align: center;
- font-size: 11px;
- letter-spacing:1px;
- }
- ul#tabs li {
- display: inline-block;
- background-color: transparent;
- border: 1px solid #eee;
- padding: 4px 12px;
- margin-bottom: 4px;
- color: #a4a4a4;
- cursor: pointer;
- }
- ul#tabs li:hover {
- background-color: #eee;
- }
- ul#tabs li.active {
- background-color: #eee;
- color: #eee;
- background-image:url('https://i.imgur.com/5L1kSTE.png');
- border: 1px solid #a4a4a4;
- }
- ul#tab {
- list-style-type: none;
- margin: 0;
- padding: 0;
- }
- ul#tab li {
- display: none;
- }
- ul#tab li.active {
- display: block;
- }
- a:link, a:active, a:visited {
- text-decoration: none;
- color: #919191;
- -moz-transition-duration:.6s;
- -webkit-transition-duration:.6s;
- -o-transition-duration:.6s;
- }
- a:hover {
- color: #919191;
- -moz-transition-duration:.6s;
- -webkit-transition-duration:.6s;
- -o-transition-duration:.6s;
- }
- /* --- MENU END --- */
- <a title="menu" href="#?w=370" rel="box1" class="poplight"><img src="https://i.imgur.com/lMEGVDy.png"></a>
- <div id="box1" class="popup_block">
- <ul id="tabs">
- <li class="active">Tab 1</li>
- <li>Title 2</li>
- <li>Tab 3</li>
- <li>Tab 4</li>
- <li>Tab 5</li>
- </ul>
- <div style="width:auto;height:335px;overflow:scroll;padding:5px;">
- <ul id="tab">
- <li class="active">
- <div id="popuptext">
- <center><div id="popheaders">Title</div></center>
- <p>Text Here</p>
- <center><div id="popheaders">Title</div></center>
- <p>Text Here</p>
- </li>
- <li>
- <div id="popuptext">
- <center><div id="popheaders">Title</div></center>
- <p>Text Here</p>
- <center><div id="popheaders">Title</div></center>
- <p>Text Here</p>
- </li>
- <li>
- <div id="popuptext">
- <center><div id="popheaders">Title</div></center>
- <p>Text Here.</p>
- <center><div id="popheaders">Title</div></center>
- <p>Text Here.</p>
- </li>
- <li>
- <div id="popuptext">
- <center><div id="popheaders">Title</div></center>
- <p>Text Here</p>
- </li>
- <li>
- <table>
- <tr>
- <td>
- <div class="buttons">
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- </div>
- </td>
- <td>
- <div class="buttons">
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- </div>
- </td>
- <td>
- <div class="buttons">
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- </div>
- </td>
- <td>
- <div class="buttons">
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- <a href="/">LINK</a>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </li>
- <li>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment