Closed Thread Icon

Preserved Topic: iframe for NS4 (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18328" title="Pages that link to Preserved Topic: iframe for NS4 (Page 1 of 1)" rel="nofollow" >Preserved Topic: iframe for NS4 <span class="small">(Page 1 of 1)</span>\

 
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 12-05-2001 16:00

Who said that NS4 doesn't have iframes?
whoever said it was right!

there is something like it that loads external files...and can change it during runtime too
(As a consequence of my previous post)

code:
<html>
<head>
<title>load from file (NS4)</title>
<script language="JavaScript">
<!--
function fix()
{
var a, t, o;
a = arguments;
if (!document.layers)
return;
for (i=0; i<a.length; i++)
{
t = a[i].split(':');
o = document.layers[t[0]];
o.load(t[1], t[2]);
}
}
//-->
</script>
</head>

<body onload='fix("abc:file2load.htm:200")'>
<div id='abc' style='position:absolute;visibility:visible'>yet to be loaded from external file file2load.htm</div>
</body>
</html>



put as many <div> tags as you like, then add an extra paremeter to the fix() on onload as: "divname:external_file.htm:desired_width" .

-ikiar

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 12-05-2001 16:17

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 12-06-2001 12:36

Ini, it doesn't touch the page...it will just load the new content from the file into your layer...remember that your layer has position:absolute , so it will float over the page...you can only control its width...and can clip its height later on....

« BackwardsOnwards »

Show Forum Drop Down Menu