flash in php tonen
woods - 02/05/2005 20:31
Nieuw lid
hoe moet je flash in je php pagina tonen?
8 antwoorden
Gesponsorde links
Stijn - 02/05/2005 20:33 (laatste wijziging 02/05/2005 20:35)
PHP expert
misschien met HTML:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="{WIDTH}" height="{HEIGHT}">
<param name="movie" value="{SOURCE}.swf">
<param name="quality" value="high">
<embed src="{SOURCE}.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="{WIDTH}" height="{HEIGHT}"></embed>
</object>
< object classid= "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width= "{WIDTH}" height= "{HEIGHT}" >
< param name= "movie" value= "{SOURCE}.swf" >
< param name= "quality" value= "high" >
< embed src= "{SOURCE}.swf" quality= "high" pluginspage= "http://www.macromedia.com/go/getflashplayer" type= "application/x-shockwave-flash" width= "{WIDTH}" height= "{HEIGHT}" ></ embed>
</ object>
met PHP moet je dan gewoon een echo ""; rond de code plaatsten en dan een '\' voor iedere " plaatsten... maar dit is te lang werk:o
stijn
woods - 02/05/2005 20:35 (laatste wijziging 02/05/2005 20:52)
Nieuw lid
bedankt
zo dus:
echo""
. "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"{WIDTH}\" height=\"{HEIGHT}\">"
. " <param name=\"movie\" value=\"{SOURCE}.swf\">"
. " <param name=\"quality\" value=\"high\">"
. " <embed src=\"{SOURCE}.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"{WIDTH}\" height=\"{HEIGHT}\"></embed>"
. "</object>"
."";
. "<object classid=\" clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\" {WIDTH}\" height=\" {HEIGHT}\" >"
. " <param name=\" movie\" value=\" {SOURCE}.swf\" >"
. " <param name=\" quality\" value=\" high\" >"
. " <embed src=\" {SOURCE}.swf\" quality=\" high\" pluginspage=\" http://www.macromedia.com/go/getflashplayer\" type=\" application/x-shockwave-flash\" width=\" {WIDTH}\" height=\" {HEIGHT}\" ></embed>"
. "</object>"
. "" ;
TFOL - 02/05/2005 21:09 (laatste wijziging 02/05/2005 21:10)
PHP beginner
uh waarom doe je niet zo:
<?php
//je php-gedeelte
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="{WIDTH}" height="{HEIGHT}">
<param name="movie" value="{SOURCE}.swf">
<param name="quality" value="high">
<embed src="{SOURCE}.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="{WIDTH}" height="{HEIGHT}"></embed>
</object>
<?php
//de rest van je php-gedeelte
?>
<?php
//je php-gedeelte
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="{WIDTH}" height="{HEIGHT}">
<param name="movie" value="{SOURCE}.swf">
<param name="quality" value="high">
<embed src="{SOURCE}.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="{WIDTH}" height="{HEIGHT}"></embed>
</object>
<?php
//de rest van je php-gedeelte
?>
Grtn Robin
woods - 02/05/2005 21:19
Nieuw lid
kan, maar het moet in het php gedeelte komen
Maarten - 02/05/2005 21:34
Erelid
Waarom dat? Het werkt zo ook, en het is efficienter.
Gerard - 03/05/2005 09:54 (laatste wijziging 03/05/2005 09:54)
Ouwe rakker
Alles wat je "in" het PHP gedeelte neerzet moet geparsed worden. Als het toch hetzelfde blijft (zit geen dynamic content in) kan je het beter gelijk als HTML neerzetten.
Omdat je WEL gebruik maakt van een stukje PHP kan je net zogoed dit doen:
<?php
# Wat dingen
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="<?= "{WIDTH}"; ?>" height="<?= "{HEIGHT}"; ?>">
<param name="movie" value="<?= "{SOURCE}"; ?>.swf">
<param name="quality" value="high">
<embed src="<?= "{SOURCE}"; ?>.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?= "{WIDTH}"; ?>" height="<?= "{HEIGHT}"; ?>"></embed>
</object>
<?php
# Nog wat dingen
?>
<?php
# Wat dingen
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="<?= "{WIDTH}" ; ?> " height="<?= "{HEIGHT}" ; ?> ">
<param name="movie" value="<?= "{SOURCE}" ; ?> .swf">
<param name="quality" value="high">
<embed src="<?= "{SOURCE}" ; ?> .swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?= "{WIDTH}" ; ?> " height="<?= "{HEIGHT}" ; ?> "></embed>
</object>
<?php
# Nog wat dingen
?>
prorsoft - 03/05/2005 09:59
PHP gevorderde
in een conditional neerzetten kan ook:
<?php
#PHP CODE
if($toonflash==true)
{
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="<?= "{WIDTH}"; ?>" height="<?= "{HEIGHT}"; ?>">
<param name="movie" value="<?= "{SOURCE}"; ?>.swf">
<param name="quality" value="high">
<embed src="<?= "{SOURCE}"; ?>.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?= "{WIDTH}"; ?>" height="<?= "{HEIGHT}"; ?>"></embed>
</object>
<?php
}
else
{
echo "Flash wordt niet getoond";
}
#NOG WAT PHP CODE
?>
<?php
#PHP CODE
if ( $toonflash == true )
{
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="<?= "{WIDTH}" ; ?> " height="<?= "{HEIGHT}" ; ?> ">
<param name="movie" value="<?= "{SOURCE}" ; ?> .swf">
<param name="quality" value="high">
<embed src="<?= "{SOURCE}" ; ?> .swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?= "{WIDTH}" ; ?> " height="<?= "{HEIGHT}" ; ?> "></embed>
</object>
<?php
}
else
{
echo "Flash wordt niet getoond" ; }
#NOG WAT PHP CODE
?>
Gesponsorde links
Dit onderwerp is gesloten .