2 iframecontentmws.js - Foteos Macrides
\r
3 Initial: October 10, 2004 - Last Revised: May 9, 2005
\r
4 Simple script for using an HTML file as iframe content in overlibmws popups.
\r
5 Include WRAP and TEXTPADDING,0 in the overlib call to ensure that the width
\r
6 arg is respected (unless the CAPTION plus CLOSETEXT widths add up to more than
\r
7 the width arg, in which case you should increase the width arg). The name arg
\r
8 should be a unique string for each popup with iframe content in the document.
\r
9 The frameborder arg should be 1 (browser default if omitted) or 0.
\r
11 See http://www.macridesweb.com/oltest/IFRAME.html for demonstration.
\r
14 function OLiframeContent(src, width, height, name, frameborder) {
\r
15 return ('<iframe src="'+src+'" width="'+width+'" height="'+height+'"'
\r
16 +(name!=null?' name="'+name+'" id="'+name+'"':'')
\r
17 +(frameborder!=null?' frameborder="'+frameborder+'"':'')
\r
18 +' scrolling="auto">'
\r
19 +'<div>[iframe not supported]</div></iframe>');
\r