inherit
37967
0
Jul 29, 2005 14:57:44 GMT -8
GodfatherRJL
246
February 2005
godfatherrjl
|
Post by GodfatherRJL on Jun 20, 2005 13:05:16 GMT -8
Is there a code to add an image into the background of the news fader? I'm not talking about the header, but the area where the text flashes. Thanks.
|
|
inherit
Dork
7641
0
Jul 5, 2007 15:11:01 GMT -8
Jay
12,589
February 2003
trugie
|
Post by Jay on Jun 20, 2005 16:15:10 GMT -8
Sure. Main footer:
<script type="text/javascript"> <!--
var bgImage = 'URL TO NEWS BG';
bgImage = (bgImage.match(/./))? bgImage : ''; var tdNode = document.getElementsByTagName('td'); for (i = 0; i < tdNode.length; i ++) { if (tdNode.item(i).width != '100%' && tdNode.item(i).parentNode.parentNode.innerHTML.match(/>Ne.?/) && tdNode.item(i).height.match(/60$/)) { tdNode.item(i).style.backgroundImage = 'url(' + bgImage + ')'; } }
//--> </script>
|
|
inherit
37967
0
Jul 29, 2005 14:57:44 GMT -8
GodfatherRJL
246
February 2005
godfatherrjl
|
Post by GodfatherRJL on Jun 20, 2005 17:04:53 GMT -8
Thank you, Jay. I'll give it a try.
|
|