Jack wrote:
>No gaurantee's, but try:
>function changePages('guestbooknav.html','guestbook.html') {
>or
>function changePages("guestbooknav.html","guestbook.html") {
Hi Jack and gang,
I tried the second version (with double quotes) yesterday and got either
the same or a similar error ("missing ) after formal parameters" that with
an arrow that points to the dot in guestbooknav.html )
I finally resorted to loading a whole new frameset, but I don't like the
way it flashes as it loads and would like to figure this out.
The instructions in Heinle's book are rather cryptic. He doesn't even say
which page to put the Javascript on, so I just assumed it needed to be on
the main frameset page. Here is exactly what he says:
********************************************************************************
********
"Not surprisingly, there is a little Javascript code involved in changing
the location of multiple frames. Figure 3-9 shows a function (called
changePages() ) for changing two frames with one click:
Figure 3-9:
function changePages(toolbarURL, mainURL) {
parent.toolbar.location.href=toolbarURL;
parent.main.location.href=mainURL;
}
[Figure 3-10--which I haven't included--shows the function for changing
three frames with one click]
"This changes the locations of both the 'main' frame and the 'toolbar'
frame when you pass it through the appropriate URLs. For example, to change
the location of the 'toolbar' frame [my single quotes represent italics] to
'toolbar_document2.htm' and the location of the 'main' frame to
'main_document2.html' create a link with the Javascript pseudoprotocol that
runs the 'changePages()' function:
<A
HREF="javascript:changePages('toolbar_document2.html','main_document2.html'):
*
********************************************************************************
*******
Suz
Suzanne Stephens, Dave Stephens Design; Ashland, Oregon
541-552-1190, 541-1192 http://www.KickassDesign.com/
CyberCircus Grand Prize Winners http://www.thecybercircus.com/
Web Page Design for Designers: http://www.wpdfd.com/wpdres.htm
Clip Art: http://www.freeimages.com/artists/
Tender Loving Care Interactive DVD movie: http://tenderlovingcare.cc/
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------