|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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> |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Make 1 link load 2+ files into 2+ DIVs == Change Code? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|