Thanks for the responses.
Here is what I added to the top of my config file:

BodyTag[^]: <BODY BGCOLOR="#ffffff"
onload="if(parent.frames[0]&&parent.frames['header'].Go)parent.frames['heade
r'].Go();">

That adds the correct code to every page and now my menu works...

Thanks for the fast response everyone....

-MannyO

-----Original Message-----
From: Manny Ortega 
Sent: Thursday, April 17, 2003 1:09 PM
To: '[EMAIL PROTECTED]'
Subject: [mrtg] Re-writing html code


I need to know if this can be done with the setup I have:
When MRTG creates a web page this is what appears in the html code:

</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>Traffic Analysis for Public Network TARGET etc...</H1> <TABLE> <TR>

I need to change the body tag to include a special line for a java menu that
I'm trying to implement, I won't go into detail about the menu but I need
the following code inserted in the page: <body
onload="if(parent.frames[0]&&parent.frames['header'].Go)parent.frames['heade
r'].Go();"> 
Basically, I need that section to look like this:

</HEAD>
<BODY BGCOLOR="#ffffff"
onload="if(parent.frames[0]&&parent.frames['header'].Go)parent.frames['heade
r'].Go();">
<H1>Traffic Analysis for Public Network TARGET etc...</H1> <TABLE> <TR>

If the html code has that frame reference above in place, my menu works, I
have over 200 targets and I thought I could bite the bullet and paste the
code on every single page but the problem is that in 5 minutes the pages are
recreated and the body tag goes back to <BODY BGCOLOR="#ffffff"> and my menu
stops working.

I am running MRTG 2.9.18 on a W2K server, any reference to reading material
will be appreciated.

Thanks.

Alvaro (Manny) Ortega
Technical Support Analyst 
Universal Weather and Aviation, Inc. 
rm -rf /usr/bin/laden 

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to