Solved

Can a link change two frames?

Posted on 2001-07-25
6
138 Views
Last Modified: 2013-12-24
FrontPage 2000 on Window 98se

I have a page at http://johnwille.com  I would like to make it so that when a person clicks on the nav buttons in the "content" frame, the "main" frame changes as normal and the "content" frame chagnes to display a yellow button for the page the visitor is currently viewing.  Does this have to be a whole new page, or is there a way to code in the change so that if jobs.htm is displayed in the "main" frame then btnjobs_ylw.gif is displayed in the "contents" frame in place of btnjob_1.gif?

Thanks,
Dan
0
Comment
Question by:pdevans
  • 4
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
ClassyLinks earned 200 total points
ID: 6319928
This can be done (I'm pretty sure) but we have to use JavaScript.  

Are you ready for that?  You mentioned in your last question that you are a WYSIWYG guy....we need to delve into html mode for this.
0
 

Author Comment

by:pdevans
ID: 6319982
Looks like I'm in for it, huh?  Excellent, I was wondering about Javascript.
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6320001
Do you want me to give you some help with it?  I'm curious because people usually don't grade me until I've actually helped them  8-)
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6320023
The script we will use to do this is from:

http://javascript.internet.com/navigation/change-2-frames.html

We will need to modify it a fair bit...but it is a starting point.
0
 

Author Comment

by:pdevans
ID: 6322814
I already have the frames named, so I don?t need the first segment of code that the webpage has.  Here is the JavaScript from the second segment.

<!-- Begin
function loadFrames(frame1,page1,frame2,page2) {
eval("parent."+frame1+".location='"+page1+"'");
eval("parent."+frame2+".location='"+page2+"'");
}
// End -->

I think this one has me completely befuddled.  If I didn?t know what it was supposed to do I don?t think I would get it.  I think I understand how the links in the html are working, but the JavaScript itself I don?t get.

I am guessing that the link to load Jobs/Jobs.htm in the main frame, and LftJobs.htm in the contents from should look like;

<a href ="javascript:loadFrames('contents', 'LftJobs.htm', 'main', '/Jobs/Jobs.htm')">Load Page 1 & Page 2</a><br>
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6322960
Perfect!

I knew you could do it!  

Now just put your code for the rollover buttons in place of the text for the anchor, then you are set to roll(over)!  ;-)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Timer 6 95
online form save filled out 10 56
WEB Service vs ??? 7 122
I starting with php 12 137
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question