Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I imput small flash images in my main page?

How do I imput small flash images in my main page?

Locked

Views: 2,004

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
19 Jun 2007, 7:15 PM
#1
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

How do I imput small flash images in my main page?

If you goto http://209.85.82.163/ You will see 3 small boxes with images in them. One says Self-Defense, another says Exercise, and the other says Rehabilitation. I put these in using the define pages editor on the main page. I have 3 new animated flash images (.swf files) that are the exact same size that I'd like to replace these 3 jpg images with.

How would I go about doing this?

Thank you!

:D

19 Jun 2007, 7:48 PM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How do I imput small flash images in my main page?

Easy. you just put the .swf file in your root directory, then ONLY the "object classid" information from the HTML file, into your define pages editor. Then it should show up. And, if there's any css, don't forget to add it to your stylesheet.

19 Jun 2007, 8:16 PM
#3
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: How do I imput small flash images in my main page?

I'll give it a shot. :lookaroun

Thank you.

19 Jun 2007, 8:21 PM
#4
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: How do I imput small flash images in my main page?

Do I make all of these mods right in my define pages editor?

19 Jun 2007, 8:26 PM
#5
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How do I imput small flash images in my main page?

Well, I did, and it worked for me. Just replace the images you have, with the object classid information, and it should show up in the same place.

20 Jun 2007, 1:11 AM
#6
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: How do I imput small flash images in my main page?

The object classid information.... What exactly is that. I mean, the flash names are going to be canes.swf exersise.swf etc.

I'll go ahead and put them where my header.swf file is under templates/mytemplate/images/flash

20 Jun 2007, 12:37 PM
#7
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How do I imput small flash images in my main page?

When you (or whoever) created those flash files (.swf), you should have gotten an HTML file, also. Within that file, you should see something like this:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="640" height="480" id="tech" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="movie" value="linens.swf" />
        <param name="quality" value="high" />
        <embed src="linens.swf" quality="high" width="640" height="480" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>

That is the part to be inserted into your define_main_page.php.
The .swf files cannot be inserted into there, just called to.

20 Jun 2007, 4:06 PM
#8
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: How do I imput small flash images in my main page?

I created them. I remember seeing an option that I disabled, to create an html file as well.... oops! So that's what that file was for! :blink: Thanks! I'll give it a shot.

Oh yeah, where exactly does this code go in the define_main_page.php file?

20 Jun 2007, 4:12 PM
#9
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How do I imput small flash images in my main page?

:yes:Haha.......Yep.....That's what it was for. Good luck.

20 Jun 2007, 4:34 PM
#10
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: How do I imput small flash images in my main page?

Woohoo! Thank you so much! PM me and I'll send you a custom combat cane with your name laser engraved on it for helping me out!

20 Jun 2007, 4:43 PM
#11
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: How do I imput small flash images in my main page?

One more thing... It's not working right with IE. Works great with firefox. Am I going to have to call up the flash with some java code like I do with my header?

20 Jun 2007, 4:59 PM
#12
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: How do I imput small flash images in my main page?

Okay, I called it up with flash in the define_main_page.php with this code:

<script type="text/javascript" src="includes/templates/canemasters/jscript/canesflash.js"></script> <div id="flashcontent"> This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("includes/templates/canemasters/images/flash/canesflash.swf", "canesflash", "180", "221", "7", "#ffffff"); so.write("flashcontent"); </script>

It's working great in firefox again, but now in IE, it's loading it, but it's completely removing the header and putting it there. Strange. Do you need to see the canesflash.js file?

You can see the problem at http://209.85.82.163/
It only happens in IE. maybe that's why I dont use IE!

20 Jun 2007, 7:35 PM
#13
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How do I imput small flash images in my main page?

canemasters:

It only happens in IE. maybe that's why I dont use IE!

Yea, I know what you mean. I used to be a die-hard IE fan, until I found out what FF could do, and WOW!, what CAN'T it do?

I don't understand why it's doing this, but am looking for a solution.

20 Jun 2007, 7:56 PM
#14
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How do I imput small flash images in my main page?

canemasters:

Okay, I called it up with flash in the define_main_page.php with this code:

<script type="text/javascript" src="includes/templates/canemasters/jscript/canesflash.js"></script> <div id="flashcontent"> This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("includes/templates/canemasters/images/flash/canesflash.swf", "canesflash", "180", "221", "7", "#ffffff"); so.write("flashcontent"); </script>

It's working great in firefox again, but now in IE, it's loading it, but it's completely removing the header and putting it there. Strange. Do you need to see the canesflash.js file?

You can see the problem at http://209.85.82.163/
It only happens in IE. maybe that's why I dont use IE!

You can try removing the " <div id="flashcontent"> This text is replaced by the Flash movie. </div>" from the define_main_page.php, and see if that clears up the IE problem (you might have to just move that part to the tpl_header.php).

<script type="text/javascript" src="includes/templates/canemasters/jscript/canesflash.js"></script> <script type="text/javascript"> var so = new SWFObject("includes/templates/canemasters/images/flash/canesflash.swf", "canesflash", "180", "221", "7", "#ffffff"); so.write("flashcontent"); </script>
20 Jun 2007, 8:19 PM
#15
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How do I imput small flash images in my main page?

You might also look at this FAQ page.

21 Jun 2007, 2:58 PM
#16
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How do I imput small flash images in my main page?

You might try adding this to your stylesheet, to see if it takes care of that pesky little IE problem:

#flashcontent {
width: 180px;
position: relative;
}

21 Jun 2007, 5:28 PM
#17
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: How do I imput small flash images in my main page?

All is working now. The page you pointed out made everything work.

Now, how do I space them apart more? they are all crammed together.
http://209.85.82.163/