Can I insert a Flash file on my homepage?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Can I insert a Flash file on my homepage?
Kenewbie
CZ Newbie
Kenewbie has been a member for over 19 year's 19 Year Member
Gender: Female
Status: Offline
Joined: May 18, 2005
0.00 posts per day
Posts: 14
Points: 607
   
Hi everyone. I was wondering if it is possible to have a .swf file on my home page.
I am using the odessey theme and have replaced the logo.gif with my own pic.
Is it possible, if I add music to the pic and save as a .swf file, it will play music on the site?
Or can I insert a flash file into a block? either in the centre or side? I have tried but nothing seems to happen!
I'm really a newbie and dont understand much at all about programming and stuff.
I can edit a block and insert an image, thats about the level of my knowledge. It would just be nice to use a flash file. icon_rolleyes.gif



Back to top Reply with quote
#2   re: Can I insert a Flash file on my homepage?
Kenewbie
CZ Newbie
Kenewbie has been a member for over 19 year's 19 Year Member
Gender: Female
Status: Offline
Joined: May 18, 2005
0.00 posts per day
Posts: 14
Points: 607
   
Sorry! Im bad, i just seen the flash section !!! sry, i shall post it there!



Back to top Reply with quote
#3   re: Can I insert a Flash file on my homepage?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Actually this is the correct forum for your post.

Yes, you can add Flash into your header. If you just want to replace your logo, then all you need to do is replace the <img> tag with your Flash code.



Back to top Reply with quote
#4   re: Can I insert a Flash file on my homepage?
Kenewbie
CZ Newbie
Kenewbie has been a member for over 19 year's 19 Year Member
Gender: Female
Status: Offline
Joined: May 18, 2005
0.00 posts per day
Posts: 14
Points: 607
   
the header file in themes that contain the logo.gif is as follows.

<br>
<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" bgcolor="#ffffff">
<tr>
<td valign="top" bgcolor="#ffffff">
<img height="17" alt="" hspace="0" src="themes/Odyssey/images/corner-top-left.gif" width="17" align="left">
</td>
<td align="center">
<a href="index.html"><img src="themes/Odyssey/images/logo.gif" alt=""._WELCOMETO." $sitename" border="0"></a>
</td>
<td bgcolor="#ffffff" valign="top">
<img height="17" alt="" hspace="0" src="themes/Odyssey/images/corner-top-right.gif" width="17" align="right">
</td>
</tr>
</table>

<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" bgcolor="#ffffff"><tr><td align="right" width="50%">
<form action="search.html" method="post">
<b>Search</b> <input type="text" size="15" name="query"></td><td align="left" width="50%">
&nbsp;&nbsp;<font class="content"><b>on</b>&nbsp;&nbsp;$topics_list</select>
</font></form>
</td></tr></table>

<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" align="center"><tr valign="top">
<td bgcolor="#ffffff">$public_msg<img src="themes/Odyssey/images/pixel.gif" width="1" height="20" border="0" alt=""></td>
</tr></table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" align="center"><tr valign="top">
<td bgcolor="#ffffff"><img src="themes/Odyssey/images/pixel.gif" width="10" height="1" border="0" alt=""></td>
<td bgcolor="#ffffff" width="140" valign="top">


what do I change??? do I put the url of the flash file in were it says ...img src="themes/Odyssey/images/logo.gif" ??


Back to top Reply with quote
#5   re: Can I insert a Flash file on my homepage?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
You'll need to replace this:

<a href="index.html"><img src="themes/Odyssey/images/logo.gif" alt=""._WELCOMETO." $sitename" border="0"></a>


with the code to display your Flash movie.

It will look something like this:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=mlp WIDTH=XXX HEIGHT=YYY>
<PARAM NAME=movie VALUE="YOUR_MOVIE.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="YOUR_MOVIE.swf" quality=high bgcolor=#000000  WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>



Back to top Reply with quote
#6   re: Can I insert a Flash file on my homepage?
Kenewbie
CZ Newbie
Kenewbie has been a member for over 19 year's 19 Year Member
Gender: Female
Status: Offline
Joined: May 18, 2005
0.00 posts per day
Posts: 14
Points: 607
   
