Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP loading flash .swf instead of an image - code help

Status
Not open for further replies.

insane1

Programmer
Joined
Jan 8, 2004
Messages
2
Location
US
hi i have a madden site, and currently the team pages
are configured through a header.php file that designates
which team (.gif) banner to show for each team, but i have created new banners, but in flash, and need the php to call for a .swf instead, but i believe it also needs to include
the plugin object class info that goes along with flash
and not sure how its supposed to be, here is the code as it
sits now:

-------------------------------------------

<?php
include(&quot;xxxxx/bfl/dbConfig.php&quot;);

if($bgcolor==&quot;&quot;) $bgcolor=&quot;000000&quot;;
if($forecolor==&quot;&quot;) $forecolor=&quot;ffffff&quot;;

if($view_page==&quot;team&quot;){
$logo=$DOMAIN . &quot;images/team_logo/&quot; . $team . &quot;.gif&quot;;
}
else $logo=$DOMAIN . &quot;images/design/logo.gif&quot;;

echo &quot;<html>&quot;;
echo &quot;<head>&quot;;

echo &quot;<title>Madden Football League</title>&quot;;
echo &quot;</head>&quot;;

echo &quot;<body rightmargin=0 leftmargin=\&quot;0\&quot; marginwidth=\&quot;0\&quot; topmargin=\&quot;0\&quot; marginheight=\&quot;0\&quot; bgcolor=\&quot;$bgcolor\&quot; alink=000000 vlink=000000 link=000000>&quot;;
echo &quot;<table cellpadding=\&quot;0\&quot; cellspacing=\&quot;0\&quot; border=\&quot;0\&quot; bgcolor=\&quot;#FFFFFF\&quot; width=\&quot;100%\&quot; height=100>&quot;;
echo &quot;<tr>&quot;;

if($view_page!=&quot;team&quot;) echo &quot;<td rowspan=4 align=right width=180 bgcolor=$bgcolor align=right><a href=\&quot;&quot; . $DOMAIN . &quot;\&quot;><img src=\&quot;$logo\&quot; border=\&quot;0\&quot;></a></td>&quot;;
else echo &quot;<td rowspan=4 width=147 bgcolor=$bgcolor><center><img src=\&quot;$logo\&quot; border=\&quot;0\&quot;></center></td><td rowspan=12 align=top width=33 bgcolor=$bgcolor align=center><a href=\&quot;&quot; . $DOMAIN . &quot;\&quot;></a></td>&quot;;
-----------------------------------------------

how would this need to read if it was including a .swf
instead of a .gif.

site is tryin to have flash banner load for each team page instead of .gif banner

thank you!

Luis Bernal
 
This is more of a Flash question than PHP. Does Flash not offer a sample HTML output of your creation, complete with tags to fetch the plugin if not installed? Just copy the HTML snippet from Flash into your script.

- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
 
thats the thing, i dont know where 2 put this:

<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; width=&quot;800&quot; height=&quot;115&quot;>
<param name=&quot;movie&quot; value=&quot;/flashbanners/49ers.swf&quot;>
<param name=&quot;quality&quot; value=&quot;high&quot;>
<embed src=&quot;/flashbanners/49ers.swf&quot; quality=&quot;high&quot; pluginspage=&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;800&quot; height=&quot;115&quot;></embed></object>

or how to get it to change the embed src portion of it each time for the correct banner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top