Solved

Can a link change two frames?

Posted on 2001-07-25
6
137 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
New Website 15 30
Intrasite icons that launch citrix 8 87
Drawing a Polygon with Google Maps 3 359
Set up Wildfly 10 8 392
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
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…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

785 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