Re: Getting the body bgColor
by "Doug Dossett" <hwg(at)miscsites.com>
|
| Date: |
Tue, 5 Feb 2002 14:49:35 -0800 |
| To: |
Hank Marquardt <hmarq(at)yerpso.net>, hwg-techniques(at)hwg.org |
| References: |
localhost |
| |
todo: View
Thread,
Original
|
|
Hello,
Thanks for the reply. I wish almost every day I was using PHP for this site.
I have a site navigation with a pop up box for Netscape 4.x users. This is done partly
using a table. I want to make the table have the same bgcolor as the page itself. It
seems it should naturally inherit this, but if I don't specify a color it comes up
transparent. Since different sections of the site have different bgcolors, I wanted to
have it get this info on the fly vs me having to hard code it for each page.
You can see basically the same code at http://www.bastyr.edu, though the site I'm
working on isn't publically available yet. It's the left hand nav, and again you have to be
using Netscape 4.x to see what I'm talking about.
Thanks for any further suggestions.
Doug
On 5 Feb 2002 at 13:10, Hank Marquardt wrote:
> Only ways that come to mind would be parsing the file, using output
> buffering and parsing the buffer (you can do this in PHP, not sure about
> ASP), outputting all your headers including the BODY tag as part of a
> script that controls said color, or inline some scripting to control the
> bgcolor (perhaps with a cookie for persistence).
>
> I guess, I'll turn it back on you and ask what outcome you're trying to
> achieve? ... then maybe I can come up with more alternatives.
>
> Hank
>
> On Tue, Feb 05, 2002 at 10:30:04AM -0800, Doug Dossett wrote:
> > Hello all:
> >
> > I don't think this is possible, but I thought I'd ask just in case.
> >
> > I'm using ASP with VBScript for server side processing. I'd like to be able to get the
> > page being loaded's bgColor. The only way I can see to possibly get this info is via
> > client side JavaScript.
> >
> > So is there anyway, besides using FSO or something to read the file and parse it, to
> > get the body's bgColor value on the server side?
> >
> > Thanks,
> >
> > Doug Dossett
> > MiscSites.com
>
> --
> Hank Marquardt <hank(at)yerpso.net>
> http://web.yerpso.net
> GPG Id: 2BB5E60C
> Fingerprint: D807 61BC FD18 370A AC1D 3EDF 2BF9 8A2D 2BB5 E60C
> *** Web Development: PHP, MySQL/PgSQL - Network Admin: Debian/FreeBSD
> *** PHP Instructor - Intnl. Webmasters Assn./HTML Writers Guild
> *** Beginning PHP -- Starts January 7, 2002
> *** See /services/classes
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.