<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Flavio,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I think if you change the references from document 
to parent.document you will not make the style change in the opener window but 
only in the popup !</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Barry If you look at the logic of the code you are 
using you must includes the css files&nbsp;and js file into the window where you 
like to change the font size because if you includes the css files into the 
popup and try to&nbsp;enable or disable the one you want you will only make the 
font&nbsp;changing&nbsp;in the popup window.</FONT></DIV>
<DIV><FONT face=Arial size=2>If I found 5 min I do the implementation for 
you.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Laurent</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=flavio@economisa.com.br href="mailto:flavio@economisa.com.br">Flavio 
  Gomes</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 13, 2005 1:50 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] Font size 
  control bar</DIV>
  <DIV><BR></DIV><BR>You also copied the styleswitcher.js and all the .css 
  files, right?<BR><BR><PRE>Original:
================================================================================
function setActiveStyleSheet(title) {
  var i, a, main;
    for(i=0; (a = <B>document</B>.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 &amp;&amp; a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}
=================================================================================

Then you'll have to change all references from document to parent.document.

PS.: Watch out for popup-blockers.

</PRE>Hope to Help,<BR><BR><PRE class=moz-signature cols="72">-- 
Flavio Gomes
<A class=moz-txt-link-abbreviated href="mailto:flavio@economisa.com.br">flavio@economisa.com.br</A></PRE><BR><BR>Barry 
  Conner wrote: 
  <BLOCKQUOTE 
  cite=mid9B3006CF6C51E4498BC82AEDC60ABED347E720@SVRMAIL.cityofhuntsville.com 
  type="cite"><PRE wrap="">I've created the following little view control bar which I designed to display in a frames navigation window for my HTML-based application interface.  The frame is generated as a popup to exclude all of the undesirable toolbar &amp; status bar overhead.
 
The actual font manipulation here is handled via a set of JS &amp; CSS files (as posted at <A class=moz-txt-link-freetext href="http://www.alistapart.com/articles/relafont">http://www.alistapart.com/articles/relafont</A> )
 
HERES THE QUESTION:  This is intended as a mere view control bar, so how might I script the fontsize controls to act on the main frame rather than on itself???
 
Thanks for any thoughts you might have on a solution!
 
Barry
 
&lt;!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--&gt;
&lt;form name="font_select" action="GET"&gt;
     &lt;table align="center" width="100%" location="0" cellspacing="0" cellpadding="4" rules=cols frame=below border="1" margins="0"&gt;
          &lt;tr&gt;
               &lt;td width="25%"&gt;
                    &lt;strong&gt;
                    View Control:
                    &lt;/strong&gt;
               &lt;/td&gt;
               &lt;td align="center"&gt;
                    &lt;button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:history.back()">"javascript:history.back()"</A>&gt;&lt;small&gt;&amp;nbsp;&amp;nbsp;Back&amp;nbsp;&amp;nbsp;&lt;/small&gt;&lt;/button&gt;
               &lt;/td&gt;
               &lt;td align="center"&gt;
                    &lt;button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:history.forward()">"javascript:history.forward()"</A>&gt;&lt;small&gt;Forward&lt;/small&gt;&lt;/button&gt;
               &lt;/td&gt;
               &lt;td align="center"&gt;
                    &lt;button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:fontsizedown();">"javascript:fontsizedown();"</A>
                    value=" font - " /&gt;
                    &lt;small&gt;Smaller Font&lt;/small&gt;&lt;/button&gt;
               &lt;/td&gt;
               &lt;td align="center"&gt;
                    &lt;button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:fontsizereset()">"javascript:fontsizereset()"</A> /&gt;
                    &lt;small&gt;&amp;nbsp;Reset Font&amp;nbsp;&lt;/small&gt;&lt;/button&gt;
               &lt;/td&gt;
               &lt;td align="center"&gt;
                    &lt;button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:fontsizeup();">"javascript:fontsizeup();"</A>
                    value=" font + " /&gt;
                    &lt;small&gt;&amp;nbsp;Larger Font&amp;nbsp;&lt;/small&gt;&lt;/button&gt;
               &lt;/td&gt;
          &lt;/tr&gt;
     &lt;/table&gt;
     &lt;hr /&gt;
&lt;/form&gt;
&lt;!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--&gt;

_______________________________________________
Javascript mailing list
<A class=moz-txt-link-abbreviated href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A>
<A class=moz-txt-link-freetext href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</A>
  </PRE></BLOCKQUOTE>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Javascript mailing 
  list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>