Advertisement
elisewhite

Navigation Page 02 - With Popups

Feb 8th, 2014
3,367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.15 KB | None | 0 0
  1. <head>
  2.  
  3. <link rel="shortcut icon" href="{Favicon}"/>
  4. <title>Navigation</title>
  5. <link href='http://fonts.googleapis.com/css?family=Raleway:500' rel='stylesheet' type='text/css'>
  6.  
  7. <!---------------------------------------------------------------------
  8. ----------------- THEME BY ELISE WHITE (MISSCAPALDI) ------------------
  9. ----------------------POPUP CODES BY FLANNELSAMMY----------------------
  10. -------- PLEASE DO NOT REMOVE THE CREDIT OR USE AS A BASE CODE --------
  11. ------------------- THANKS AND HAVE A LOVELY DAY ;) -------------------
  12. ---------------------------------------------------------------------->
  13.  
  14. <!------------- POPUP SCRIPT START -------------->
  15. <script type="text/javascript"
  16. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  17. <script>
  18. $(document).ready(function() {
  19. //
  20. $('a.poplight[href^=#]').click(function() {
  21. var popID = $(this).attr('rel');
  22. var popURL = $(this).attr('href');
  23. var query= popURL.split('?');
  24. var dim= query[1].split('&');
  25. var popWidth = dim[0].split('=')[1];
  26. $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"><img src="http://media.tumblr.com/b28c104906c576285505ca134600853a/tumblr_inline_mfp5cwdybL1qh7cpd.gif" class="btn_close" title="Close" alt="Close" /></a>');
  27. var popMargTop = ($('#' + popID).height() + 80) / 2;
  28. var popMargLeft = ($('#' + popID).width() + 80) / 2;
  29. $('#' + popID).css({
  30. 'margin-top' : -popMargTop,
  31. 'margin-left' : -popMargLeft
  32. });
  33. $('body').append('<div id="fade"></div>');
  34. $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn();
  35. return false;
  36. });
  37. $('a.close, #fade').live('click', function() {
  38. $('#fade , .popup_block').fadeOut(function() {
  39. $('#fade, a.close').remove();
  40. });
  41. return false;
  42. });
  43. });
  44. </script>
  45. <!-------------- POPUP SCRIPT END --------------->
  46.  
  47. <style type="text/css">
  48.  
  49. ::-webkit-scrollbar-thumb {
  50. height:auto;
  51. background-color:gray;
  52. }
  53.  
  54. ::-webkit-scrollbar {
  55. height:9px;
  56. width:1px;
  57. background-color:#FFFFFF;
  58. }
  59.  
  60. /*-------------- POPUP CSS START ---------------*/
  61. #fade {
  62. display: none;
  63. background: #000;
  64. position: fixed; left: 0; top: 0;
  65. width: 100%; height: 100%;
  66. opacity: .80;
  67. z-index: 9999;
  68. }
  69.  
  70. .popup_block{
  71.  
  72. display: none;
  73. background: #fff;
  74. height:auto;
  75. padding: 5px;
  76. border: 3px solid #ddd;
  77. text-align:center;
  78. float: left;
  79. font-size: 12px;
  80. position: fixed;
  81. top: 55%; left: 55%;
  82. z-index: 99999;
  83. -webkit-box-shadow: 0px 0px 20px #000;
  84. -moz-box-shadow: 0px 0px 20px #000;
  85. box-shadow: 0px 0px 20px #000;
  86. -webkit-border-radius: 2px;
  87. -moz-border-radius: 2px;
  88. border-radius: 2px;
  89. }
  90.  
  91. img.btn_close {
  92. float: right;
  93. margin: -2px -2px 0 0;
  94. }
  95.  
  96. *html #fade {
  97. position: absolute;
  98. }
  99.  
  100. *html .popup_block {
  101. position: absolute;
  102. }
  103. /*--------------- POPUP CSS END ----------------*/
  104.  
  105. #container {
  106. position:absolute;
  107. width:600px;
  108. height:500px;
  109. margin:auto;
  110. top:0;
  111. bottom:0;
  112. left:0;
  113. right:0;
  114. }
  115.  
  116. #sidebar {
  117. width:200px;
  118. height:500px;
  119. }
  120.  
  121. #image {
  122. width:200px;
  123. height:400px;
  124. }
  125.  
  126. #image img {
  127. width:200px;
  128. height:400px;
  129. }
  130.  
  131. #title {
  132. width:15px;
  133. margin-top:-240px;
  134. margin-left:170px;
  135. font-size:18px;
  136. font-family: 'Raleway', sans-serif;
  137. text-transform:uppercase;
  138. word-wrap:break-word;
  139. line-height:125%;
  140. text-align:center;
  141. color:#333333; /*---------TITLE COLOR---------*/
  142. }
  143.  
  144. #links a {
  145. display:inline-block;
  146. width:98px;
  147. margin-top:5px;
  148. background-color:#777777; /*--------LINK BG COLOR--------*/
  149. color:white; /*-------LINK TEXT COLOR-------*/
  150. line-height:255%;
  151. text-decoration:none;
  152. text-align:center;
  153. text-transform:uppercase;
  154. font-family:calibri;
  155. font-size:11px;
  156. letter-spacing:1px;
  157. -moz-transition-duration:0.5s;
  158. -webkit-transition-duration:0.5s;
  159. -o-transition-duration:0.5s;
  160. }
  161.  
  162. #links a:hover {
  163. background-color:#444444; /*-----LINK HOVER BG COLOR-----*/
  164. -moz-transition-duration:0.5s;
  165. -webkit-transition-duration:0.5s;
  166. -o-transition-duration:0.5s;
  167. }
  168.  
  169. #content {
  170. float:right;
  171. width:380px;
  172. height:500px;
  173. padding-right:10px;
  174. margin-top:-500px;
  175. overflow-y: scroll;
  176. overflow-x: hidden;
  177. border-right:1px solid gray;
  178. }
  179.  
  180. #content h1 {
  181. display:block;
  182. width:380px;
  183. margin-top:20px;
  184. text-decoration:none;
  185. font-family:calibri;
  186. color:#444444; /*-------TAG TITLE COLOR-------*/
  187. text-transform:uppercase;
  188. font-size:13px;
  189. font-weight:normal;
  190. letter-spacing:2px;
  191. line-height:150%;
  192. text-align:center;
  193. border-bottom:1px solid gray;
  194. }
  195.  
  196. #content h1 a {
  197. display:block;
  198. width:380px;
  199. margin-top:20px;
  200. background-color:white;
  201. text-decoration:none;
  202. font-family:calibri;
  203. color:#444444;
  204. text-transform:uppercase;
  205. font-size:13px;
  206. font-weight:normal;
  207. letter-spacing:2px;
  208. line-height:150%;
  209. text-align:center;
  210. }
  211.  
  212. #content h1 a:hover {
  213. background-color:white;
  214. letter-spacing:4px;
  215. color:#444444;
  216. }
  217.  
  218. #content a {
  219. display:inline-block;
  220. width:187px;
  221. margin-top:5px;
  222. background-color:#eaeae8; /*---------TAG BG COLOR--------*/
  223. color:#666666; /*--------TAG TEXT COLOR-------*/
  224. line-height:150%;
  225. text-decoration:none;
  226. text-align:center;
  227. text-transform:none;
  228. font-family:calibri;
  229. font-size:11px;
  230. letter-spacing:1px;
  231. -moz-transition-duration:0.7s;
  232. -webkit-transition-duration:0.7s;
  233. -o-transition-duration:0.7s;
  234. }
  235.  
  236. #content a:hover {
  237. background-color:#777777; /*------TAG HOVER BG COLOR-----*/
  238. color:white; /*-----TAG HOVER TEXT COLOR----*/
  239. -moz-transition-duration:0.7s;
  240. -webkit-transition-duration:0.7s;
  241. -o-transition-duration:0.7s;
  242. }
  243.  
  244. #popup {
  245. margin:20px 0px 20px 0px;
  246. }
  247.  
  248. #popup h1 {
  249. display:block;
  250. width:300px;
  251. text-decoration:none;
  252. font-family:calibri;
  253. color:#444444; /*-------TAG TITLE COLOR-------*/
  254. text-transform:uppercase;
  255. font-size:13px;
  256. font-weight:normal;
  257. letter-spacing:2px;
  258. line-height:150%;
  259. text-align:center;
  260. border-bottom:1px solid gray;
  261. }
  262.  
  263. #popup h1 a {
  264. display:block;
  265. width:300px;
  266. background-color:white;
  267. text-decoration:none;
  268. font-family:calibri;
  269. color:#444444;
  270. text-transform:uppercase;
  271. font-size:13px;
  272. font-weight:normal;
  273. letter-spacing:2px;
  274. line-height:150%;
  275. text-align:center;
  276. }
  277.  
  278. #popup h1 a:hover {
  279. background-color:white;
  280. letter-spacing:4px;
  281. color:#444444;
  282. }
  283.  
  284. #popup a {
  285. display:inline-block;
  286. width:300px;
  287. margin-top:10px;
  288. color:#666666; /*--------TAG TEXT COLOR-------*/
  289. line-height:150%;
  290. text-decoration:none;
  291. text-align:center;
  292. text-transform:none;
  293. font-family:calibri;
  294. font-size:11px;
  295. letter-spacing:1px;
  296. border-bottom:1px solid #DDDDDD;
  297. -moz-transition-duration:0.7s;
  298. -webkit-transition-duration:0.7s;
  299. -o-transition-duration:0.7s;
  300. }
  301.  
  302. #popup a:hover {
  303. border-bottom:1px solid #777777;
  304. background-color:#777777; /*------TAG HOVER BG COLOR-----*/
  305. color:white; /*-----TAG HOVER TEXT COLOR----*/
  306. letter-spacing:4px;
  307. -moz-transition-duration:0.7s;
  308. -webkit-transition-duration:0.7s;
  309. -o-transition-duration:0.7s;
  310. }
  311.  
  312. #credit {
  313. font-size:9px;
  314. font-family: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
  315. font-style:italic;
  316. letter-spacing:1px;
  317. }
  318.  
  319. #credit a {
  320. background-color:#fff;
  321. padding:5px;
  322. border-top:1px solid #e9e9e9;
  323. border-bottom:1px solid #e9e9e9;
  324. position:fixed;
  325. right:15px;
  326. bottom:10px;
  327. text-decoration:none;
  328. color:gray;
  329. -moz-transition-duration:1s;
  330. -webkit-transition-duration:1s;
  331. -o-transition-duration:1s;
  332. }
  333.  
  334. #credit a:hover {
  335. color:#fff;
  336. background-color:#747474;
  337. -moz-transition-duration:1s;
  338. -webkit-transition-duration:1s;
  339. -o-transition-duration:1s;
  340. }
  341.  
  342. </style>
  343.  
  344. <body>
  345.  
  346. <!--------------------------------------------
  347. CONTENT
  348. --------------------------------------------->
  349.  
  350. <div id="container">
  351.  
  352. <!------------- SIDEBAR -------------->
  353.  
  354. <div id="sidebar">
  355. <div id="image">
  356. <img src="https://31.media.tumblr.com/4978d8cc5ca2c065b0c7355ad378ae7a/tumblr_n0pkfkKyUs1rv5n8go1_400.png"> <!---URL OF SIDEBAR PICTURE--->
  357. <div id="title">Navigation</div>
  358. </div>
  359. <div id="links">
  360. <a href="/">Home</a>
  361. <a href="/about">About</a>
  362. <a href="/ask">Message</a>
  363. <a href="/submit">Submit</a>
  364. <a href="/tagged/answered">Answered</a>
  365. <a href="http://tumblr.com/dashboard">Dash</a>
  366. </div>
  367. </div>
  368.  
  369. <!-------------- TAGS --------------->
  370.  
  371. <!-----------------------------------
  372. SOME OF THE LINKS BELOW ARE FOR
  373. POPUPS AND SOME ARE FOR NORMAL
  374. LINKS.
  375. FOR NORMAL LINKS, YOU'LL ONLY
  376. HAVE TO CHANGE THE TEXT WITHIN
  377. THE <A> TAG. FOR POPUPS, YOU'LL
  378. NEED TO MAKE SURE THE NUMBER
  379. (01, 02, ETC.) CODING FOR THE
  380. LINK IS THE SAME NUMBER CODED
  381. FOR THE ASSOCIATED POPUP BOX
  382. BELOW.
  383. YOU CAN COPY AND PASTE EACH
  384. TYPE OF LINK OR TITLE TO HAVE
  385. AS MANY OR AS LITTLE AS YOU'D
  386. LIKE :)
  387. ------------------------------------>
  388.  
  389. <div id="content">
  390. <h1>Tag Title Here</h1>
  391. <a href="#?w=300" rel="01" class="poplight">Click Me!</a>
  392. <a href="#?w=300" rel="02" class="poplight">Click Me!</a>
  393. <a href="/">Link Here</a>
  394. <a href="/">Link Here</a>
  395. <h1>Tag Title Here</h1>
  396. <a href="#?w=300" rel="03" class="poplight">Click Me!</a>
  397. <a href="#?w=300" rel="04" class="poplight">Click Me!</a>
  398. <a href="/">Link Here</a>
  399. <a href="/">Link Here</a>
  400. </div>
  401.  
  402. </div>
  403.  
  404. <!--------------------------------------------
  405. POPUP BOXES
  406. --------------------------------------------->
  407.  
  408. <!------------- BOX 01 -------------->
  409.  
  410. <div id="01" class="popup_block"><div id="popup">
  411. <h1>Tag Title Here</h1>
  412. <a href="/">Link Here</a>
  413. <a href="/">Link Here</a>
  414. <a href="/">Link Here</a>
  415. <a href="/">Link Here</a>
  416. <a href="/">Link Here</a>
  417. <a href="/">Link Here</a>
  418. </div></div>
  419.  
  420. <!------------- BOX 02 -------------->
  421.  
  422. <div id="02" class="popup_block"><div id="popup">
  423. <h1>Tag Title Here</h1>
  424. <a href="/">Link Here</a>
  425. <a href="/">Link Here</a>
  426. <a href="/">Link Here</a>
  427. <a href="/">Link Here</a>
  428. <a href="/">Link Here</a>
  429. <a href="/">Link Here</a>
  430. </div></div>
  431.  
  432. <!------------- BOX 03 -------------->
  433.  
  434. <div id="03" class="popup_block"><div id="popup">
  435. <h1>Tag Title Here</h1>
  436. <a href="/">Link Here</a>
  437. <a href="/">Link Here</a>
  438. <a href="/">Link Here</a>
  439. <a href="/">Link Here</a>
  440. <a href="/">Link Here</a>
  441. <a href="/">Link Here</a>
  442. </div></div>
  443.  
  444. <!------------- BOX 04 -------------->
  445.  
  446. <div id="04" class="popup_block"><div id="popup">
  447. <h1>Tag Title Here</h1>
  448. <a href="/">Link Here</a>
  449. <a href="/">Link Here</a>
  450. <a href="/">Link Here</a>
  451. <a href="/">Link Here</a>
  452. <a href="/">Link Here</a>
  453. <a href="/">Link Here</a>
  454. </div></div>
  455.  
  456. <!--------------------------------------------
  457. CREDIT - YOU MAY EDIT BUT YOU MAY NOT REMOVE
  458. --------------------------------------------->
  459.  
  460. <div id="credit"><a href="http://misscapaldi.tumblr.com">elise white</a></div>
  461.  
  462. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement