aboutsummaryrefslogblamecommitdiffstats
path: root/src/extras/sos-html-logs/share/html/overlib/objectcontentmws.js
blob: 94d1e4f37c07f4f39a8d8b78d446c47ebe437dbd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                 
/*

 objectcontentmws.js - Foteos Macrides

   Initial: October 10, 2004 - Last Revised: November 22, 2004

 Simple script for using an HTML file as object content in overlibmws popups.

 Include WRAP and TEXTPADDING,0 in the overlib call to ensure that the width

 argument is respected (unless the CAPTION plus CLOSETEXT widths add up to more

 than the width argument, in which case you should increase the width argument).



 See http://www.macridesweb.com/oltest/overflow.html for demonstrations.

*/

function OLobjectContent(data, width, height, name) {
 return ('<object data="'+data+'" width="'+width+'" height="'+height+'"'
 +(name?' name="'+name+'" id="'+name+'"':'')+' type="text/html">'
 +'<div>[object not supported]</div></object>');
}