Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--[if IE 8]><html class="lt-ie10 lt-ie9"> <![endif]-->
- <!--[if IE 9]><html class="lt-ie10"> <![endif]-->
- <!--[if gt IE 9]><!--> <html> <!--<![endif]-->
- <head>
- <!--DO NOT REMOVE CREDIT-->
- <!--DO NOT REMOVE CREDIT-->
- <!--DO NOT REMOVE CREDIT-->
- <!--DO NOT REMOVE CREDIT-->
- <!--classes with view view-fifth are for the content you see on page load/hovering on content. Last view view-fifth class has comments on what to copy and paste and change for a new content box. Make sure to paste new coding for content box BEFORE the body tag-->
- <!--classes with popup_block are for the content that pops up when clicking the read more link. Last popup_block class has comments on what to copy and paste and change for a new content box. Make sure any new popup coding is placed AFTER the body tag-->
- <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"><img src="http://upload.wikimedia.org/wikipedia/commons/f/f8/Tooltip-CloseButton.png" class="btn_close" title="escape" alt="escape" /></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>
- <style>
- body{width:100%; overflow-x:hidden;}
- #container{
- width:100%;
- margin-top:10%;
- margin-left:5%;
- }
- #header{
- width:100%;
- font-family:poiret one;
- text-align:center;
- margin-top:10px;
- font-size:50px;
- }
- #nav{
- width:100%;
- text-align:center;
- font-family:poiret one;
- }
- #nav ul{
- list-style-type:none;
- }
- #nav ul li{
- display:inline-block;
- padding:5px;
- }
- #nav ul li a{
- text-decoration:none;
- color:#000000;
- }
- .view {
- width: 300px;
- height: 200px;
- margin: 10px;
- float: left;
- border: 10px solid #fff;
- overflow: hidden;
- position: relative;
- text-align: center;
- box-shadow: 1px 1px 2px #e6e6e6;
- cursor: default;
- background: #fff url(../images/bgimg.jpg) no-repeat center center
- }
- .view .mask, .view .content {
- width: 300px;
- height: 200px;
- position: absolute;
- overflow: hidden;
- top: 0;
- left: 0
- }
- .view img {
- display: block;
- position: relative;
- max-width:300px;
- }
- .view h2 {
- text-transform: uppercase;
- color: #fff;
- text-align: center;
- position: relative;
- font-size: 17px;
- padding: 10px;
- background: rgba(0, 0, 0, 0.8);
- margin: 20px 0 0
- }
- .view p {
- font-family: Georgia, serif;
- font-style: italic;
- font-size: 12px;
- position: relative;
- color: #fff;
- padding: 10px 20px 20px;
- text-align: center
- }
- .view a.info {
- display: inline-block;
- text-decoration: none;
- padding: 7px 14px;
- background: #000;
- color: #fff;
- text-transform: uppercase;
- box-shadow: 0 0 1px #000
- }
- .view a.info:hover {
- box-shadow: 0 0 5px #000
- }
- .view-fifth img {
- transition: all 0.3s ease-in-out;
- }
- .view-fifth .mask {
- background-color: rgba(146,96,91,0.3);
- transform: translateX(-300px);
- opacity: 0;
- transition: all 0.4s ease-in-out;
- }
- .view-fifth h2{
- background: rgba(255, 255, 255, 0.5);
- color: #000;
- box-shadow: 0px 1px 3px rgba(159, 141, 140, 0.5);
- opacity:0;
- }
- .view-fifth p{
- opacity: 0;
- color: #333;
- transition: all 0.2s linear;
- }
- .view-fifth:hover .mask {
- transform: translateX(0px);
- opacity:1;
- }
- .view-fifth:hover img {
- transform: translateX(300px);
- transition-delay: 0.1s;
- }
- .view-fifth:hover p{
- opacity: 1;
- transition-delay: 0.4s;
- }
- .view-fifth:hover h2{
- opacity:1;
- }
- #fade { /*--Transparent background layer--*/
- display: none; /*--hidden by default--*/
- background: #000;
- background-image: url('');
- position: fixed; left: 0; top: 0;
- width: 100%; height: 100%;
- opacity: .80;
- z-index: 9999;
- }
- .popup_block{
- display: none; /*--hidden by default--*/
- background: #fff;
- padding: 20px;
- border: 2px solid #ddd;
- float: left;
- font-size: 12px;
- position: fixed;
- top: 50%; left: 50%;
- z-index: 99999;
- /*--CSS3 Box Shadows--*/
- -webkit-box-shadow: 0px 0px 20px #000;
- -moz-box-shadow: 0px 0px 20px #000;
- box-shadow: 0px 0px 20px #000;
- /*--CSS3 Rounded Corners--*/
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
- border-radius: 10px;
- }
- img.btn_close {
- float: right;
- margin: -5px -5px 0 0;
- }
- /*--Making IE6 Understand Fixed Positioning--*/
- *html #fade {
- position: absolute;
- }
- *html .popup_block {
- position: absolute;
- }
- /* Custom CSS */
- {CustomCSS}
- </style>
- </head>
- <body>
- <div id="header">{Title}</div>
- <div id="nav">
- <ul>
- <li><a href="/home">INDEX</a></li>
- <li><a href="/ask">MESSAGE</a></li>
- <li><a href="#">LINK ONE</a></li>
- <li><a href="#">LINK TWO</a></li>
- <li><a href="http://www.slapdashthemes.tumblr.com">THEME</a>
- </ul>
- </div>
- <center>
- <div id="container">
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p><a href="#">Your Text</a></p>
- <a href="#?w=500" rel="02" class="poplight info">Read More</a>
- </div>
- </div>
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="03" class="poplight info">Read More</a>
- </div>
- </div>
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="04" class="poplight info">Read More</a>
- </div>
- </div>
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="05" class="poplight info">Read More</a>
- </div>
- </div>
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="06" class="poplight info">Read More</a>
- </div>
- </div>
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="07" class="poplight info">Read More</a>
- </div>
- </div>
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="08" class="poplight info">Read More</a>
- </div>
- </div>
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="09" class="poplight info">Read More</a>
- </div>
- </div>
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="10" class="poplight info">Read More</a>
- </div>
- </div>
- <!--Copy and paste code below for new section--> <!--Change rel number below to following number-->
- <div class="view view-fifth">
- <img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" />
- <div class="mask">
- <h2>Title</h2>
- <p>Your Text</p>
- <a href="#?w=500" rel="11" class="poplight info">Read More</a>
- </div>
- </div>
- <!--End copying for new section-->
- <!--Paste below-->
- </body>
- <div id="02" class="popup_block">
- <div style="font-size:20px; text-align:center;">Delicate</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="500"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <div id="03" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <div id="04" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <div id="05" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <div id="06" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <div id="07" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <div id="08" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <div id="09" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <div id="10" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <!--Copy and paste code below for new section--> <!--Change id number below to following number-->
- <div id="11" class="popup_block">
- <div style="font-size:20px; text-align:center;">TITLEE</div><br>
- <div style="float:left; padding:5px;"><img src="<!--DELETE AND PLACE IMAGE LINK HERE-->" width="300"></div>
- <!--PLACE INFO HERE-->
- </div></div>
- <!--End copying for new popup section-->
- <!--Paste below-->
- </div><!--END CONTAINER--></center>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement