Flash logo in php page????

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Aug 10, 2003 4:42 pm    Post subject: Flash logo in php page???? Reply with quote

Does anybody know of a simple way to insert a flash logo into a php page??
Any help would be greatly appreciated..
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Aug 11, 2003 11:59 am    Post subject: Re: Flash logo in php page???? Reply with quote

Moxxnixx wrote:
Does anybody know of a simple way to insert a flash logo into a php page??
Any help would be greatly appreciated..

Do you mean that you have the Flash logo file and want to insert it or that you want to create the Flash logo by a PHP script?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Mon Aug 11, 2003 3:31 pm    Post subject: Reply with quote

I have the flash logo and I want to insert it.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Aug 12, 2003 2:40 pm    Post subject: Reply with quote

Moxxnixx wrote:
I have the flash logo and I want to insert it.

Insert it as you do when inserting it in a regular HTML page. Use the same HTML code.
The following example assumes that your logo is mylogo.swf:

Code:

<HTML>
<BODY>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/
        cabs/flash/swflash.cab#version=5,0,0,0" width=500
        height=400>
  <param name="movie" value="mylogo.swf">
  <param name="quality" value="high">
  <param name="bgcolor" value="#000000">
  <embed src="savior.swf" quality="high" bgcolor="#000000" width=550
         height="400" type="application/x-shockwave-flash"
         pluginspace="http://www.macromedia.com/shockwave/download/
         index.cgi?P1_Prod_Version=ShockwaveFlash">
  </embed>
</object>

<?php
   echo "Today is ";
   echo date("l dS of F Y h:i:s A");
?>

</BODY>
</HTML>

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Aug 15, 2003 3:21 pm    Post subject: I found the problem... Reply with quote

Thanx for the reply aprelium, but I found my solution:
I inserted my flashfile as a variable into the header of my index.php like this:
Code:
$flashheader = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#4,0,0,0' width='546' height='50'>
    <param name='movie' value='".THEME."myfile.swf'>
    <param name='quality' value='high'>
    <embed name='movie1' src='".THEME."myfile.swf' pluginspage='http://www.macromedia.com/shockwave/download/' type='application/x-shockwave-flash' width='546' height='50' ></embed></object>
";
Then, all I have to do is insert this
Code:
{$flashheader}
where-ever I want the logo to appear.

I also forgot about the double quotation (") and single quotation (') difference in php coding.

You can see the result on my site. (in my sig below)
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group