Solved

Targeting two frames in Pagemill 3.0

Posted on 2003-12-10
3
174 Views
Last Modified: 2010-04-07
I've got a 3 frame layout in Pagemill 3.0 (Windows XP).  Top is header that doesn't change.  Left is menu with buttons that change.  Center is main body.

I don't know how to use java to do all the cool menu button stuff, so I'm trying to do it with a jpeg menu I've created and placed in the left frame.  When someone clicks one button, I'd like the center frame to change but also the left button frame to change to a version with the current choice highlighted.

I've created all the differrent versions of the buttons but I can't seem to tell Pagemill to target two changes at once.  I can either get the buttons to change to the next one or to change the center frame.  How can I tell it to do both?
0
Comment
Question by:marshak
3 Comments
 
LVL 1

Accepted Solution

by:
Perpetual earned 500 total points
Comment Utility
Marshak,

I don't know how to do this in 'straight' html, but with a little help of javascript this task is rather simple.

On your page that contains the 'left menu with buttons' insert the following into the <HEAD> </HEAD> part of the document:

<script language="JavaScript" type="text/javascript">
function twoFramesOneClick(LinkToVisit){
top.FrameNameWithMenu.location.href = LinkToVisit;
}
</script>

And in the <BODY> for the links use something like:

<A href="http://www.google.com" onClick="twoFramesOneClick('MenuPage.html')" target="FrameNameWithContent">Google</A>


Hope this helps.

Cheers

eric.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
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 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…

771 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

12 Experts available now in Live!

Get 1:1 Help Now