Debt Consolidation - Debt Consolidation - Shopping news - Debt Consolidation - Debt Consolidation

PDA

View Full Version : Script for selecting text underneath an image?


gravestmor
Mar 19th 2008, 6:55 pm
Hi,

I am working a website where I would like to have a semi-transparent png image in a div tiling over the top of the entire page.

But I would also like text that is beneath the image to be visible.
I have set up an (extremely ugly) test page showing what I would like to achieve here:

http://darch.com.au/test

and I was wondering if this was possible using javascript.

any help or advice would be much appreciated.

stephan2307
Mar 20th 2008, 7:05 am
If the text is in some html element and got an id assigned to it then you can easily do it like this.



var text = document.getElementById('THEID').innerHTML;



or similar.

HOpe it helps