HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 3rd, 2000, 02:17 PM
reman reman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 15 reman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello ALL!

I have the below code from The Dynamic Duo web site. It works great! HOWEVER...I would like the code to load 2+ pages into 2+ DIVs.

ANY IDEAS? Thanks for the help!
Marc
=======================================

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

<TITLE>The Dynamic Duo - External Source Files Demo [IFrame Buffer - LoadSource Function]</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!--
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

function loadSource(id,nestref,url)
{
if (ns4)
{
var lyr = (nestref)? eval('document.'+nestref+'.document.'+id) : document.layers[id]
lyr.load(url,lyr.clip.width)
}
else if (ie4)
{
parent.bufferFrame.document.location = url
}
}
function loadSourceFinish(id)
{
if (ie4) document.all[id].innerHTML = parent.bufferFrame.document.body.innerHTML
}
//-->
</SCRIPT>

<STYLE TEXT="text/css">
<!--
#contents {position:absolute; left:0; top:100; width:150; height:350; clip:rect(0,150,350,0); background-color:yellow; layer-background-color:yellow;}
#contents2 {position:absolute; left:150; top:100; width:470; height:350; clip:rect(0,470,350,0); background-color:#ff6699; layer-background-color:#ff2233;}
-->
</STYLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF">
<!-- must have bufferFrame in the body somewhere -->
<IFRAME STYLE="display:none" NAME="bufferFrame"></IFRAME>

<A HREF="javascript:loadSource('contents',null,'text-buffer.html')">load source</A><br>
<A HREF="javascript:loadSource('contents',null,'text-buffer2.html')">load source2</A><br><!--MS added-->
<A HREF="javascript:loadSource('contents',null,'text-buffer3.html')">load source3</A><br><!--MS added-->

<SPAN ID="contents"></SPAN>
<SPAN ID="contents2"></SPAN><!--MS added-->

</BODY>
</HTML>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Make 1 link load 2+ files into 2+ DIVs == Change Code?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT