Forums / Templates, Stylesheets, Page Layout / Using Flash on the Main Page

Using Flash on the Main Page

Locked

Views: 2,314

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
24 Mar 2010, 3:29 AM
#1
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Using Flash on the Main Page

I am trying to use flash on the main page and it is not working. In firefox it tells me I need the flash player when other sites I have built with flash are working. In IE the page just keeps trying to bring the flash up. This is the code I am using:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="150" id="FlashID" title="slide_show"> <param name="movie" value="../../../../../slide_show/slide_show.swf" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="7.0.70.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> <param name="expressinstall" value="../../../../../Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="../../../../../slide_show/slide_show.swf" width="640" height="150"> <!--<![endif]--> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="7.0.70.0" /> <param name="expressinstall" value="../../../../../Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object>

Can someone please tell me what is wrong here.

Thank you
LadyDee

24 Mar 2010, 10:58 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Using Flash on the Main Page

Where are you inserting this code?
Where is your flash js fiole?
What is it named?

Zen-Venom Get Bitten

24 Mar 2010, 11:24 AM
#3
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Re: Using Flash on the Main Page

I am putting it on the define_main_page.php which is located in includes/languages/english/html_includes/classics.

I added the js to it: Here is the code for the whole page:

<script src="../../../../../Scripts/swfobject_modified.js" type="text/javascript"></script> <p></p> <p></p><center><font color="#FF6600"> <h1>Your E-Commerce Solution for Home Decor</h1></center></font> <center> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="150" id="FlashID" title="slide_show"> <param name="movie" value="../../../../../slide_show/slide_show.swf" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="7.0.70.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> <param name="expressinstall" value="../../../../../Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="../../../../../slide_show/slide_show.swf" width="640" height="150"> <!--<![endif]--> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="7.0.70.0" /> <param name="expressinstall" value="../../../../../Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </script> <script type="text/javascript"> <!-- swfobject.registerObject("FlashID"); //--> </script>

This is the name of the Swf file slide_show.swf which is located in slide_show. a directory on the same level as admin, includes, editors, etc.

Thank you
LadyDee

25 Mar 2010, 12:14 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Using Flash on the Main Page

Don't add the js inline
See the section on Adding Extra Javascript to a specific page
https://www.zen-cart.com/tutorials/index.php?article=36

Zen-Venom Get Bitten

25 Mar 2010, 12:51 AM
#5
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Re: Using Flash on the Main Page

I can not get it to work and I am using firefox.

LadyDee

25 Mar 2010, 7:20 AM
#6
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Re: Using Flash on the Main Page

I still can not get this flash to work, is there anyone who can do a posting of the code of one that is working?

Thank you
LadyDee

25 Mar 2010, 9:33 AM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using Flash on the Main Page

http://www.dezinashop.com/demo/

Flash insert on define main page at above url..
URL where you are attempting to insert flash is???

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

25 Mar 2010, 11:05 AM
#8
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Re: Using Flash on the Main Page

I would like to place it below my header or logo, and in the middle of the side boxes, then under that I would like the categories to populated when someone goes to them.

Thank you
LadyDee

25 Mar 2010, 12:11 PM
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using Flash on the Main Page

deemurphy:

I would like to place it below my header or logo, and in the middle of the side boxes, then under that I would like the categories to populated when someone goes to them.
Fine...but you have not answered my initial question....
URL of your zencart site is??

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

25 Mar 2010, 12:28 PM
#10
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Re: Using Flash on the Main Page

Sorry, thought I had given it to you:

http://lightingmadesimple.com/

LadyDee

25 Mar 2010, 12:41 PM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using Flash on the Main Page

Ok, now need to know exact path to swf file you wish to show..
i.e. EXACT folder where you have placed swf file..

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

25 Mar 2010, 12:46 PM
#12
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Re: Using Flash on the Main Page

In the Zen Cart root directory I have a folder called slide_show, inside of is is the swf file, and xml file and the images.

Thank you
LadyDee

25 Mar 2010, 1:20 PM
#13
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Using Flash on the Main Page

deemurphy:

In the Zen Cart root directory I have a folder called slide_show, inside of is is the swf file, and xml file and the images.

Thank you
LadyDee
So you mean: http://lightingmadesimple.com/slide_show/slide_show.swf ?

That brings up a 404 error page suggesting you've either placed it in a different directory/folder, or mispelt the file/folder name

Not Found The requested URL /slide_show/slide_show.swf was not found on this server.

25 Mar 2010, 1:55 PM
#14
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Re: Using Flash on the Main Page

Try it now, thought I uploaded it yesterday, but just did again.

LadyDee

25 Mar 2010, 2:23 PM
#15
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Using Flash on the Main Page

I'm no expert on Flash, but I'd suggest something is wrong with the actual flash movie itself, whilst clicking on the link to the file directly it displays fine, as soon as I try to embed it into my main page all I get is a black box, whereas using another flash file from elsewhere that displays fine - see the test page I just did here to see what I mean

And this is the code I used

http://lightingmadesimple.com/slide_show/slide_show.swf

<object type="application/x-shockwave-flash" data="http://lightingmadesimple.com/slide_show/slide_show.swf" width="100%" height="100">
<param name="movie" value="http://lightingmadesimple.com/slide_show/slide_show.swf" />
<param name="quality" value="high"><param name="BGCOLOR" value="#000000">
<param name="menu" value="false">
</object> 


<br/><br/>
http://www.leconcombre.com/image/atomicfilms4.swf
<object type="application/x-shockwave-flash" data="http://www.leconcombre.com/image/atomicfilms4.swf" width="100%" height="100">
<param name="movie" value="http://www.leconcombre.com/image/atomicfilms4.swf" />
<param name="quality" value="high"><param name="BGCOLOR" value="#000000">
<param name="menu" value="false">
</object> 
25 Mar 2010, 2:32 PM
#16
deemurphy avatar

deemurphy

Zen Follower

Join Date:
Jul 2007
Posts:
324
Plugin Contributions:
0

Re: Using Flash on the Main Page

Is there any way I can send you the files, I created it, so I have the fla. Like you said we know that it is somewhat working because it worked going straight to the line in slide_show/slid_show.swf, but somethings happens when we inbed it, does the js need to be in there?

You can look at my main page now and you will see blank white space which is the color of the background.

LadyDee

25 Mar 2010, 2:41 PM
#17
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using Flash on the Main Page

In the Zen Cart root directory I have a folder called slide_show, inside of is is the swf file, and xml file and the images.
Your code is not showing any reference to xml file, so therefore flash and its images unlikely to show.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

25 Mar 2010, 2:41 PM
#18
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Using Flash on the Main Page

If I were you I would try uploading another flash file and give it the same name to see if that works. As I said I'm no expert on flash, but the one that you are linking to, the dimensions seem to be quite large

Or try entering the code of the one that I used as a test in your define main page editor to make sure that your page is at least capable of displaying flash %%BBCODE_CODE_0%%

25 Mar 2010, 2:45 PM
#19
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using Flash on the Main Page

Twaddle:

If I were you I would try uploading another flash file and give it the same name to see if that works. As I said I'm no expert on flash, but the one that you are linking to, the dimensions seem to be quite large

Or try entering the code of the one that I used as a test in your define main page editor to make sure that your page is at least capable of displaying flash %%BBCODE_CODE_0%%
The flash file original poster has requires xml file to work and without embedding reference to that xml file, then flash will not work.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

27 Mar 2010, 10:29 AM
#20
jojo_cool avatar

jojo_cool

New Zenner

Join Date:
Jun 2009
Location:
malaysia
Posts:
41
Plugin Contributions:
0

Re: Using Flash on the Main Page

I am also would like to put a flash in the main page. But I have 2 languages in my zencart. Any idea how to made it select the correct language flash during change the language page?