Post by Serket on Jul 4, 2007 14:53:05 GMT -5
EDIT (July 25, 2007): Made this code a lot easier to use .
EDIT EDIT: I forgot to tell you it is crossbrowser
EDIT EDIT: I forgot to tell you it is crossbrowser
<script type="text/javascript">
/*Created by Serket, http://www.freewebs.com/tabasanarts/main.html, keep this header in this at all times!*/
//Left Table
var left_title="Title" //Change this to the title for the left table
var left_stuff="Stuff Here" //Change this to some stuff you want for the left table
//Middle Table
var middle_title="Title" //Change this to the title for the middle table
var middle_news="News Here" //Change this to news for the middle table
//Point Table
var points_title="House Points" //Change this to the title for the Point table
//Teams
var team_one="Gryffindor" //Change this to the nameof team one
var team_two="Slytherin" //Change this to the nameof team two
var team_three="Ravenclaw" //Change this to the nameof team three
var team_four="Hufflepuff" //Change this to the nameof team four
//Team Colors
var one_color="#000000" //Change the colors of the name
var two_color="#000000" //Change the colors of the name
var three_color="#000000" //Change the colors of the name
var four_color="#000000" //Change the colors of the name
//Team Points
var one_points="0" //Change then umber of points each team recieves
var two_points="0" //Change then umber of points each team recieves
var three_points="0" //Change then umber of points each team recieves
var four_points="0" //Change then umber of points each team recieves
//No need to edit below :)
document.write("<center><table border=0 cellpadding=4 cellspacing=1 width=716 class='bordercolor'><tr><td class='titlebg' width=20%>"+left_title+"</td><td class='titlebg' width=60%>"+middle_title+"</td><td class='titlebg' width=20%>"+points_title+"</tr></td><tr><td class='windowbg' width=20% valign=top>"+left_stuff+"</td><td class='windowbg' width=60% valign=top>"+middle_news+"</td><td class='windowbg' width=20% valign=top><font color="+one_color+">"+team_one+"</font>: "+one_points+" pts<br><font color="+two_color+">"+team_two+"</font>: "+two_points+" pts<br><font color="+three_color+">"+team_three+"</font>: "+three_points+" pts<br><font color="+four_color+">"+team_four+"</font>: "+four_points+" pts</tr></td></table></center>");
</script>