<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<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>
</body>
</html>