Autor Zpráva
domeon
Profil
Ahoj,
mám script(+mysql) který umožňuje vložení SWF obsahu(hry..). Potřebuji, abych mohl vložit video, které budu mít umístěné na webu i s přehrávačem.


{
		echo '<object classid="clsid:233C1507-6A77-46A4-9443-F871F945D258" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,5,0,595" ID=dcrGame width='.$row2['width'].' height='.$row2['height'].' VIEWASTEXT>
            <param name=src value="'.$row2['url'].'">
            <param name=swRemote value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' ">
            <param name=swStretchStyle value=fill>
            <param name=PlayerVersion value=11>
            <PARAM NAME=bgColor VALUE=#000000> 
            <embed src="'.$row2['url'].'" bgColor=#000000  width='.$row2['width'].' height='.$row2['height'].' swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' " swStretchStyle=fill
             type="application/x-director" PlayerVersion=11 pluginspage="http://www.macromedia.com/shockwave/download/"></embed>
</object>';
	}


elseif (($row2['filetype'] == 'png') || ($row2['filetype'] == 'gif') || ($row2['filetype'] == 'jpg') || ($row2['filetype'] == 'jpeg')) {
		echo '<img src="'.$row2['url'].'" width="'.$row2['width'].'" height="'.$row2['height'].'" />';
	} 
	elseif ($row2['filetype'] == 'swf') 

Díky za rady...
Ondra489
Profil *
Zkus to trochu víc rozvíst.
domeon
Profil
// If filetype is .dcr
	if ($row2['filetype'] == 'dcr') {
		echo '<object classid="clsid:233C1507-6A77-46A4-9443-F871F945D258" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,5,0,595" ID=dcrGame width='.$row2['width'].' height='.$row2['height'].' VIEWASTEXT>
            <param name=src value="'.$row2['url'].'">
            <param name=swRemote value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' ">
            <param name=swStretchStyle value=fill>
            <param name=PlayerVersion value=11>
            <PARAM NAME=bgColor VALUE=#000000> 
            <embed src="'.$row2['url'].'" bgColor=#000000  width='.$row2['width'].' height='.$row2['height'].' swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' " swStretchStyle=fill
             type="application/x-director" PlayerVersion=11 pluginspage="http://www.macromedia.com/shockwave/download/"></embed>
</object>';
	}
	elseif (($row2['filetype'] == 'png') || ($row2['filetype'] == 'gif') || ($row2['filetype'] == 'jpg') || ($row2['filetype'] == 'jpeg')) {
		echo '<img src="'.$row2['url'].'" width="'.$row2['width'].'" height="'.$row2['height'].'" />';
	} 
	// (balicek-nepotrebny!)
	elseif ($row2['filetype'] == 'swf') {
		// Game is part of the 1200 gamepack
		if ($row2['import'] == 1) {
			echo '<object type="application/x-shockwave-flash" id="eID"
			data="'.$setting['site_url'].'/games/'.$row2['url'].'.swf"
			width="'.$row2['width'].'" height="'.$row2['height'].'">
			<param name="movie"
			value="'.$setting['site_url'].'/games/'.$row2['url'].'.swf" />
			</object>';
		}
		// Game(balicek-nepotrebny!)
		else if ($row2['import'] == 3) {
			echo '<object type="application/x-shockwave-flash" id="eID"
			data="'.$setting['site_url'].'/games/'.$row2['url'].'"
			width="'.$row2['width'].'" height="'.$row2['height'].'">
			<param name="movie"
			value="'.$setting['site_url'].'/games/'.$row2['url'].'" />
			</object>';
		}
		// Hra ve flash
		else {
			echo '<object type="application/x-shockwave-flash" id="eID"
			data="'.$row2['url'].'"
			width="'.$row2['width'].'" height="'.$row2['height'].'">
			<param name="movie" 
			value="'.$row2['url'].'" />
			</object>';
		}
	}
	else {
		echo '<iframe src="'.$row2['url'].'" width="'.$row2['width'].'" height="'.$row2['height'].'" frameborder=0></iframe>';
	}

	echo '</div>';
}
domeon
Profil
Je dobrý nápad přidat k $row2 ještě $row3?

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: