| 5 |
| | | | | - Code:
//FM Issu/Scribd docs FINAL var source = 'Distribution/Editing of this code is allowed but the source(s) must be mentioned. http://www.diondesigns.org & http://lgforum.forumotion.co.uk '; $('.postbody div').each(function() { var divs = $(this); for (var d = 0; d < divs.length; ++d) { var div = divs[d]; var hasDocS = div.innerHTML.split("[doc]"); var hasDocI = div.innerHTML.split("[docis]"); var hasDocD = div.innerHTML.split("[docdx]"); if (hasDocI.length == 3) { // so that should give us three "chunks" in the array: // [0]: anything before the first [doc] var IcontA // [1]: stuff between the [doc] and [doc] // [2]: anything after the last [doc] var IcontB // yes, it's possible for both 0 and 2 to contain blank strings...that's okay var urlI = hasDocI[1]; var IcontA = hasDocI[0]; var IcontB = hasDocI[2]; div.innerHTML = '<div style="float:right;color:red;font-size:8px;font-weight:bold;">DO NOT QUOTE THIS POST ENTIRELY. IT WILL DRAIN BANDWIDTH!!</div><br>' + IcontA + '<center><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="width:420px;height:272px" ><param name="movie" value=http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf?mode=mini&backgroundColor=%23222222&' + urlI + ' "/><param name="allowfullscreen" value="true"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><embed src="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" wmode="transparent" style="width:420px;height:272px" flashvars="mode=mini&backgroundColor=%23222222&' + urlI + '" /></object></center>' + IcontB + ' '; } else if (hasDocS.length == 3) { var urlS = hasDocS[1]; var ScontA = hasDocS[0]; var ScontB = hasDocS[2]; div.innerHTML = '<div style="float:right;color:red;font-size:8px;font-weight:bold;">DO NOT QUOTE THIS POST ENTIRELY. IT WILL DRAIN BANDWIDTH!!</div><br>' + ScontA + '<iframe class="scribd_iframe_embed" ' + urlS + ' data-auto-height="true" data-aspect-ratio="" scrolling="no" ' + ' width="100%" height="600" frameborder="0"></iframe>' + ScontB + ' '; } else if (hasDocD.length == 3) { var urlD = hasDocD[1]; var DcontA = hasDocD[0]; var DcontB = hasDocD[2]; div.innerHTML = '<div style="float:right;color:red;font-size:8px;font-weight:bold;">DO NOT QUOTE THIS POST ENTIRELY. IT WILL DRAIN BANDWIDTH!!</div><br>' + DcontA + '<br><embed ' + urlD + ' type="application/x-shockwave-flash" quality="best" width="100%" height="641" align="Middle" name="FlashPaper" id="FlashPaper" play="true" loop="false" allowScriptAccess="always" type="Flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="extName=FlashPaper&sourceMode=embed"></embed><br>' + DcontB + ''; } } });
| | | | |
|
|