<!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> </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> </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 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 enable or disable the one you want you will only make the
font changing 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> </DIV>
<DIV><FONT face=Arial size=2>Laurent</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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 && 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 & status bar overhead.
The actual font manipulation here is handled via a set of JS & 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
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<form name="font_select" action="GET">
<table align="center" width="100%" location="0" cellspacing="0" cellpadding="4" rules=cols frame=below border="1" margins="0">
<tr>
<td width="25%">
<strong>
View Control:
</strong>
</td>
<td align="center">
<button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:history.back()">"javascript:history.back()"</A>><small>&nbsp;&nbsp;Back&nbsp;&nbsp;</small></button>
</td>
<td align="center">
<button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:history.forward()">"javascript:history.forward()"</A>><small>Forward</small></button>
</td>
<td align="center">
<button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:fontsizedown();">"javascript:fontsizedown();"</A>
value=" font - " />
<small>Smaller Font</small></button>
</td>
<td align="center">
<button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:fontsizereset()">"javascript:fontsizereset()"</A> />
<small>&nbsp;Reset Font&nbsp;</small></button>
</td>
<td align="center">
<button type="button" onclick=<A class=moz-txt-link-rfc2396E href="javascript:fontsizeup();">"javascript:fontsizeup();"</A>
value=" font + " />
<small>&nbsp;Larger Font&nbsp;</small></button>
</td>
</tr>
</table>
<hr />
</form>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
_______________________________________________
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>