PDA

View Full Version : Matrix Text Effect - Possible Custom Background Image?



leeg83
02-19-2013, 06:55 PM
1) Script Title: Matrix Text Effect

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex10/matrixeffect.htm

3) Describe problem:

Hi All,

Firstly let me just say, excellent script guys! now my question is, is there a way to add a custom .png image 150px x 150px centered behind the effect?

I have removed the line:

ma_tab.style.backgroundColor="#000000";

so I can see my web pages background image through the effect, however I cannot seem to get an image to show between the background and the effect, any help you could offer would be greatly appreciated.

Thanks in advance,

Lee

jscheuer1
02-20-2013, 04:04 AM
Well there's also:


ma_tab='<ta'+'ble align="'+effectalign+'" border="0" style="background-color:#000000">';

But that's only supposed to be for older IE (version 5 or less). Just to be on the safe side, make that:


ma_tab='<ta'+'ble align="'+effectalign+'" border="0" style="background-color:transparent">';

And that might be a good idea with the line you deleted, bring it back and make it:


ma_tab.style.backgroundColor="transparent";

But none of that should matter in today's browsers. It might though if you have conflicting styles elsewhere on or associated with the page. I'm thinking that there's something else about the page you have it on that's causing a background other than the one you want. Other HTML and/or styles of the page could be causing it.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.