/* Unless otherwise indicated, all code below was written by Eric Costello, and you are free to use, modify and distribute it. Please leave this comment block intact so that people can find the original unmodified version at: http://www.glish.com/css/blogger/ Also see: http://www.schwa.com http://www.glish.com */ if (document.getElementById) { // kosher // get random RGB values so we can change background and link colors var r = Math.floor(Math.random()*241); var g = Math.floor(Math.random()*241); var b = Math.floor(Math.random()*241); // variables to hold the lighter shade RGB values var rp1, gp1, bp1, rp2, gp2, bp2, rp3, gp3, bp3; //we'll use these values to calculate lighter shades var p1 = .1; var p2 = .15; var p3 = .2; getLighterRGBShades(); // get random intervals used to calculate the changing RGB values var ri = Math.floor(Math.random()*5); var gi = Math.floor(Math.random()*5); var bi = Math.floor(Math.random()*5); // read the cookie to get the proper font family, set to default Verdana if a first timer ff = readCookie('fontFamily'); if (ff=='') ff='Verdana, Arial, Helvetica, sans-serif'; // read the cookie to get the proper font size, set to default 12 if a first timer fs = parseInt(readCookie('fontSize')); if (!fs>0) fs=12; // set the appropriate font sizes for the relevant HTML elements // any other elements that you want to have a changeable font size must be added to this list // in the form "element_fs" and then also added to the setSizes and changeType functions var body_fs, h1_fs, h2_fs, h3_fs, h4_fs, h5_fs, h6_fs; setSizes(); // lets write out styles with the changeable values that we get from the cookies // and the random rgb values. This will make the page display document.writeln('
Site hosted by Angelfire.com: Build your free website today!