First of all thank you very much for your help. This is fantastic! I really appreciate it.
However, i must still be doing something wrong. icon_rolleyes.gif
My .swf file is called test1.swf. I have ftp this to the same directory that the header.php file is in within the theme dir.this is were i put the logo.gif!

I tried the code were you said and altho the header still loads there is no pic. I have music embedded within the flash file.
This is what i have now.....


<br>
<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" bgcolor="#ffffff">
<tr>
<td valign="top" bgcolor="#ffffff">
<img height="17" alt="" hspace="0" src="themes/Odyssey/images/corner-top-left.gif" width="17" align="left">
</td>
<td align="center">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=mlp WIDTH=XXX HEIGHT=YYY>
<PARAM NAME=movie VALUE="test1.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="test1.swf" quality=high bgcolor=#000000  WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>

</td>
<td bgcolor="#ffffff" valign="top">
<img height="17" alt="" hspace="0" src="themes/Odyssey/images/corner-top-right.gif" width="17" align="right">
</td>
</tr>
</table>

<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" bgcolor="#ffffff"><tr><td align="right" width="50%">
<form action="modules.php?name=Search" method="post">
<b>Search</b> <input type="text" size="15" name="query"></td><td align="left" width="50%">
&nbsp;&nbsp;<font class="content"><b>on</b>&nbsp;&nbsp;$topics_list</select>
</font></form>
</td></tr></table>

<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" align="center"><tr valign="top">
<td bgcolor="#ffffff">$public_msg<img src="themes/Odyssey/images/pixel.gif" width="1" height="20" border="0" alt=""></td>
</tr></table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" align="center"><tr valign="top">
<td bgcolor="#ffffff"><img src="themes/Odyssey/images/pixel.gif" width="10" height="1" border="0" alt=""></td>
<td bgcolor="#ffffff" width="140" valign="top">


What do you think? have I done something wrong? icon_sad.gif
I replaced the YOUR_MOVIE with my file!


Back to top Reply with quote
#7   re: Can I insert a Flash file on my homepage?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
You need to put in the full path to your Flash movie. So, if you uploaded the movie to themes/Odyssey/images, you would need to put that before the filename of your Flash movie.

You also need to change the height and width values (in two places) to match the dimensions of your movie.



Back to top Reply with quote
#8   re: Can I insert a Flash file on my homepage?
Kenewbie
CZ Newbie
Kenewbie has been a member for over 19 year's 19 Year Member
Gender: Female
Status: Offline
Joined: May 18, 2005
0.00 posts per day
Posts: 14
Points: 607
   
Ahh, ok, thanx, will let u know!! icon_wink.gif

Well. Wow your the best. thank you its wicked! icon_wink.gif
Ive been waiting so long to get this to work! I really appreciate it. icon_biggrin.gif

Have a look, [ Register or login to view links on this board. ]

its a big file, 3.5 meg, so it takes a few seconds to load, but I think its worth it.
Sadly it keeps restarting everytime you click away, must be the way php works i guess?
However, thanks again, it works great. icon_wink.gif



Back to top Reply with quote
#9   re: Can I insert a Flash file on my homepage?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Glad you got it working!

The reason it's reloading is because the header is included in the pages of your site. Everytime you go to a different page, the header gets called into the page, thus reloading the Flash movie.



Back to top Reply with quote
#10   re: Can I insert a Flash file on my homepage?
Kenewbie
CZ Newbie
Kenewbie has been a member for over 19 year's 19 Year Member
Gender: Female
Status: Offline
Joined: May 18, 2005
0.00 posts per day
Posts: 14
Points: 607
   
Any way around this? or would I be better including the music in a block on the homepage so it only plays when your at the homepage?and not flicking thru the forums. mabe on that Anakin pic! icon_rolleyes.gif
If so, can I insert the same script directly into the block were i have the <img>?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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
You cannot attach files in this forum
You cannot download files in this forum