Click to See Complete Forum and Search --> : IFRAME with background Image ?


tcurrier
07-19-2008, 02:37 PM
I have spent 2 hours trying to find a solution to this... There are many examples, but none of them work...

Does anyone have a foolproof way of adding a background image to an IFRAME ?

Thanks for any help !

Mr J
07-19-2008, 03:09 PM
See if this is any help

www.huntingground.freeserve.co.uk/webplus/iframes/iframe_trans.htm

ray326
07-19-2008, 04:42 PM
You also have to have control over the document loaded into the iframe.

tcurrier
07-19-2008, 05:14 PM
Thanks... I see what you mean....

I tried loading a plain ASCII text file into the IFRAME and it nullifies the background effect. Apparently I can only load another HTML file into the IFRAME and still have a background image ?

donatello
07-20-2008, 02:42 PM
Thanks... I see what you mean....

I tried loading a plain ASCII text file into the IFRAME and it nullifies the background effect. Apparently I can only load another HTML file into the IFRAME and still have a background image ?

W/regard to an iFrame, I think so...

But you can put text into a DIV and have a different background... unless it absolutely has to be an iFrame.

Here is an Ajax script (http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm) you can play with that will do what you want. You will need to modify it a bit for look & feel, but it will retrieve the contents of a text file and display it dynamically on the page inside of a DIV, where you could have whatever background you like.

You could also try a combo box (http://www.dynamicdrive.com/dynamicindex1/combodescribe.htm).