inherit
52328
0
Mar 13, 2009 16:15:58 GMT -8
CrAzY_J
871
July 2005
crazyj2
|
Post by CrAzY_J on Jan 7, 2006 20:06:16 GMT -8
Code description: With this code you can add a "header" image and a "footer" image to the top welcome table. Code creator: CrazY_J Code placement: Global Headers Code instructions: red part = url to header image. blue part = url to footer image
<script type='text/javascript'> /* Welcome table head/base images created by CrAzY_J do not redistribute this code without the creator's permission*/
var HeadImage = 'Header Image Url'; var FootImage = 'Footer Image Url';
var first = document.body.getElementsByTagName('table')[0]; var fifth = document.body.getElementsByTagName('br')[4] var image1 = document.createElement('img'); var image2 = document.createElement('img'); var center1 = document.createElement('center'); var center2 = document.createElement('center'); image1.border = 0; image1.src = HeadImage; image2.border = 0; image2.src = FootImage
center1.appendChild( image1 ); center2.appendChild( image2 ); document.body.insertBefore( center1, first ); document.body.insertBefore( center2, fifth );
</script>
|
|