|
Post by Smangii on Oct 7, 2010 20:11:44 GMT
Crossbrowser
Surrounds your mini profile in a table with a head image, base image, and a repeating background (middle) image, or a solid background color.
Global Footer
<script type="text/javascript"> // Head/Base Table around Mini Profile - by Smangii
var mp_head = "HEADER.gif"; // Header image URL var mp_mid = "MIDDLE.gif"; // Repeating background image URL (Optional) var mp_bg = "#FFFFFF"; // Background color of table, include # sign var mp_base = "BASE.gif"; // Base image URL var mp_width = "200px"; // Width of the table (or your header image width) var mp_align = "left"; // Choose left, right, or center
if(location.href.match(/on=(displ|search2|viewpr|pmv|(user)?rece|cal\w+iew)/)){ var td=document.getElementsByTagName('td') for (m=0;m<td.length;m++) { if (td[m].className.match(/windowbg/i) && td[m].width=="20%") { var mp = td[m].innerHTML; td[m].innerHTML = '<table align="center" cellspacing="0" cellpadding="0" width="'+mp_width+'"><tr><td><img src="'+mp_head+'"></td></tr><tr><td align="'+mp_align+'" style="padding: 4px; background-image: url('+mp_mid+'); background-color: '+mp_bg+';">'+mp+'</td></tr><tr><td><img src="'+mp_base+'"></td></tr></table>'; }}} </script>
|
|