PDA

View Full Version : multibox (phatfusion) / swf and flv problem


diegooriani
02-11-2008, 04:17 PM
Hi,

I found in the internet this great javascript called Multibox, it's very similar to the Lightbox Script. Basically I am having problems trying to display SWF and FLV files. I am doing exactly the same thing the guide in the website tells you to do, but is not working.

This is the piece where I call the scripts:

<link href="multibox/multibox.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]><link rel="stylesheet" href="ie6.css" type="text/css" media="all" /><![endif]-->

<script type="text/javascript" src="multibox/mootools.js"></script>
<script type="text/javascript" src="multibox/overlay.js"></script>
<script type="text/javascript" src="multibox/multibox.js"></script>

<script type="text/javascript">
var box = {};
window.addEvent('domready', function(){
box = new MultiBox('multibox', {descClassName: 'multiBoxDesc'});
});
</script>

Now this is the reference that I am using to open the FLV or SWF:

<li><a href="/web/wb_02.swf" rel="type:swf" id="web2" class="multibox" title="iportfolio banner">example SWF</a></li><br/>
<div class="multiBoxDesc web2">example SWF</div>

What I am doing wrong? Why I can't display the SWF or the FLV?

The multibox website: http://www.phatfusion.net/multibox/
My test site: http://www.diegooriani.com/index__.html

On my website the examples are in web: ""flv example"" and ""swf example"", none of them loads.

Thank you,
Diego

P.S.: I want to put this website online soon! I need a new job! :D

diegooriani
02-12-2008, 10:54 AM
Can you see something wrong over here? I can find the bloody problem.

createEmbedObject: function(){
if(this.type == 'flash'){
var url = this.contentObj.url;

var obj = new Element('div').setProperties({id: 'MultiBoxMediaObject'});
this.str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" '
this.str += 'width="'+this.contentObj.width+'" ';
this.str += 'height="'+this.contentObj.height+'" ';
this.str += 'title="MultiBoxMedia">';
this.str += '<param name="movie" value="'+this.options.path+url+'" />'
this.str += '<param name="quality" value="high" />';
this.str += '<embed src="'+this.options.path+url+'" ';
this.str += 'quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" ';
this.str += 'width="'+this.contentObj.width+'" ';
this.str += 'height="'+this.contentObj.height+'"></embed>';
this.str += '</object>';

}