1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" id="min-width" lang="{L_LANG_HTML}" xml:lang="{L_LANG_HTML}" {NAMESPACE_FB_LIKE} {NAMESPACE_FB}>
  3. <head>
  4. <!-- BEGIN meta_emulate_ie7 -->
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  6. <!-- END meta_emulate_ie7 -->
  7. <title>{SITENAME_TITLE}{PAGE_TITLE}</title>
  8. <meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING};" />
  9. <meta http-equiv="content-script-type" content="text/javascript" />
  10. <meta http-equiv="content-style-type" content="text/css" />
  11. {META_FAVICO}
  12. {META}
  13. {META_FB_LIKE}
  14. <meta name="title" content="{SITENAME_TITLE}{PAGE_TITLE}" />
  15. {T_HEAD_STYLESHEET}
  16. {CSS}
  17. <link rel="search" type="application/opensearchdescription+xml" href="/improvedsearch.xml" title="{SITENAME}" />
  18. <link rel="search" type="application/opensearchdescription+xml" href="{URL_BOARD_DIRECTORY}/search/improvedsearch.xml" title="{SEARCH_FORUMS}" />
  19. <script src="{JQUERY_PATH}" type="text/javascript"></script>
  20. <script src="{JS_DIR}{L_LANG}.js" type="text/javascript"></script>
  21. <!-- BEGIN switch_fb_login -->
  22. <script src="http://connect.facebook.net/{switch_fb_login.FB_LOCAL}/all.js" type="text/javascript"></script>
  23. <script src="{switch_fb_login.JS_FB_LOGIN}" type="text/javascript"></script>
  24. <!-- END switch_fb_login -->
  25. <!-- BEGIN switch_ticker -->
  26. <link type="text/css" rel="stylesheet" href="{JS_DIR}jquery/ticker/ticker.css" />
  27. <script src="{JS_DIR}jquery/ticker/ticker.js" type="text/javascript"></script>
  28. <!-- END switch_ticker -->
  29. <!-- BEGIN switch_ticker_new -->
  30. <script src="{JS_DIR}jquery/jcarousel/jquery.jcarousel.js" type="text/javascript"></script>
  31. <script type="text/javascript">//<![CDATA[
  32. /* Definir le sens de direction en fonction du panneau admin */
  33. var tickerDirParam = "{switch_ticker.DIRECTION}";
  34. var slid_vert = false;
  35. var auto_dir = 'next';
  36. var h_perso = parseInt({switch_ticker.HEIGHT});
  37. switch( tickerDirParam )
  38. {
  39. case 'top' :
  40. slid_vert = true;
  41. break;
  42. case 'left':
  43. break;
  44. case 'bottom':
  45. slid_vert = true;
  46. auto_dir = 'prev';
  47. break;
  48. case 'right':
  49. auto_dir = 'prev';
  50. break;
  51. default:
  52. slid_vert = true;
  53. }
  54. $(document).ready(function() {
  55. var w_cont = $('#fa_ticker_container').width();
  56. if (w_cont > 0)
  57. {
  58. $('#fa_ticker_container').width(w_cont);
  59. /* Affichage de la liste */
  60. $('#fa_ticker_content').css('display','block');
  61. /* Calcul des dimensions du conteneur et des &#65533;l&#65533;ments */
  62. var width_max = $('ul#fa_ticker_content').width();
  63. var width_item = Math.floor(width_max / {switch_ticker.SIZE});
  64. var height_max = h_perso;
  65. /* Calcul de la hauteur maximale du contenur en fonction des &#65533;l&#65533;ments et de la hauteur personnalis&#65533;e dans l'admin */
  66. $('ul#fa_ticker_content li').each( function () {
  67. if ($(this).height() > height_max)
  68. {
  69. height_max = $(this).height();
  70. }
  71. } );
  72. /* Redimensionnement des &#65533;l&#65533;ments et des images trop larges */
  73. $('ul#fa_ticker_content li').width(width_item).height(height_max).find('img').each(function () {
  74. if ($(this).width() > width_item)
  75. {
  76. var ratio = $(this).width() / width_item;
  77. var new_height = Math.round($(this).height() / ratio);
  78. $(this).height(new_height).width(width_item);
  79. }
  80. });
  81. /* Redimensionnement et centrage du conteneur en mode vertical */
  82. if (slid_vert)
  83. {
  84. $('ul#fa_ticker_content').width(width_item).height(height_max).css('marginLeft','auto').css('marginRight','auto');
  85. }
  86. /* Initialisation du caroussel */
  87. $('#fa_ticker_content').jcarousel({
  88. vertical: slid_vert,
  89. wrap: 'circular',
  90. auto: {switch_ticker.STOP_TIME},
  91. auto_direction: auto_dir,
  92. scroll: 1,
  93. size: {switch_ticker.SIZE},
  94. height_max: height_max,
  95. animation: {switch_ticker.SPEED}
  96. });
  97. }
  98. else
  99. {
  100. $('ul#fa_ticker_content li:not(:first)').css('display','none');
  101. $('ul#fa_ticker_content li:first').css('list-style','none').css('text-align','center');
  102. }
  103. });
  104. //]]>
  105. </script>
  106. <!-- END switch_ticker_new -->
  107. <script type="text/javascript">//<![CDATA[
  108. $(document).ready(function(){
  109. <!-- BEGIN switch_enable_pm_popup -->
  110. pm = window.open('{U_PRIVATEMSGS_POPUP}', '_faprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
  111. pm.focus();
  112. <!-- END switch_enable_pm_popup -->
  113. <!-- BEGIN switch_report_popup -->
  114. report = window.open('{switch_report_popup.U_REPORT_POPUP}', '_phpbbreport', 'HEIGHT={switch_report_popup.S_HEIGHT},resizable=yes,scrollbars=no,WIDTH={switch_report_popup.S_WIDTH}');
  115. report.focus();
  116. <!-- END switch_report_popup -->
  117. <!-- BEGIN switch_ticker -->
  118. ticker_start({switch_ticker.HEIGHT}, {switch_ticker.SPACING}, {switch_ticker.SPEED}, '{switch_ticker.DIRECTION}', {switch_ticker.STOP_TIME});
  119. <!-- END switch_ticker -->
  120. });
  121. <!-- BEGIN switch_login_popup -->
  122. var logInPopUpLeft, logInPopUpTop, logInPopUpWidth = {LOGIN_POPUP_WIDTH}, logInPopUpHeight = {LOGIN_POPUP_HEIGHT}, logInBackgroundResize = true, logInBackgroundClass = false;
  123. <!-- END switch_login_popup -->
  124. <!-- BEGIN switch_login_popup -->
  125. $(document).ready( function() {
  126. $(window).resize(function() {
  127. var windowWidth = document.documentElement.clientWidth;
  128. var popupWidth = $("#login_popup").width();
  129. var mypopup = $("#login_popup");
  130. $("#login_popup").css({
  131. "left": windowWidth/2 - popupWidth/2
  132. });
  133. });
  134. });
  135. <!-- END switch_login_popup -->
  136. //]]>
  137. </script>
  138. {GREETING_POPUP}
  139. <!-- BEGIN switch_ticker_new -->
  140. <style>
  141. .jcarousel-skin-tango .jcarousel-item {
  142. text-align:center;
  143. width: 10px;
  144. }
  145. .jcarousel-skin-tango .jcarousel-item-horizontal {
  146. margin-right: {switch_ticker.SPACING}px;
  147. }
  148. .jcarousel-skin-tango .jcarousel-item-vertical {
  149. margin-bottom: {switch_ticker.SPACING}px;
  150. }
  151. </style>
  152. <!-- END switch_ticker_new -->
  153. <!-- BEGIN google_analytics_code -->
  154. <script type="text/javascript">
  155. //<![CDATA[
  156. var _gaq = _gaq || [];
  157. _gaq.push(['_setAccount', '{G_ANALYTICS_ID}']);
  158. _gaq.push(['_trackPageview']);
  159. (function() {
  160. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  161. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  162. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  163. })();
  164. //]]>
  165. </script>
  166. <!-- END google_analytics_code -->
  167. </head>
  168. <body background="{T_BODY_BACKGROUND}" bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
  169. <!-- BEGIN hitskin_preview -->
  170. <div id="hitskin_preview" style="display: block;">
  171. <h1><img src="http://illiweb.com/fa/hitskin/hitskin_logo.png" alt="" /> Hit<em>skin</em>.com</h1>
  172. <div class="content">
  173. <p>
  174. {hitskin_preview.L_THEME_SITE_PREVIEW}
  175. <br />
  176. <span>{hitskin_preview.U_INSTALL_THEME}<a href="http://{hitskin_preview.U_RETURN_THEME}">{hitskin_preview.L_RETURN_THEME}</a></span>
  177. </p>
  178. </div>
  179. </div>
  180. <!-- END hitskin_preview -->
  181. <!-- BEGIN switch_login_popup -->
  182. <div id="login_popup">
  183. <table class="forumline" width="{LOGIN_POPUP_WIDTH}" height="{LOGIN_POPUP_HEIGHT}" border="0" cellspacing="1" cellpadding="0">
  184. <tr height="25">
  185. <td class="catLeft">
  186. <span class="genmed module-title">{SITENAME}</span>
  187. </td>
  188. </tr>
  189. <tr height="{LOGIN_POPUP_MSG_HEIGHT}">
  190. <td class="row1" align="left" valign="top">
  191. <div id="login_popup_buttons">
  192. <form action="{S_LOGIN_ACTION}" method="get">
  193. <input type="submit" class="mainoption" value="{L_LOGIN}" />
  194. <input type="button" class="mainoption" value="{L_REGISTER}" onclick="parent.location='{U_REGISTER}';" />
  195. <input id="login_popup_close" type="button" class="button" value="{L_DONT_DISPLAY_AGAIN}" />
  196. </form>
  197. </div>
  198. <span class="genmed">{LOGIN_POPUP_MSG}</span>
  199. </td>
  200. </tr>
  201. </table>
  202. </div>
  203. <!-- END switch_login_popup -->
  204. <a name="top"></a>
  205. {JAVASCRIPT}
  206. <title>eXtremepixels demo and customers forum - vBulletin skins / IPB skins and phpBB skins</title>
  207. </head>
  208. <body>
  209. <!-- set below for skin width-->
  210. <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  211. <tr>
  212. <td width="100%" align="left" valign="top">
  213. <!-- begin enlighten header / logo is controlled via #logo in main CSS file -->
  214. <div id="hdr"><div id="hdr_rs"></div><div id="logo"></div></div>
  215. <div id="brd_outer">
  216. <div id="brd_in">
  217. <!-- nav buttons bar -->
  218. <div align="center">
  219. <div id="nav_back">
  220. <table cellpadding="0" cellspacing="0" border="0" width="50%" align="center">
  221. <tr>
  222. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  223. <td class="h_nav"><a href="/forum.htm">Home</a></td>
  224. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  225. <td class="h_nav"><a href="profile.forum?mode=register" rel="nofollow">Register</a></td>
  226. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  227. <!-- Load Blog Link-->
  228. <td class="h_nav" id="vbbloglinks"><a href="blog.php">Blogs</a> <script type="text/javascript">vbmenu_register("vbbloglinks"); </script></td>
  229. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  230. <!-- End Blog Link-->
  231. <td class="h_nav"><a href="faq.forum" accesskey="5">FAQ</a></td>
  232. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  233. <td id="community" class="h_nav">
  234. <a href="/forum/index.htm?styleid=79&amp;nojs=1#community" rel="nofollow" accesskey="6">Community</a>
  235. <script type="text/javascript"> vbmenu_register("community"); </script></td>
  236. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  237. <td class="h_nav"><a href="calendar.forum">Calendar</a></td>
  238. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  239. <td class="h_nav"><a href="http://ripskin.forummotion.com/search.forum?search_id=activetopics" accesskey="2">Today's Posts</a></td>
  240. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  241. <td id="navbar_search" class="h_nav"><a href="search.forum" accesskey="4" rel="nofollow">Search</a></td>
  242. <td><img src="http://www.extremepixels.com/forum/enlighten/misc/nav_div.gif" alt="" /></td>
  243. </tr>
  244. </table>
  245. </div>
  246. <!-- / nav buttons bar -->
  247. </div>
  248. <div id="nav_btm"></div>
  249. <!-- content table -->
  250. <table bgcolor="#ebebe2" width="100%" cellpadding="0" cellspacing="0" border="0">
  251. <tr>
  252. <td>
  253. <!-- open content container -->
  254. <div align="center">
  255. <div class="page" style="width:100%; text-align:left">
  256. <div style="padding:0px 25px 0px 25px" align="left">
  257. <div class="vbmenu_popup" id="vbbloglinks_menu" style="display:none;margin-top:3px" align="left">
  258. <table cellpadding="4" cellspacing="1" border="0">
  259. <tr>
  260. <td class="thead"><a href="blog.php">Blogs</a></td>
  261. </tr>
  262. <tr>
  263. <td class="vbmenu_option"><a href="blog.php?do=list">Recent Entries</a></td>
  264. </tr>
  265. <tr>
  266. <td class="vbmenu_option"><a href="blog.php?do=list&blogtype=best">Best Entries</a></td>
  267. </tr>
  268. <tr>
  269. <td class="vbmenu_option"><a href="blog.php?do=bloglist&blogtype=best">Best Blogs</a></td>
  270. </tr>
  271. <tr>
  272. <td class="vbmenu_option"><a href="blog.php?do=bloglist">Blog List</a></td>
  273. </tr>
  274. <tr>
  275. <td class="vbmenu_option"><a href="blog_search.php?do=search">Search Blogs</a></td>
  276. </tr>
  277. </table>
  278. </div>
  279. <br />
  280. <!-- breadcrumb, login, pm info -->
  281. <table cellspacing="0" cellpadding="0" border="0" align="{MENU_POSITION}">
  282. <tr>
  283. <td align="{MENU_POSITION}"{MENU_NOWRAP}>{GENERATED_NAV_BAR}</td>
  284. </tr>
  285. </table>
  286. <BR>
  287. <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
  288. <tr>
  289. <td class="alt1" width="100%">
  290. <div class="navbar" style="font-size:10pt"><a href="/forum.htm" accesskey="1"><img class="inlineimg" src="http://www.extremepixels.com/forum/enlighten/misc/navbits_start.gif" alt="" border="0" /></a> <strong>eXtremepixels demo and customers forum</strong></div>
  291. </td>
  292. <td class="alt2" nowrap="nowrap" style="padding:0px">
  293. <!-- BEGIN switch_user_logged_out -->
  294. <!-- login form -->
  295. <form action="{S_LOGIN_ACTION}" method="post" name="form_login">
  296. <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=384"></script>
  297. <table border="0" cellpadding="0" cellspacing="3">
  298. <TBODY>
  299. <tr>
  300. <td class="smallfont" style="white-space: nowrap;">
  301. <label for="navbar_username">User Name</label></td>
  302. <td><input type="text" class="bginput" style="font-size: 11px"
  303. name="username" id="username" size="15" accesskey="u" tabindex="101"
  304. value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" />
  305. </td>
  306. <td class="smallfont" nowrap="nowrap"><label for="autologin">
  307. <input type="checkbox" name="cookieuser" value="1"
  308. tabindex="103" id="autologin" accesskey="c" />Remember me?</label>
  309. </td>
  310. </tr>
  311. <tr>
  312. <td class="smallfont"><label for="password">Password</label>
  313. </td>
  314. <td><input type="password" class="bginput" style="font-size: 11px;"
  315. name="password" id="password" size="15" tabindex="102"
  316. </td>
  317. <td><input class="button" value="Log In" tabindex="104"
  318. title="Enter your username and password in the boxes provided to login,
  319. or click the 'register' button to create a profile for yourself." accesskey="s"
  320. type="submit" name="login" value="{L_LOGIN}">
  321. </td>
  322. </tr>
  323. </tbody>
  324. </table>
  325. <input type="hidden" name="s" value="" />
  326. <input type="hidden" name="securitytoken" value="guest" />
  327. <input type="hidden" name="do" value="login" />
  328. <input type="hidden" name="vb_login_md5password" />
  329. <input type="hidden" name="vb_login_md5password_utf" />
  330. <!-- END switch_user_logged_out -->
  331. <!-- BEGIN switch_user_logged_in -->
  332. <span class="gensmall">
  333. <span class="username">{USERNAME} Welcome </span><br />
  334. <span class="gensmall">{LAST_VISIT_DATE} <br />{CURRENT_TIME}<br />
  335. <!-- END switch_user_logged_in -->
  336. </form>
  337. <!-- / login form -->
  338. </td>
  339. </tr>
  340. </table>
  341. <!-- / breadcrumb, login, pm info -->
  342. <!-- nav buttons bar -->
  343. <!-- / nav buttons bar -->
  344. <br />
  345. <form action="profile.php?do=dismissnotice" method="post" id="notices">
  346. <input type="hidden" name="do" value="dismissnotice" />
  347. <input type="hidden" name="securitytoken" value="guest" />
  348. <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
  349. <input type="hidden" name="url" value="/forum/index.php?styleid=79" />
  350. <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
  351. <tr>
  352. <td class="thead">Notices</td>
  353. </tr>
  354. <tr>
  355. <td class="alt1">
  356. <div class="navbar_notice" id="navbar_notice_2">
  357. <strong>15% discount for customers renewing their skins!</strong>. Please see this <a href="http://www.extremepixels.com/forum/index.php?styleid=79"> thread</a> for details.</div>
  358. </td>
  359. </tr>
  360. </table>
  361. <br />
  362. </form>
  363. <!-- NAVBAR POPUP MENUS -->
  364. <!-- community link menu -->
  365. <div class="vbmenu_popup" id="community_menu" style="display:none;margin-top:3px" align="left">
  366. <table cellpadding="4" cellspacing="1" border="0">
  367. <tr>
  368. <td class="thead">Community Links</td>
  369. </tr>
  370. <tr>
  371. <td class="vbmenu_option">
  372. <a href="/groupcp.forum">Groups</a></td>
  373. </tr>
  374. <tr>
  375. <td class="vbmenu_option">
  376. <a href="/gallery/index.htm">Pictures &amp; Albums </a></td>
  377. </tr>
  378. <tr>
  379. <td class="vbmenu_option">
  380. <a href="memberlist.forum">Members List</a>
  381. </td>
  382. </tr>
  383. </table>
  384. </div>
  385. <!-- / community link menu -->
  386. <!-- / NAVBAR POPUP MENUS -->
  387. <!-- PAGENAV POPUP -->
  388. <div class="vbmenu_popup" id="pagenav_menu" style="display:none">
  389. <table cellpadding="4" cellspacing="1" border="0">
  390. <tr>
  391. <td class="thead" nowrap="nowrap">Go to page...</td>
  392. </tr>
  393. <tr>
  394. <td class="vbmenu_option" title="nohilite">
  395. <form action="/index.htm" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
  396. <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
  397. <input type="button" class="button" id="pagenav_ibtn" value="Go" />
  398. </form>
  399. </td>
  400. </tr>
  401. </table>
  402. </div>
  403. <!-- / PAGENAV POPUP -->
  404. <!-- guest welcome message -->
  405. <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
  406. <tr>
  407. <td class="tcat">Welcome to the eXtremepixels demo and customers forum.</td>
  408. </tr>
  409. <tr>
  410. <td class="alt1">
  411. If this is your first visit, be sure to check out the <a href="faq.forum"><strong>FAQ</strong></a> by clicking the link above.
  412. You may have to <a href="profile.forum?mode=register" rel="nofollow"><strong>register</strong></a> before you can post: click the register link above to proceed.
  413. To start viewing messages, select the forum that you want to visit from the selection below.
  414. </td>
  415. </tr>
  416. </table>
  417. <!-- / guest welcome message -->
  418. <br>
  419. <div style="clear: both;"></div>
  420. <!-- BEGIN switch_ticker_new -->
  421. <div id="fa_ticker_block" style="margin-top:4px;margin-bottom:4px;">
  422. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="forumline">
  423. <tr>
  424. <td {CLASS_TABLE_TYPE} align="left" class="row1">
  425. <div id="fa_ticker_container">
  426. <ul id="fa_ticker_content" class="jcarousel-skin-tango" style="display:none;">
  427. <!-- BEGIN ticker_row -->
  428. <li>{switch_ticker.ticker_row.ELEMENT}</li>
  429. <!-- END ticker_row -->
  430. </ul>
  431. </div>
  432. </td>
  433. </tr>
  434. </table>
  435. </div>
  436. <!-- END switch_ticker_new -->
  437. <!-- BEGIN switch_ticker -->
  438. <div id="fa_ticker_block" style="margin-top:4px;margin-bottom:4px;">
  439. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="forumline">
  440. <tr>
  441. <td {CLASS_TABLE_TYPE} align="left" class="row1">
  442. <div id="fa_ticker_container">
  443. <div id="fa_ticker" style="height:{switch_ticker.HEIGHT}px;">
  444. <div class="fa_ticker_content">
  445. <!-- BEGIN ticker_row -->
  446. <div>{switch_ticker.ticker_row.ELEMENT}</div>
  447. <!-- END ticker_row -->
  448. </div>
  449. </div>
  450. </div>
  451. </td>
  452. </tr>
  453. </table>
  454. </div>
  455. <!-- END switch_ticker -->
  456. <div id="page-body">
  457. <div id="{ID_CONTENT_CONTAINER}"{CLASS_CONTENT_CONTAINER}>
  458. <table cellpadding="0" cellspacing="0" width="100%" class="three-col">
  459. <tbody>
  460. <tr>
  461. <td valign="top" width="{C1SIZE}">
  462. <div id="{ID_LEFT}">
  463. <!-- BEGIN giefmod_index1 -->
  464. {giefmod_index1.MODVAR}
  465. <!-- BEGIN saut -->
  466. <div style="height:{SPACE_ROW}px"></div>
  467. <!-- END saut -->
  468. <!-- END giefmod_index1 -->
  469. </div>
  470. </td>
  471. <td valign="top" width="100%">
  472. <!-- BEGIN html_validation -->
  473. </td>
  474. </tr>
  475. </tbody>
  476. </table>
  477. </div>
  478. </div>
  479. </td>
  480. </tr>
  481. </table>
  482. </body>
  483. </html>
  484. <!-- END html_validation -->
  485. <script>
  486. var pictureSrc ="http://vnvista.com/forums/jscripts/snow2.gif"; //the location of the snowflakes
  487. var pictureWidth = 10; //the width of the snowflakes
  488. var pictureHeight = 10; //the height of the snowflakes
  489. var numFlakes = 30; //the number of snowflakes
  490. var downSpeed = 0.01; //the falling speed of snowflakes (portion of screen per 100 ms)
  491. var lrFlakes = 10; //the speed that the snowflakes should swing from side to side
  492. if( typeof( numFlakes ) != 'number' || Math.round( numFlakes ) != numFlakes || numFlakes < 1 ) { numFlakes = 10; }
  493. //draw the snowflakes
  494. for( var x = 0; x < numFlakes; x++ ) {
  495. if( document.layers ) { //releave NS4 bug
  496. document.write('<layer id="snFlkDiv'+x+'"><img src="'+pictureSrc+'" height="'+pictureHeight+'" width="'+pictureWidth+'" alt="*" border="0"></layer>');
  497. } else {
  498. document.write('<div style="position:absolute;" id="snFlkDiv'+x+'"><img src="'+pictureSrc+'" height="'+pictureHeight+'" width="'+pictureWidth+'" alt="*" border="0"></div>');
  499. }
  500. }
  501. //calculate initial positions (in portions of browser window size)
  502. var xcoords = new Array(), ycoords = new Array(), snFlkTemp;
  503. for( var x = 0; x < numFlakes; x++ ) {
  504. xcoords[x] = ( x + 1 ) / ( numFlakes + 1 );
  505. do { snFlkTemp = Math.round( ( numFlakes - 1 ) * Math.random() );
  506. } while( typeof( ycoords[snFlkTemp] ) == 'number' );
  507. ycoords[snFlkTemp] = x / numFlakes;
  508. }
  509. //now animate
  510. function flakeFall() {
  511. if( !getRefToDivNest('snFlkDiv0') ) { return; }
  512. var scrWidth = 0, scrHeight = 0, scrollHeight = 0, scrollWidth = 0;
  513. //find screen settings for all variations. doing this every time allows for resizing and scrolling
  514. if( typeof( window.innerWidth ) == 'number' ) { scrWidth = window.innerWidth; scrHeight = window.innerHeight; } else {
  515. if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
  516. scrWidth = document.documentElement.clientWidth; scrHeight = document.documentElement.clientHeight; } else {
  517. if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
  518. scrWidth = document.body.clientWidth; scrHeight = document.body.clientHeight; } } }
  519. if( typeof( window.pageYOffset ) == 'number' ) { scrollHeight = pageYOffset; scrollWidth = pageXOffset; } else {
  520. if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { scrollHeight = document.body.scrollTop; scrollWidth = document.body.scrollLeft; } else {
  521. if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { scrollHeight = document.documentElement.scrollTop; scrollWidth = document.documentElement.scrollLeft; } }
  522. }
  523. //move the snowflakes to their new position
  524. for( var x = 0; x < numFlakes; x++ ) {
  525. if( ycoords[x] * scrHeight > scrHeight - pictureHeight ) { ycoords[x] = 0; }
  526. var divRef = getRefToDivNest('snFlkDiv'+x); if( !divRef ) { return; }
  527. if( divRef.style ) { divRef = divRef.style; } var oPix = document.childNodes ? 'px' : 0;
  528. divRef.top = ( Math.round( ycoords[x] * scrHeight ) + scrollHeight ) + oPix;
  529. divRef.left = ( Math.round( ( ( xcoords[x] * scrWidth ) - ( pictureWidth / 2 ) ) + ( ( scrWidth / ( ( numFlakes + 1 ) * 4 ) ) * ( Math.sin( lrFlakes * ycoords[x] ) - Math.sin( 3 * lrFlakes * ycoords[x] ) ) ) ) + scrollWidth ) + oPix;
  530. ycoords[x] += downSpeed;
  531. }
  532. }
  533. //DHTML handlers
  534. function getRefToDivNest(divName) {
  535. if( document.layers ) { return document.layers[divName]; } //NS4
  536. if( document[divName] ) { return document[divName]; } //NS4 also
  537. if( document.getElementById ) { return document.getElementById(divName); } //DOM (IE5+, NS6+, Mozilla0.9+, Opera)
  538. if( document.all ) { return document.all[divName]; } //Proprietary DOM - IE4
  539. return false;
  540. }
  541. window.setInterval('flakeFall();',100);</script>
  542. <style>
  543. a{text-decoration:none}
  544. </style>