当前位置:   article > 正文

HTML 网页表白,520

网页表白

共有三款表白,闲yu 更优惠,搜索neo表白,另外还可以提供部署服务,生成您的专属链接。

效果1 :

效果2:

效果3:

 

  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <title>唯美 </title>
  5. <meta name="keywords" content=" ">
  6. <meta name="description" content=" ">
  7. <meta name="author" content="www.">
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
  10. <link rel="shortcut icon" href="index/images/favicon.ico">
  11. <link rel="stylesheet" href="css/jquery.fancybox-1.3.4.css" type="text/css" media="screen">
  12. <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
  13. <link href="css/prettyPhoto.css" rel="stylesheet" />
  14. <script type="text/javascript" src="js/jquery.min.js" ></script>
  15. <script type="text/javascript" src="js/content_switch.js"></script>
  16. <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
  17. <script type="text/javascript" src="js/jquery.mousewheel.js"></script>
  18. <script type="text/javascript" src="js/jquery-ui.js"></script>
  19. <script type="text/javascript" src="js/cScroll.js"></script>
  20. <script src="js/jquery.cycle.all.latest.js" type="text/javascript"></script>
  21. <script src="js/jquery.color.js" type="text/javascript"></script>
  22. <script type="text/javascript" src="js/script.js"></script>
  23. <script type="text/javascript" src="js/functions.js"></script>
  24. <script src="js/prettyPhoto.js"></script>
  25. <!--[if lt IE 9]>
  26. <script type="text/javascript" src="./js/html5.js"></script>
  27. <link rel="stylesheet" href="./css/ie.css" type="text/css" media="all">
  28. <![endif]-->
  29. <!--[if lt IE 8]>
  30. <div style=' clear: both; text-align:center; position: relative;'>
  31. <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a>
  32. </div>
  33. <![endif]-->
  34. <body onpaste="return false" ondragstart="return false" onmouseover="window.status='';return true" oncopy="return false;">
  35. <frameset> <frame src="index.html"> </frameset>
  36. <script>
  37. function stop(){
  38. alert('宝贝,我爱你!');
  39. return false;
  40. }
  41. document.oncontextmenu=stop;
  42. </script>
  43. <body onselectstart="return false" onpaste="return false" oncopy="return false;"
  44. oncut="return false;" >
  45. </a>
  46. <script>
  47. function checkhtml5()
  48. {
  49. if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
  50. document.body.innerHTML="<div style=' clear: both; text-align:center; position: relative; height: 50px; margin-top: 30px; padding: 20px; background-color: red; color: white; font-size:20px;'>你的浏览器非常落后,不支持 HTML5!<br/>请使用 Chrome 14+/IE 9+/Firefox 7+/Safari 4+ 其中任意一款浏览器访问此页面。</a></div>";
  51. }
  52. }
  53. </script>
  54. <style>
  55. a.wb_sina {
  56. float:left;
  57. margin-top:20px;
  58. margin-left:15px;
  59. display:inline-block;
  60. padding:4px 10px;
  61. border-radius:3px;
  62. background-color:#e55345;
  63. background-image:-moz-linear-gradient(top,#e96249,#e03c40);
  64. background-image:-ms-linear-gradient(top,#e96249,#e03c40);
  65. background-image:-webkit-gradient(linear,0 0,0 100%,from(#e96249),to(#e03c40));
  66. background-image:-webkit-linear-gradient(top,#e96249,#e03c40);
  67. background-image:-o-linear-gradient(top,#e96249,#e03c40);
  68. background-image:linear-gradient(top,#e96249,#e03c40);
  69. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e96249',endColorstr='#e03c40',GradientType=0);
  70. background-repeat:repeat-x;
  71. text-shadow:0 -1px 0 rgba(0,0,0,.5);
  72. border:1px solid #cf2b28;
  73. color:#fff!important;
  74. box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 1px 0 rgba(0,0,0,.2);
  75. }
  76. a.wb_sina:hover {
  77. background-image:-moz-linear-gradient(top,#e03c40,#e96249);
  78. background-image:-ms-linear-gradient(top,#e03c40,#e96249);
  79. background-image:-webkit-gradient(linear,0 0,0 100%,from(#e03c40),to(#e96249));
  80. background-image:-webkit-linear-gradient(top,#e03c40,#e96249);
  81. background-image:-o-linear-gradient(top,#e03c40,#e96249);
  82. background-image:linear-gradient(top,#e03c40,#e96249);
  83. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e03c40',endColorstr='#e96249',GradientType=0);
  84. }
  85. a.wb_sina span {
  86. display:inline-block;
  87. vertical-align:-5px;
  88. margin-right:7px;
  89. height:20px;
  90. width:24px;
  91. background:url(./images/weibo.png) no-repeat;
  92. }
  93. a.wb_tencent {
  94. float:left;
  95. margin-top:20px;
  96. margin-left:15px;
  97. display:inline-block;
  98. padding:4px 10px;
  99. border-radius:3px;
  100. background-color:#0e7fcc;
  101. background-image:-moz-linear-gradient(top,#1288d4,#0771c1);
  102. background-image:-ms-linear-gradient(top,#1288d4,#0771c1);
  103. background-image:-webkit-gradient(linear,0 0,0 100%,from(#1288d4),to(#0771c1));
  104. background-image:-webkit-linear-gradient(top,#1288d4,#0771c1);
  105. background-image:-o-linear-gradient(top,#1288d4,#0771c1);
  106. background-image:linear-gradient(top,#1288d4,#0771c1);
  107. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#1288d4',endColorstr='#0771c1',GradientType=0);
  108. background-repeat:repeat-x;
  109. text-shadow:0 -1px 0 rgba(0,0,0,.5);
  110. border:1px solid #0D6EB8;
  111. color:#fff!important;
  112. box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 1px 0 rgba(0,0,0,.2);
  113. }
  114. a.wb_tencent:hover {
  115. background-color:#0e7fcc;
  116. background-image:-moz-linear-gradient(top,#0771c1,#1288d4);
  117. background-image:-ms-linear-gradient(top,#0771c1,#1288d4);
  118. background-image:-webkit-gradient(linear,0 0,0 100%,from(#0771c1),to(#1288d4));
  119. background-image:-webkit-linear-gradient(top,#0771c1,#1288d4);
  120. background-image:-o-linear-gradient(top,#0771c1,#1288d4);
  121. background-image:linear-gradient(top,#0771c1,#1288d4);
  122. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0771c1',endColorstr='#1288d4',GradientType=0);
  123. }
  124. a.wb_tencent span {
  125. display:inline-block;
  126. vertical-align:-5px;
  127. margin-right:7px;
  128. height:20px;
  129. width:24px;
  130. background:url(./images/weibo.png) no-repeat 0 -20px;
  131. }
  132. #abox
  133. {
  134. position: fixed;
  135. _position: absolute;
  136. right: 15px;
  137. z-index: 99999999;
  138. }
  139. </style>
  140. </head>
  141. <body onLoad="checkhtml5()">
  142. <div id="abox">
  143. </div>
  144. <div class="page_spinner">
  145. <div></div>
  146. </div>
  147. <div class="over">
  148. <div class="centre">
  149. <div class="main">
  150. <!--header -->
  151. <header>
  152. <h1><span id="logo"><img src="images/logo1.png" alt="" usemap="#logo"></span></h1>
  153. <nav class="menu">
  154. <ul id="menu">
  155. <li id="nav1"><img src="images/nav1.png" alt=""><span>爱的宣誓</span></li>
  156. <li id="nav2"><img src="images/nav2.png" alt=""><span>恋爱历程</span> </li>
  157. <li id="nav3"><img src="images/nav3.png" alt=""><span>絮叨絮叨</span></li>
  158. <li id="nav4"><img src="images/nav4.png" alt=""><span>祝福我们</span></li>
  159. <li id="nav5"><img src="images/nav5.png" alt=""><span>爱的映像</span></li>
  160. <li id="nav6"><img src="images/nav6.png" alt=""><span>时光沙漏</span></li>
  161. </ul>
  162. </nav>
  163. <img src="images/spacer.gif" alt="" id="navigation" usemap="#navigation">
  164. <map name="navigation" class="navigation">
  165. </map>
  166. <map name="logo" class="map_logo"></map>
  167. </header>
  168. <!--header end-->
  169. <!--content -->
  170. <map name="back" class="map_back"></map>
  171. <article id="content">
  172. <ul>
  173. <li id="page_Home">
  174. <img src="images/bg_content.png" alt="" class="bg_cont">
  175. <span class="back"><img src="images/nav1.png" alt="" usemap="#back"><a href="index.html#close">返回</a></span>
  176. <div class="pad">
  177. <h2>爱的宣誓</h2>
  178. 人物:浟佳 &amp; 宝贝<br />
  179. 不在乎曾经拥有,只在乎天长地久。<br />
  180. 爱,就要说出来!<br />
  181. 再美好的回忆,也只是回忆;<br />
  182. 再美丽的诺言,不到实现的那一刻,也只是一句空话。<br/>
  183. -- </div>
  184. </li>
  185. <li id="page_About">
  186. <img src="images/bg_content.png" alt="" class="bg_cont">
  187. <span class="back"><img src="images/nav2.png" alt="" usemap="#back"><a href="index.html#close">返回</a></span>
  188. <div class="pad">
  189. <h2>恋爱历程</h2>
  190. <div class="relative">
  191. <div class="scroll">
  192. <span>人物:浟佳 &amp; 宝贝</span>
  193. <p>&nbsp;&nbsp;&nbsp;&nbsp;宝贝你还记得么?</p>
  194. <p>&nbsp;&nbsp;&nbsp;&nbsp;XX年X月X日。</p>
  195. <p>&nbsp;&nbsp;&nbsp;&nbsp;我们在xx相遇。</p>
  196. <p>&nbsp;&nbsp;&nbsp;&nbsp;然后.........</p>
  197. <p>&nbsp;&nbsp;&nbsp;&nbsp;过程.........</p>
  198. <p>&nbsp;&nbsp;&nbsp;&nbsp;我爱你,我会一直陪在你身边</p>
  199. <p>&nbsp;&nbsp;&nbsp;&nbsp;不离不弃</p>
  200. <p>&nbsp;&nbsp;&nbsp;&nbsp; - </p>
  201. </div>
  202. </div>
  203. </div>
  204. </li>
  205. <li id="page_Talk">
  206. <img src="images/bg_content.png" alt="" class="bg_cont">
  207. <span class="back"><img src="images/nav3.png" alt="" usemap="#back"><a href="index.html#close">返回</a></span>
  208. <div class="pad">
  209. <h2>絮叨絮叨</h2>
  210. <div class="relative">
  211. <div class="scroll">
  212. <div style="width:100%;float: left; border-bottom: 1px solid #CCCCCC;">浟佳<br/><span style="float: right"> --by </span></div>
  213. <div style="width:100%;float: left">分享我所知道的<br/><span style="float: right"> --by </span></div>
  214. </div>
  215. </div>
  216. </div>
  217. </li>
  218. <li id="page_Message">
  219. <img src="images/bg_content.png" alt="" class="bg_cont">
  220. <span class="back"><img src="images/nav4.png" alt="" usemap="#back"><a href="index.html#close">返回</a></span>
  221. <div class="pad">
  222. <h2>祝福我们</h2>
  223. <div class="relative">
  224. <div class="scroll">
  225. <div style="min-height: 300px; padding-bottom: 50px;">
  226. <!-- 多说评论框 start -->
  227. <div class="ds-thread" data-thread-key="yyu" data-title="bb" data-url="http://"></div>
  228. <!-- 多说评论框 end -->
  229. <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
  230. <script type="text/javascript"> var duoshuoQuery = {short_name:"love90"}; (function() { var ds = document.createElement('script'); ds.type = 'text/javascript';ds.async = true; ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '/static.duoshuo.com/embed.js'; ds.charset = 'UTF-8'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds); })(); </script>
  231. <!-- 多说公共JS代码 end -->
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </li>
  237. <li id="page_Blog">
  238. <img src="images/bg_content.png" alt="" class="bg_cont">
  239. <span class="back"><img src="images/nav5.png" alt="" usemap="#back"><a href="index.html#close">返回</a></span>
  240. <div class="pad">
  241. <h2>爱的映像</h2>
  242. <div class="relative">
  243. <div class="scroll">
  244. <ul class="gallery fancybox">
  245. <li style="line-height:120px"><a href="images/uploadimage/imglsh001.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/imglsh001small.jpg" alt=""></a></li>
  246. <li style="line-height:120px"><a href="images/uploadimage/imglsh002.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/imglsh002small.jpg" alt=""></a></li>
  247. <li style="line-height:120px"><a href="images/uploadimage/img003.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/img003small.jpg" alt=""></a></li>
  248. <li style="line-height:120px"><a href="images/uploadimage/imglsh001.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/imglsh001small.jpg" alt=""></a></li>
  249. <li style="line-height:120px"><a href="images/uploadimage/imglsh002.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/imglsh002small.jpg" alt=""></a></li>
  250. <li style="line-height:120px"><a href="images/uploadimage/img003.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/img003small.jpg" alt=""></a></li>
  251. <li style="line-height:120px"><a href="images/uploadimage/img004.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/img004small.jpg" alt=""></a></li>
  252. <li style="line-height:120px"><a href="images/uploadimage/imglsh002.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/imglsh002small.jpg" alt=""></a></li>
  253. <li style="line-height:120px"><a href="images/uploadimage/img003.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/img003small.jpg" alt=""></a></li>
  254. <li style="line-height:120px"><a href="images/uploadimage/img004.jpg" rel="prettyPhoto[gallery1]"><img src="images/uploadimage/img004small.jpg" alt=""></a></li>
  255. </ul>
  256. </div>
  257. </div>
  258. </div>
  259. </li>
  260. <li id="page_Time">
  261. <img src="images/bg_content.png" alt="" class="bg_cont">
  262. <span class="back"><img src="images/nav6.png" alt="" usemap="#back"><a href="index.html#close">返回</a></span>
  263. <div class="pad">
  264. <h2>时光沙漏</h2>
  265. <div id="loveHeart" style="margin-top: 30px;font-size: 25px;">
  266. <span style="">宝贝你知道我爱你爱了多久了吗?</span>
  267. <div id="elapseClock" style="margin: 10px 0px 10px 0px;"></div>
  268. <img src="images/1.gif" />    <img src="images/2.gif" /><br/><br/>
  269. <div id="loveu">
  270. 爱:从2014-2-6开始!<br/>
  271. <div class="signature" style="float: right; margin-right: 50px;">by 浟佳 </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </li>
  277. </ul>
  278. </article>
  279. <!--content end-->
  280. </div>
  281. </div>
  282. <div class="bg1">
  283. <div class="main">
  284. <!--footer -->
  285. <footer style="line-height:20px">
  286. <div id="copyright">
  287. <a href="" target=_blank></a> <a
  288. href="" target=_blank></a> <script
  289. language="JavaScript"></script>
  290. </object>
  291. </div>
  292. <!-- {%FOOTER_LINK} -->
  293. </footer>
  294. <!--footer end-->
  295. </div>
  296. </div>
  297. </div>
  298. <script>
  299. $(window).load(function() {
  300. $('.page_spinner').fadeOut();
  301. $('body').css({overflow:'visible'});
  302. })
  303. </script>
  304. <script type="text/javascript">//修改时光沙漏时间
  305. var offsetX = $("#loveHeart").width() / 2;
  306. var offsetY = $("#loveHeart").height() / 2 - 55;
  307. var together = new Date();
  308. together.setFullYear(2014, 02, 06);
  309. together.setHours(17);
  310. together.setMinutes(0);
  311. together.setSeconds(0);
  312. together.setMilliseconds(0);
  313. setTimeout(function () {
  314. adjustWordsPosition();
  315. startHeartAnimation();
  316. }, 3000);
  317. timeElapse(together);
  318. setInterval(function () {
  319. timeElapse(together);
  320. }, 500);
  321. adjustCodePosition();
  322. $("#code").typewriter();
  323. </script>
  324. <audio id="bgmMusic" src="http://www.51mp3ring.com/51mp3ring_com2/at200611121582079026.mp3" preload="auto" type="audio/mp3" autoplay loop></audio>
  325. <!--coded by koma-->
  326. <!--LIVEDEMO_00 -->
  327. </div>
  328. </body>
  329. </html>

  1. /* Left & Right alignment */
  2. .left { float:left;}
  3. .right { float:right;}
  4. .wrapper {width:100%; overflow:hidden;}
  5. .relative{ position:relative;}
  6. /* Global properties ======================================================== */
  7. body{ background: url(../images/bg.jpg) no-repeat top center; border:0; font:12px 'Droid Sans', sans-serif; color:#939090; line-height:21px; min-width:946px; overflow:hidden}
  8. .css3{border-radius: 8px; -moz-border-radius: 8px; -webkit-border-radius: 8px; box-shadow: 0 0 4px rgba(0, 0, 0, .4); -moz-box-shadow: 0 0 4px rgba(0, 0, 0, .4); -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, .4); position: relative;}
  9. .page_spinner{ position:absolute;background: url(../images/bg.gif) ; z-index:99; width:100%; height:100%; top:0; left:0}
  10. .page_spinner div{ position:absolute;background: url(../images/loader.gif) 50% 50% no-repeat;width:100%; height:100%; top:0; left:0}
  11. .left_block{ float:left; width:220px; background:#fff;}
  12. /* Global Structure ============================================================= */
  13. .main { margin: 0 auto; width: 946px; position:relative; }
  14. .centre{margin-top:0; position:relative;}
  15. body, html{ height:100%;}
  16. .over{ position:relative; width:100%; overflow:hidden;min-height:100%; height:auto !important;}
  17. .bg1{ position:absolute; left:0; width:100%; height:64px; background:url(../images/bg_footer.png) 0 0 repeat-x; bottom:0}
  18. /* ============================= main layout ====================== */
  19. a{ color:#939090; text-decoration: none; outline:none}
  20. a:hover{}
  21. h1{ position:absolute; top:184px; left:329px; z-index:10}
  22. h2{ font:30px 'Amatic SC', cursive; line-height:1.2em; padding:0 0 24px 0; color:#3e3434; text-align:center; letter-spacing:-3px; font-weight:bold; text-shadow:0 0 #3e3434; font-family:"微软雅黑"}
  23. h2 span{ display:block; font-size:24px; color:#766f6f; line-height:1.2em; letter-spacing:-1px; text-shadow:0 0 #766f6f; padding-bottom:4px;}
  24. p{ padding-bottom:18px;}
  25. /* ============================= header ====================== */
  26. header{}
  27. #logo{ display:block;}
  28. #logo img{ position:relative; top:25px; left:25px}
  29. .menu{}
  30. #menu {}
  31. #menu > li { position:absolute;}
  32. #menu > li > img{ position:relative; z-index:6; top:15px; left:15px;}
  33. #menu > li > span{ position: absolute; width:145px; top:82px; color:#fff; text-align:center; left:15px; text-shadow:1px 1px rgba(0,0,0,.2); z-index:9}
  34. #nav1{ top:105px; left:304px;}
  35. #nav2{ top:239px; left:230px;}
  36. #nav3{ top:372px; left:304px;}
  37. #nav4{ top:372px; left:458px;}
  38. #nav5{ top:239px; left:536px;}
  39. #nav6{ top:105px; left:458px;}
  40. #navigation{ position:absolute; z-index:12; top:120px; left:245px; height:424px; width:451px;}
  41. .submenu{ position:absolute; top:113px; left:-98px; z-index:13;}
  42. .submenu ul{ background:url(../images/bg_submenu.gif) repeat; padding:16px 5px; width:122px; position:relative; border-radius: 20px; -moz-border-radius: 20px; -webkit-border-radius: 20px;}
  43. .submenu li{ line-height:40px; position:relative;}
  44. .submenu a{ position:relative; color:#fff; display:block; padding:0 23px;}
  45. .submenu img{ position:absolute; width:100%; height:0; top:20px; left:0}
  46. /* ============================= content ====================== */
  47. #content{ height:636px; padding-bottom:64px;}
  48. #content > ul > li{ position:relative; left:225px; top:27px; width:100%;}
  49. .bg_cont{ position:absolute; top:0; left:0; z-index:1}
  50. .pad{ position:relative; z-index:2; left:94px; top:110px; width:388px; height:430px; font-size: 16px; line-height: 32px;}
  51. .link1{ position:relative;}
  52. .link1 span{ position: absolute; bottom:0; left:0; width:0; height:1px;}
  53. .back{ position:absolute; top:212px; left:163px; z-index:6}
  54. .back img{ position: relative; top:15px; left:15px;}
  55. .back a{ position:absolute; top:85px; left:15px; color:#fff; text-align:center; width:145px; text-shadow:1px 1px rgba(0,0,0,.4)}
  56. .color1{ color:#3e3434}
  57. .pad_bot1{ padding-bottom:12px;}
  58. .pad_left1{ padding-left:35px;}
  59. .marg_right1{ margin-right:20px;}
  60. #icons{ padding-top:28px; text-align:center}
  61. #icons li{ display:inline-block; margin-top:-12px; margin-right:5px;}
  62. #icons a{ display:block; position:relative;}
  63. #icons .img_act{ position:absolute; top:0; left:0}
  64. .scroll{height:308px; width:362px; overflow:hidden;}
  65. .track{ width:22px; height:287px; padding:24px 0; top:28px !important; left:366px !important; background: url(../images/scroll_track.jpg) 0 0 no-repeat}
  66. .shuttle{ width:16px; height:16px; background: url(../images/scroll_drag.png) 0 0 no-repeat; margin-left:3px;}
  67. ._up-butt, ._down-butt{ height:0px !important;}
  68. .gallery{}
  69. .gallery li{ float:left; margin-bottom:13px; margin-right:14px;}
  70. .gallery a{ display:block; position:relative;}
  71. .gallery .last{ margin-bottom:0;}
  72. .gallery span{ position:absolute; top:0; left:0; background:url(../images/border1.png) 0 0 no-repeat; width:100%; height:100%;}
  73. .comments{ float:right; margin-left:20px; line-height:26px; margin-top:7px;}
  74. .comments strong{ float:left; margin-right:2px; background:url(../images/bg_comments.png) 0 0 no-repeat; color:#fff; width:40px; text-align:center; font-weight:normal}
  75. .date{ float:left; width:41px; height:34px; background:#ececec; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; line-height:16px; color:#3e3434; padding:3px 0; text-transform:uppercase; text-align:center; margin-right:14px;}
  76. .blog{ width:100%; height:260px; overflow:hidden; margin-bottom:15px}
  77. .next, .prev{ float:left; color:#3e3435; line-height:24px; padding:0 7px; margin-right:9px; margin-left:10px; background-color:#ececec; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; position:relative;}
  78. .prev{ margin-left:15px;}
  79. .pagin{ float:left;}
  80. .pagin a{ float: left; font-size:11px; width:24px; line-height:24px; color:#1b1b1b; text-align:center; margin-left:1px; margin-right:1px;background-color:#ececec; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; position:relative;}
  81. .google_map{width:384px; height:303px; position:relative; z-index:1; background:#fff; margin-bottom:21px;border-radius: 8px; -moz-border-radius: 8px; -webkit-border-radius: 8px; overflow:hidden;}
  82. .col1{ width: 164px; float:left;}
  83. /* ============================= footer ====================== */
  84. footer { color:#000000; padding-top:21px;}
  85. footer a{ color:#000000}
  86. footer a:hover{}
  87. .social{ float:right;}
  88. .social li{ float:left; margin-right:9px; padding-right:10px; background:url(../images/footer_line.gif) right 6px no-repeat}
  89. .social .last{ background:none; margin-right:0; padding-right:0}
  90. .social a{ position:relative;}
  91. .social span{ position: absolute; bottom:0; left:0; width:0; height:1px;}
  92. /* ============================= forms ============================= */
  93. #ContactForm{}
  94. #ContactForm .wrapper{ overflow:inherit; min-height:40px;}
  95. #ContactForm .success{ padding-bottom:15px; display:none}
  96. #ContactForm label{ position:relative;min-height:22px; display: inline-block;}
  97. #ContactForm .message{ height:222px;}
  98. #ContactForm span{ display:block}
  99. #ContactForm .error, #ContactForm .empty{ font-size:10px; color:#4d820a; line-height:14px; display:none; width:100%}
  100. #ContactForm a{ margin-left:20px; float:right;}
  101. #ContactForm .input { margin:0;width:181px; height:15px; background: none; padding:3px 10px;color:#474747; font:13px "Trebuchet MS", Arial, Helvetica, sans-serif;}
  102. #ContactForm textarea { overflow: auto; margin:0;resize:none}
  103. #ContactForm .bg{ background:#fff; border-top:1px solid #c2c2c2; border-left:1px solid #c2c2c2; position:relative;border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; display:inline-block;}
  104. /* ============================= forms ============================= */
  105. #ContactForm{ position:relative;}
  106. #ContactForm .wrapper{ overflow:inherit; min-height:50px;}
  107. #ContactForm .success{ display:none; position:absolute; bottom:0; left:0; color:#fff}
  108. #ContactForm label{ position:relative;min-height:34px; display: inline-block;}
  109. #ContactForm .message{ height:97px;}
  110. #ContactForm span{ display:block}
  111. #ContactForm .error, #ContactForm .empty{ font-size:10px; color:#fff; line-height:14px; display:none; width:100%}
  112. #ContactForm a{ margin-left:20px; float:right;}
  113. #ContactForm .input { margin:0;width:282px; height:16px; padding:8px;color:#727272; font:13px Arial, Helvetica, sans-serif;}
  114. #ContactForm textarea { overflow: auto; margin:0;resize:none;width:594px; height:58px; padding:8px;color:#727272; font:13px Arial, Helvetica, sans-serif;}
  115. #ContactForm .bg{ display:inline-block;}
  116. #ContactForm .pad_left1{ padding-left:12px;}
  117. #ContactForm .col1{ width:300px;}
  118. #ContactForm {
  119. padding:0;
  120. }
  121. #ContactForm .bg{
  122. padding:0;
  123. display: inline-block;
  124. float: left;
  125. position: relative;
  126. }
  127. #ContactForm .wrapper {
  128. overflow:inherit;
  129. min-height:40px;
  130. }
  131. #ContactForm .success {
  132. padding-bottom: 0px;
  133. text-transform:uppercase;
  134. font-size:10px;
  135. position:relative;
  136. float:left;
  137. color: #000;
  138. width: 100%;
  139. line-height: 11px;
  140. }
  141. #ContactForm label {
  142. position:relative;
  143. display:inline-block;
  144. float: left;
  145. width: 100%;
  146. padding-bottom: 6px;
  147. }
  148. #ContactForm span {
  149. display:block
  150. }
  151. #ContactForm .error,#ContactForm .empty {
  152. font-size:9px;
  153. color: #796D71;
  154. line-height:9px;
  155. display:none;
  156. width: 100%;
  157. top:0px;
  158. position:relative;
  159. text-transform:uppercase;
  160. float: left;
  161. }
  162. #ContactForm a {
  163. position:relative;
  164. z-index:1;
  165. }
  166. #ContactForm a:hover {text-decoration:none;}
  167. #ContactForm .input {
  168. width: 235px;
  169. padding: 8px 10px;
  170. color: #796D71;
  171. outline:none;
  172. font-size: 12px;
  173. font-family: Arial;
  174. }
  175. #ContactForm textarea {
  176. overflow:auto;
  177. margin:0;
  178. width: 330px;
  179. height: 125px;
  180. padding: 10px 10px;
  181. color: #796d71;
  182. resize:none;
  183. outline:none;
  184. font-size: 12px;
  185. font-family: Arial;
  186. }
  187. #ContactForm .block {
  188. display:inline-block;
  189. position:relative;
  190. width: 100%;
  191. float: left;
  192. }
  193. #ContactForm .magRight1{margin-right:16px;}
  194. .formButtons{position:relative; float: right; display: inline-block;margin-top: 58px; margin-right:20px; font-weight:bold;}
  195. .formBtn{display:inline-block; position:relative; margin-right: 6px;}
  196. .signature{margin-top:10px;font-size:20px;font-style:italic}
  197. #copyright{text-align:center;width:100%;color:#666}
  198. .fancybox img{width:167px;height:130px}
  199. /* ============================= end forms ============================= */

  1. $(document).ready(function() {
  2. $('.navigation').append('<area shape="poly" coords="224,82, 339,149, 339,279, 224,346, 109,279, 109,149" href="#close" alt="Jammy�s Folio ui designer &amp; developer" class="logo">')
  3. $('.navigation').append('<area shape="poly" coords="147,-5, 219,40, 219,120, 147,160, 74,120, 74,40" href="#!/page_Home" alt="" class="nav1">')
  4. $('.navigation').append('<area shape="poly" coords="73,129, 145,174, 145,254, 73,294, 0,254, 0,174" href="#!/page_About" alt="" class="nav2">')
  5. $('.navigation').append('<area shape="poly" coords="147,261, 219,307, 219,387, 147,427, 74,387, 74,307" href="#!/page_Talk" alt="" class="nav3">')
  6. $('.navigation').append('<area shape="poly" coords="300,261, 372,307, 372,387, 300,427, 228,387, 228,307" href="#!/page_Message" alt="" class="nav4">')
  7. $('.navigation').append('<area shape="poly" coords="379,129, 451,174, 451,254, 379,294, 306,254, 306,174" href="#!/page_Blog" alt="" class="nav5">')
  8. $('.navigation').append('<area shape="poly" coords="300,-5, 372,40, 372,120, 300,160, 228,120, 228,40" href="#!/page_Time" alt="" class="nav6">');
  9. $('.map_back').append('<area shape="poly" coords="73,-5, 145,40, 145,120, 73,160, 0,120, 0,40" href="#close" alt="" id="back">')
  10. $('.map_logo').append('<area shape="poly" coords="115,-7, 230,60, 230,190, 115,257, 0,190, 0,60" href="#close" alt="Jammy�s Folio ui designer &amp; developer" class="logo">')
  11. // hover
  12. var n;
  13. $('.navigation area').hover(function(){
  14. n=$(this).attr('class');
  15. fl2=false;
  16. if (n=='logo') {
  17. $('#logo img').stop().animate({width:270, height:294, left:5, top:5}, 600, 'easeOutBack')
  18. } else {
  19. n=parseInt(n.slice(-1))
  20. $('#nav'+n+'> img').css({zIndex:8}).stop().animate({width:165, height:177, left:5, top:5}, 600, 'easeOutBack', function(){$(this).css({zIndex:7})})
  21. $('#nav'+n+'> div').stop(true, true).animate({height:'show'}, function(){})
  22. }
  23. }, function(){
  24. var n=$(this).attr('class');
  25. if (n=='logo') {
  26. $('#logo img').stop().animate({width:230, height:254, left:25, top:25}, 600, 'easeOutBack')
  27. } else {
  28. n=parseInt(n.slice(-1));
  29. $('#nav'+n+'> img').stop().animate({width:145, height:157, left:15, top:15}, 600, 'easeOutBack', function(){$(this).css({zIndex:6})})
  30. $('#nav'+n+'> div').stop(true, true).delay(200).animate({height:'hide'}, function(){})
  31. }
  32. })
  33. $('.logo').hover(function(){
  34. $('#logo img').stop().animate({width:270, height:294, left:5, top:5}, 600, 'easeOutBack')
  35. }, function(){
  36. $('#logo img').stop().animate({width:230, height:254, left:25, top:25}, 600, 'easeOutBack')
  37. })
  38. $('#back, .back a').hover(function(){
  39. $('.back img').stop().animate({width:165, height:177, left:5, top:5}, 600, 'easeOutBack')
  40. }, function(){
  41. $('.back img').stop().animate({width:145, height:157, left:15, top:15}, 600, 'easeOutBack')
  42. })
  43. $('.submenu li').hover(function(){
  44. $(this).find('img').stop().animate({height:40, top:0},600,'easeOutCirc')
  45. }, function(){
  46. $(this).find('img').stop().animate({height:0, top:20},600,'easeOutCirc');
  47. })
  48. $('.submenu').stop().animate({height:'hide'},0)
  49. $('.submenu').hover(function(){
  50. $('#nav'+n+'> img').css({zIndex:8}).stop().animate({width:165, height:177, left:5, top:5}, 600, 'easeOutBack', function(){$(this).css({zIndex:7})})
  51. $('#nav'+n+'> div').stop(true, true).animate({height:'show'}, function(){})
  52. }, function(){
  53. fl=false;
  54. $('.navigation area').mouseleave()
  55. })
  56. $('.link1, .social a').each(function(){
  57. var color=$(this).css('color')
  58. $(this).prepend('<span></span>')
  59. $(this).find('span').css({background:color})
  60. })
  61. $('.link1, .social a').hover(function(){
  62. $(this).find('span').css({width:0, opacity:1}).stop().animate({width:'100%'})
  63. }, function(){
  64. $(this).find('span').stop().animate({opacity:0})
  65. })
  66. $('#icons .img_act').css({opacity:0})
  67. $('#icons a').hover(function(){
  68. $(this).find('.img_act').stop().animate({opacity:1})
  69. }, function(){
  70. $(this).find('.img_act').stop().animate({opacity:0})
  71. })
  72. /*
  73. $('.gallery span').css({opacity:0})
  74. $('.gallery a').hover(function(){
  75. $(this).find('span').stop().animate({opacity:1}, function(){$(this).css({opacity:'none'})})
  76. }, function(){
  77. $(this).find('span').stop().animate({opacity:0})
  78. })
  79. */
  80. // fancybox
  81. /*
  82. $("a[rel=Appendix]").fancybox({
  83. 'transitionIn' : 'fade',
  84. 'transitionOut' : 'fade',
  85. 'titlePosition' : 'over',
  86. 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
  87. return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  88. }
  89. });
  90. */
  91. // blog
  92. $('.blog').cycle({
  93. fx: 'scrollVert',
  94. pager:'.pagin', // selector for element to use as pager container
  95. activePagerClass: 'active', // class name used for the active pager link
  96. timeout: false, // milliseconds between slide transitions (0 to disable auto advance)
  97. speed: 800, // speed of the transition (any valid fx speed value)
  98. prev: '.prev', // selector for element to use as event trigger for previous slide
  99. next: '.next' // selector for element to use as event trigger for next slide
  100. });
  101. if ($.browser.msie && $.browser.version == 8) {
  102. var num=0;
  103. $('.pagin a').each(function(num){$(this).data({num:num})})
  104. $('.pagin a').eq(num).addClass('active')
  105. $('.pagin a').click(function(){
  106. num=$(this).data('num')
  107. $(this).addClass('active').siblings().removeClass('active')
  108. })
  109. $('.prev').click(function(){
  110. if (num!=0) {num=num-1} else {num=$('.pagin a').length-1}
  111. $('.pagin a').eq(num).addClass('active').siblings().removeClass('active')
  112. })
  113. $('.next').click(function(){
  114. if (num!=$('.pagin a').length-1) {num=num+1} else {num=0}
  115. $('.pagin a').eq(num).addClass('active').siblings().removeClass('active')
  116. })
  117. } else {
  118. $('.prev, .next').hover(function(){
  119. $(this).stop().animate({color:'#fff', backgroundColor:'#3e3435'})
  120. }, function(){
  121. $(this).stop().animate({color:'#3e3435', backgroundColor:'#ececec'})
  122. })
  123. $('.pagin .active').css({background:'none', fontWeight:'bold'})
  124. $('.pagin a').click(function(){
  125. $(this).stop().css({background:'none', fontWeight:'bold', color:'#1b1b1b'}).siblings().css({ fontWeight:'normal'}).stop().animate({color:'#1b1b1b', backgroundColor:'#ececec'})
  126. })
  127. $('.pagin a').hover(function(){
  128. if (!$(this).hasClass('active')) {
  129. $(this).stop().animate({color:'#fff', backgroundColor:'#3e3435'})
  130. }
  131. }, function(){
  132. if (!$(this).hasClass('active')) {
  133. $(this).stop().animate({color:'#1b1b1b', backgroundColor:'#ececec'})
  134. }
  135. })
  136. $('.prev, .next').click(function(){
  137. $('.pagin .active').stop().css({background:'none', fontWeight:'bold', color:'#1b1b1b'}).siblings().css({ fontWeight:'normal'}).stop().animate({color:'#1b1b1b', backgroundColor:'#ececec'})
  138. })
  139. }
  140. });
  141. $(window).load(function() {
  142. var fl_cont=true;
  143. $('a, area').click(function(){
  144. if (!fl_cont) {
  145. return false
  146. }
  147. })
  148. // scroll
  149. $('.scroll').cScroll({
  150. duration:700,
  151. step:63,
  152. trackCl:'track',
  153. shuttleCl:'shuttle'
  154. })
  155. $('#menu > li').each(function(num){
  156. $(this).data({left:$(this).css('left'), top:$(this).css('top')})
  157. })
  158. //content switch
  159. var content=$('#content'),
  160. nav=$('.menu');
  161. nav.navs({
  162. useHash:true
  163. })
  164. content.tabs({
  165. actFu:function(_){
  166. if (_.prev && _.curr) {
  167. fl_cont=false;
  168. _.prev.find('.pad').stop().animate({opacity:0}, function(){
  169. $(this).css({display:'none'});
  170. _.prev.find('.back').stop().animate({opacity:0}, function(){$(this).css({top:212, left:163, opacity:1, display:'none'}); $(this).css({opacity:'none'})})
  171. _.prev.find('.bg_cont').stop().animate({top:303, left:281, width:0, height:0}, 600, 'easeInBack', function(){
  172. _.curr.find('.back').css({top:384, left:477, opacity:0, display:'block'}).stop().animate({opacity:1}, function(){$(this).css({opacity:'none'})})
  173. _.curr.find('.bg_cont').stop().animate({top:0, left:0, width:562, height:606}, 600, 'easeOutBack', function(){
  174. _.curr.find('.pad').css({display:'block'}).stop().animate({opacity:1}, function(){
  175. $(this).css({opacity:'none'});
  176. fl_cont=true;
  177. })
  178. })
  179. })
  180. })
  181. } else {
  182. if (_.curr) {
  183. fl_cont=false;
  184. $('#navigation').css({display:'none'})
  185. $('#menu > li').stop().animate({top:239, left:385},1000,'easeInBack', function(){
  186. $(this).find(' > img').stop().animate({top:92, left:88, width:0, height:0},1000,'easeInBack', function(){})
  187. $('#menu > li').css({display:'none'});
  188. $('h1').stop().animate({top:-16, left:44}, 600, 'easeInBack')
  189. _.curr.find('.back').css({display:'block'});
  190. _.curr.find('.back').stop().animate({top:384, left:477}, 600, 'easeOutBack', function(){
  191. _.curr.find('.bg_cont').stop().animate({top:0, left:0, width:562, height:606}, 600, 'easeOutBack', function(){
  192. _.curr.find('.pad').css({display:'block'}).stop().animate({opacity:1}, function(){
  193. $(this).css({opacity:'none'});
  194. fl_cont=true;
  195. })
  196. })
  197. })
  198. })
  199. fl=false;
  200. $('.navigation area').mouseleave()
  201. }
  202. if (_.prev) {
  203. fl_cont=false;
  204. _.prev.find('.pad').stop().animate({opacity:0}, function(){
  205. $(this).css({display:'none'});
  206. _.prev.find('.bg_cont').stop().animate({top:303, left:281, width:0, height:0}, 600, 'easeInBack', function(){
  207. $('h1').stop().animate({top:184, left:329}, 600, 'easeInBack')
  208. _.prev.find('.back').mouseleave();
  209. _.prev.find('.back').stop().animate({top:212, left:163}, 600, 'easeOutBack', function(){
  210. _.prev.find('.back').css({display:'none'});
  211. $('#menu > li').css({display:'block'});
  212. $('#navigation').css({display:'block'})
  213. var num=$('#menu > li').length;
  214. for (i=0;i<num;i++) {
  215. var th=$('#menu > li').eq(i);
  216. th.stop().delay(220*i).animate({top:th.data('top'), left:th.data('left')}, 600, 'easeOutBack')
  217. th.find(' > img').stop().delay(220*i).animate({top:15, left:15, width:145, height:157},600,'easeOutBack', function(){})
  218. }
  219. fl_cont=true;
  220. })
  221. })
  222. })
  223. }
  224. }
  225. },
  226. preFu:function(_){
  227. $('#content > ul > li').css({position:'absolute'})
  228. $('.bg_cont').css({top:303, left:281, width:0, height:0})
  229. $('.pad').css({opacity:0, display:'none'})
  230. $('.back').css({display:'none'})
  231. }
  232. })
  233. nav.navs(function(n, _){
  234. content.tabs(n)
  235. if(n=="#!/page_Time")
  236. googleMap()
  237. })
  238. function googleMap(){
  239. /*
  240. if(googleMap.ready)
  241. return false
  242. googleMap.ready=true
  243. ;(function afterAnimation(){
  244. var tmp=$('*:animated')
  245. if(tmp.length)
  246. $.when(tmp)
  247. .then(afterAnimation)
  248. else{
  249. var cssPath='.google_map'
  250. ,holder=$(cssPath)
  251. ,src='http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Brooklyn,+New+York,+NY,+United+States&amp;aq=0&amp;sll=37.0625,-95.677068&amp;sspn=61.282355,146.513672&amp;ie=UTF8&amp;hq=&amp;hnear=Brooklyn,+Kings,+New+York&amp;ll=40.649974,-73.950005&amp;spn=0.01628,0.025663&amp;z=14&amp;iwloc=A&amp;output=embed'
  252. ,str='<iframe class="blo" width="'+holder.width()+'" height="'+holder.height()+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+src+'"></iframe>'
  253. holder.html(str)
  254. }
  255. })()
  256. */
  257. }
  258. var m_top=0, h_cont=730;
  259. function centre() {
  260. var h=$(window).height();
  261. if (h>h_cont) {
  262. m_top=(h-h_cont)/2+30;
  263. } else {
  264. m_top=30
  265. }
  266. $('.centre').stop().animate({paddingTop:m_top})
  267. }
  268. centre();
  269. $(window).resize(centre);
  270. })

下载地址: 大学生情人节,520表白html源代码-Javascript文档类资源-CSDN下载采用HTML+CSS+JavaScript实现,内置有3款表白代码,造型独特。更多下载资源、学习资料请访问CSDN下载频道.https://download.csdn.net/download/qgy92320/85404291

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/120619
推荐阅读
相关标签
  

闽ICP备14008679号