[freeside-commits] freeside/httemplate/elements iframecontentmws.js, NONE, 1.1

Ivan,,, ivan at wavetail.420.am
Wed Jun 21 05:56:25 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail:/tmp/cvs-serv29187

Added Files:
	iframecontentmws.js 
Log Message:
add overlib iframe function

--- NEW FILE: iframecontentmws.js ---
/*
 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>');
}



More information about the freeside-commits mailing list