Solved

Can a link change two frames?

Posted on 2001-07-25
6
135 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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 …
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…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now