|
Post by acoolie530 on Apr 16, 2005 18:42:06 GMT
Name: User Select Board Width Compatibility: FF/IE Preview: None Edit: At the bottom Features: Allows user to change the board width to w/e any of your predefined choices. All choices at bottom of board. If they have allready chosen, there will be a link to reset the choice. Future: Different Banner for each board width. Defined in profile
<script> <!-- //Board Width cookie by acoolie //Do Not remove this header
function widthcook(width){ document.cookie = "width="+width+"; expires=15/02/2037 00:00:00;" } function getcook(name) { var results = document.cookie.match (name+'=(.*?)(;|$)' );
if (results) return ( unescape ( results[1] ) ); else return null; } function delete_cookie ( cookie_name ) { var cookie_date = new Date ( ); // current date & time cookie_date.setTime ( cookie_date.getTime() - 1 ); document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString(); } var get = getcook("width"); if(get==null){ document.write("<center>Please Select Your Board Width<br/>") function boardWidth(width1,banner){ document.write("<a href='' onClick='widthcook("+width1+")'>"+width1+"</a><br/>") } document.write("<br/>") } else { document.write("<center><a href='' onClick='delete_cookie ( \"width\" )'>Would you like to reset the board width?</a></center><br/><br/>") var tab = document.getElementsByTagName("table") for(var s=0;s<tab.length;s++){ tab[s].width = get } }
boardWidth("BOARD WIDTH") boardWidth("BOARD WIDTH")
//--> </script>
For more board widths, repeat the line with the capital BOARD WIDTH
|
|