[Javascript] Javascript fontsize control from external page

Barry Conner BConner at huntsvilletx.gov
Tue Oct 3 15:36:07 CDT 2006


I appreciate your help Tedd.  I'm sorry it has gone afield from the Javascript topic too.  I just figured with my Javascript font-size controls there would be a way to tell it what pagename or frame I wanted it to act on, rather than self.  For my original Javascript controls, I experimented with every plausible syntax I could find, but it either didn't work at all, or acted only on the control-bar page itself.
 
Again Thanks!
 
Barry
 
Barry Conner
City of Huntsville
936-294-5785
bconner at huntsvilletx.gov <mailto:bconner at huntsvilletx.gov> 
 

________________________________

From: javascript-bounces at LaTech.edu on behalf of tedd
Sent: Tue 2006-10-03 10:44 AM
To: [JavaScript List]
Subject: Re: [Javascript] Javascript fontsize control from external page



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://sperling.com/>   http://ancientstones.com <http://ancientstones.com/>   http://earthstones.com <http://earthstones.com/> 
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6808 bytes
Desc: not available
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20061003/5a67fbb9/attachment.bin>


More information about the Javascript mailing list