Advertisement
trotsig

splash-page-template.php

Mar 29th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Splash Template
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  8. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  9. <script src= "http://sfpontona.se/wp/wp-content/themes/pontona_bones/library/js/libs/jquery.backstretch.min.js"></script>
  10. <script language="JavaScript">
  11.  
  12.  
  13.  
  14.  
  15. var backImage = new Array();
  16.  
  17.  
  18. backImage[0] = "http://sfpontona.se/wp/images/main.jpg";
  19. backImage[1] = "http://sfpontona.se/wp/images/produkter.jpg";
  20. backImage[2] = "http://sfpontona.se/wp/images/nyheter.jpg";
  21. backImage[3] = "";
  22.  
  23. function changeBGImage(whichImage){
  24. if (document.body){
  25. document.body.style.backgroundImage = $.backstretch(backImage[whichImage],{speed: 1000});
  26. }
  27. }
  28.  
  29.  
  30. </script>
  31.  
  32. <link rel="stylesheet" type="text/css" href="http://sfpontona.se/wp/wp-content/themes/startuppro-child/style.css">
  33.  
  34.  
  35. </head>
  36.  
  37. <body>
  38. <script>
  39. $.backstretch("http://sfpontona.se/wp/images/main.jpg");
  40. </script>
  41.  
  42. <STYLE type="text/css">
  43.  
  44.  
  45. /* hide the title */
  46. #site-title a, #site-title h1 a, #site-title h1{display:none;}
  47.  
  48. /* hide the container too */
  49. #container {background:transparent; margin-top:-500px;}
  50.  
  51. /* send the menu to the top of the page */
  52.  
  53. header{top:0; width:1000px; position: fixed; z-index:9999;}
  54.  
  55.  
  56. ul#floating {
  57. width:950px;
  58. display:inline-block;
  59. clear:left;
  60. /* float:left; */
  61. list-style:none;
  62. margin:0;
  63. padding:0;
  64. position:absolute;
  65. left: 50%;
  66. text-align:center;
  67. top: 75%;
  68.  
  69. }
  70.  
  71. #floating li {
  72. right:50%;
  73. text-align:center;
  74. position:relative;
  75. margin: 0;
  76. padding: 0;
  77. list-style: none;
  78. white-space: nowrap;
  79.  
  80. display:inline-block;
  81. background: -moz-linear-gradient(top, rgba(0,0,0,0.20) 100%, rgba(0,0,0,0) 0%); /* FF3.6+ */
  82. background: -webkit-gradient(linear, left top, left bottom, color-stop(100%,rgba(0,0,0,0.20)), color-stop(0%,rgba(0,0,0,0))); /* Chrome,Safari4+ */
  83. background: -webkit-linear-gradient(top, rgba(0,0,0,0.20) 100%,rgba(0,0,0,0) 0%); /* Chrome10+,Safari5.1+ */
  84. background: -o-linear-gradient(top, rgba(0,0,0,0.20) 100%,rgba(0,0,0,0) 0%); /* Opera 11.10+ */
  85. background: -ms-linear-gradient(top, rgba(0,0,0,0.20) 100%,rgba(0,0,0,0) 0%); /* IE10+ */
  86. background: linear-gradient(to bottom, rgba(0,0,0,0.20) 100%,rgba(0,0,0,0) 0%); /* W3C */
  87. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */
  88.  
  89.  
  90. }
  91. #floating li a:link,a:visited
  92. {
  93. /* display:inline; */
  94. font-size: 1.5em;
  95. font-family: Arial, sans-serif;
  96. font-weight:500;
  97. color:#eee;
  98.  
  99. text-align:center;
  100. padding: 5px 20px;
  101. text-decoration:none;
  102. text-transform:uppercase;
  103.  
  104. }
  105. #floating li a:hover,a:active
  106. {
  107. background-color:transparent;
  108. -webkit-transition: background-color 0.25s ease-in;
  109. -moz-transition: background-color 0.25s ease-in;
  110. -o-transition: background-color 0.25s ease-in;
  111. transition: background-color 0.25s ease-in;
  112. }
  113. #floating a:link,a:visited
  114. {
  115. /* display:inline; */
  116. font-size: 1.5em;
  117. font-family: Arial, sans-serif;
  118. font-weight:500;
  119. color:#eee;
  120. background-color:transparent;
  121. text-align:center;
  122. padding: 5px 20px;
  123. text-decoration:none;
  124. text-transform:uppercase;
  125.  
  126. }
  127. #floating a:hover,a:active
  128. {
  129. background-color:transparent;
  130. -webkit-transition: background-color 0.25s ease-in;
  131. -moz-transition: background-color 0.25s ease-in;
  132. -o-transition: background-color 0.25s ease-in;
  133. transition: background-color 0.25s ease-in;
  134. }
  135.  
  136. #full-screen-background-image {
  137. z-index: -999;
  138. min-height: 100%;
  139. min-width: 1024px;
  140. width: 100%;
  141. height: auto;
  142. position: fixed;
  143. top: 0;
  144. left: 0;
  145. }
  146. </style>
  147. <div id = "first">
  148.  
  149. <div id= "second" class="center">
  150. <span>
  151. <ul id="floating">
  152. <li id="floating"><a id="floating" href="http://sfpontona.se/wp/?page_id=1466" onMouseOver="javascript:changeBGImage(0)">Det viktigaste</a></li>
  153. <li id="floating"><a id="floating" href="http://sfpontona.se/wp/?page_id=150" onMouseOver="javascript:changeBGImage(1)">Produkter</a> </li>
  154. <li id="floating"><a id="floating" href="http://sfpontona.se/wp/?page_id=148" onMouseOver="javascript:changeBGImage(2)">Nyheter</a></li>
  155. </ul>
  156. </span>
  157.  
  158.  
  159. </div> <!-- end #second -->
  160.  
  161.  
  162. </div> <!-- end #first -->
  163.  
  164.  
  165. </div> <!-- end #content -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement