Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Can a link change two frames?

Posted on 2001-07-25
6
Medium Priority
?
145 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

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 …
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 make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
Suggested Courses

604 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