Skip to content

Instantly share code, notes, and snippets.

@metavida
Created December 16, 2008 12:15
Show Gist options
  • Save metavida/36436 to your computer and use it in GitHub Desktop.
Save metavida/36436 to your computer and use it in GitHub Desktop.
A few code samples from the StatCounter blog: http://blog.statcounter.com/2008/12/using-html-to-format-a-statcounter/ with alternative markup using CSS
<!-- Big Purple -->
<!-- The way StatCounter suggested -->
<div style="font-size:32px;">
<font face="Verdana" color="#800080"><b>
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4296912; ...
...</a></div></noscript>
<!-- End of StatCounter Code -->
</b></font></div>
<!-- A better way of doing things -->
<div style="font:bold 32px Verdana; color:#800080">
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4296912; ...
...</a></div></noscript>
<!-- End of StatCounter Code -->
</div>
<!-- Snow Background -->
<!-- The way StatCounter suggested -->
<table background="snow.jpg" width="75px">
<tr><td align="center" valign="middle">
<font color="#000080">
<div style="font-size:30px;"><b>
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4296912; ...
...</a></div></noscript>
<!-- End of StatCounter Code -->
</b></div></font></td></tr></table>
<!-- A better way of doing things -->
<div style="background:url(snow.jpg); width:75px; padding:10px; text-align:center; font-size:30px; color:#000080" >
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4296912; ...
...</a></div></noscript>
<!-- End of StatCounter Code -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment