Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Can this be done?

Can this be done?
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2002
Location: Japan
Status: Offline
Reply With Quote
Oct 15, 2003, 04:27 AM
 
Hi All,

Here is my question:
Can I have one link open two pages?
I have a frameset with 3 parts. I want to be able to click on one link and have two parts of the frame display ne pages. I am currently trying to make a test and want the students to be able to click only one link.

If this is possible, please let me know.

A frustrated teacher in Japan.

Cheers and beers,
Bill
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 15, 2003, 04:44 AM
 
found this for you, here
[php]
<!-- TWO STEPS TO INSTALL LOAD TWO FRAMES:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function loadFrames(page1, page2) {
framecode = "<frameset rows='50%,50%'>"
+ "<frame src='" + page1 + "'>"
+ "<frame src='" + page2 + "'>"
+ "</frameset>";

page = window.open("");
page.document.open();
page.document.write(framecode);
page.document.close();
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<a href="javascript:loadFrames('http://www.aol.com','http://www.excite.com')">Load AOL and Excite.com in Frames!</a>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.95 KB -->[/php]
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
wrwjpn  (op)
Fresh-Faced Recruit
Join Date: Nov 2002
Location: Japan
Status: Offline
Reply With Quote
Oct 15, 2003, 08:10 AM
 
philzilla,

Thank you for a quick reply. I will give it a shot and let you know how it went.

Again, Thanks

Cheers and Beers,
Bill
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:16 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2