Topic: Optimizing JavaScript Ad Sizes |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 01-18-2007 17:51
An ad will be served up via a script tag code: <script type="text/javascript" src="[site]/ad.php"></script>
code: <table border='1' with='120' height='600' bordercolor='#000000' cellspacing='0' cellpadding='5'><tr><td valign='top'> <center><font face=Verdana size=2 color=black><b>[Site Name]</b></font></center><br> <a href="[ad link]"><font face=Verdana size=1>[link title]</font></a><br> ... <p><center><b><a href='[Parent Site Link']><font face=verdana size=1 color=red>[Parent Site Name]</font></a></b></center></p> </td></tr></table>
code: <div style="border:1px solid black;width:110px;height:590px;padding:5px;font-size:x-small;font-family:verdana;"> <h1 style="margin:0;padding:0;font-size:13px;text-align:center;margin-bottom:20px;">[Site Name]</h1> <ul style="list-style:none;margin:0;padding:0;"> <li><a href="[ad link]">[link title]</a></li> ... </ul> <p><a href="[Parent Site Link]" style="color:red;font-weight:bold;">[Parent Site Name]</a></p> </div>
|
Paranoid (IV) Inmate From: Norway |
posted 01-18-2007 19:34
Well there's not much you can do if you want to keep the markup 'standard compliant'. Use shorthand CSS properties to set the font-size and font-family at once, replace black by #000. But you'll save like 10-15 bytes this way. Not more. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 01-18-2007 20:34
Gotta love IE and quirks mode. |
Paranoid (IV) Inmate From: Norway |
posted 01-19-2007 01:55
duh! |