<IFRAME> problem with text/background color in netscape

F

foo

the following code sets the background color to black, text color to
white then embeddes a rectanglar frame displaying the textfile
'foo.txt'. at first the frame appears to be merely a large black box, up
upon closer inspection (highlighting the text within the frame) the
problem simply appears to be that the text and background color are both
set to black, and thus the file merely appears not to have loaded.

can anyone tell me how to set the background and text colors for an
embedded frame?

thanks in advance


<HTML><HEAD><TITLE>foo</TITLE></HEAD>

<BODY BGCOLOR="#000000" TEXT="#FFFFFF">

foo<BR>

<IFRAME SRC="foo.txt" WIDTH="100%" HEIGHT="200" NAME="fooframe">
</IFRAME>

</BODY>
</HTML>
 
R

rf

foo said:
the following code sets the background color to black, text color to
white then embeddes a rectanglar frame displaying the textfile
'foo.txt'. at first the frame appears to be merely a large black box, up
upon closer inspection (highlighting the text within the frame) the
problem simply appears to be that the text and background color are both
set to black, and thus the file merely appears not to have loaded.

can anyone tell me how to set the background and text colors for an
embedded frame?

Do it in the HTML page that is in the iframe.

Cheers
Richard.
 
F

foo

rf said:
Do it in the HTML page that is in the iframe.
ah, there might be a problem there. the page in the frame is *not* an
html file, it is a plain ascii text file.
 
R

rf

foo said:
ah, there might be a problem there. the page in the frame is *not* an
html file, it is a plain ascii text file.

Well then you are out of luck, unless you want to jump through all sorts of
hoops to access the dom of that document that lives within the iframe and
set the relevant attributes manually with client side javascript which does
not even work for 15% of your viewers anyway.

iframe == different browser window.

Cheers
Richard.
 
W

Whitecrest

Well then you are out of luck, unless you want to jump through all sorts of
hoops to access the dom of that document that lives within the iframe and
set the relevant attributes manually with client side javascript which does
not even work for 15% of your viewers anyway.

iframe == different browser window.

Actually if you used server side script you could easily (with no
javascript) format a page then add the text from a file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top