?
Solved

Can a link change two frames?

Posted on 2001-07-25
6
Medium Priority
?
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
ClassyLinks earned 800 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
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
Suggested Courses

752 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