[Javascript] Javascript fontsize control from external page

tedd tedd at sperling.com
Tue Oct 3 10:44:12 CDT 2006


At 8:27 AM -0400 10/3/06, Mike Dougherty wrote:
>On Mon, 2 Oct 2006 15:40:17 -0500
>  "Barry Conner" <BConner at huntsvilletx.gov> wrote:
>>  Only the main frame is needed for navigation, so the control bar 
>>at the top seemed like a good way of providing a static set of 
>>tools which could always act on the main frame.
>
>Can you use a server-side include?  If you put your menu/navigation 
>into a single document (easier to manage in one place) then use SSI 
>in the appropriate place on each page, the markup (and whatever 
>script it's using) will be acting in the context of the current page 
>rather than a frame.
>
>Does that make sense?

Yes, that makes sense -- but, none of this is javascript.

With that said, I agree with your include suggestion, but you can use 
an include via shtml or php -- concept is the same. I find php easier.

For a smart menu via shtml, I use:

<ul>
<li><a<!--#if expr="${DOCUMENT_NAME} = /index.shtml/" -->><!--#else 
--> href="index.shtml"><!--#endif -->Index</a></li>
<li><a<!--#if expr="${DOCUMENT_NAME} = /a.shtml/" -->><!--#else --> 
href="a.shtml"><!--#endif -->A</a></li>
<li><a<!--#if expr="${DOCUMENT_NAME} =/b.shtml/" -->><!--#else --> 
href="b.shtml"><!--#endif -->B</a></li>
<li><a<!--#if expr="${DOCUMENT_NAME} = /c.shtml/" -->><!--#else --> 
href="c.shtml"><!--#endif -->C</a></li>
<li><a<!--#if expr="${DOCUMENT_NAME} = /d.shtml/" -->><!--#else --> 
href="d.shtml"><!--#endif -->D</a></li>
</ul>

For a smart menu via php, I use:

http://sperling.com/examples/smart-menu/

Sorry for the off-js post -- just trying to help.

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list