add overlib iframe function
authorivan <ivan>
Wed, 21 Jun 2006 12:56:23 +0000 (12:56 +0000)
committerivan <ivan>
Wed, 21 Jun 2006 12:56:23 +0000 (12:56 +0000)
httemplate/elements/iframecontentmws.js [new file with mode: 0644]

diff --git a/httemplate/elements/iframecontentmws.js b/httemplate/elements/iframecontentmws.js
new file mode 100644 (file)
index 0000000..9df9cf6
--- /dev/null
@@ -0,0 +1,21 @@
+/*\r
+ iframecontentmws.js - Foteos Macrides\r
+   Initial: October 10, 2004 - Last Revised: May 9, 2005\r
+ Simple script for using an HTML file as iframe content in overlibmws popups.\r
+ Include WRAP and TEXTPADDING,0 in the overlib call to ensure that the width\r
+ arg is respected (unless the CAPTION plus CLOSETEXT widths add up to more than\r
+ the width arg, in which case you should increase the width arg).  The name arg\r
+ should be a unique string for each popup with iframe content in the document.\r
+ The frameborder arg should be 1 (browser default if omitted) or 0.\r
+\r
+ See http://www.macridesweb.com/oltest/IFRAME.html for demonstration.\r
+*/\r
+\r
+function OLiframeContent(src, width, height, name, frameborder) {\r
+ alert(src);\r
+ return ('<iframe src="'+src+'" width="'+width+'" height="'+height+'"'\r
+ +(name!=null?' name="'+name+'" id="'+name+'"':'')\r
+ +(frameborder!=null?' frameborder="'+frameborder+'"':'')\r
+ +' scrolling="auto">'\r
+ +'<div>[iframe not supported]</div></iframe>');\r
+}\r