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