flash content and opera

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
lleighh
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 11, 2006 2:40 pm

flash content and opera

Post by lleighh »

I've placed a flash object in my home page template here ... http://www.theprocess.com/dev/cm/

It causes Opera to either crash or show nothing at all. It shows wacky results in firefox .. the flash is too small or at the bootom of the page.  >:(

IE 6 and 7 seems to be the only one that shows the page correctly. My client wants it to show similar results in all these browsers.

I've used fckeditor to place the flash and I've tried an iframe. Neither way worked across the board. Is there a different way to doing flash in cmsms?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: flash content and opera

Post by calguy1000 »

And this relates to CMS made simple specifically how?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
lleighh
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 11, 2006 2:40 pm

Re: flash content and opera

Post by lleighh »

Is there a different way to doing flash in cmsms?
sorry to have been so cryptic. i want a method of putting in flash that renders a similar result in three browsers, at least.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: flash content and opera

Post by Nullig »

For Flash, you should use swfobject.

http://blog.deconcept.com/swfobject/

Nullig
lleighh
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 11, 2006 2:40 pm

Re: flash content and opera

Post by lleighh »

Nullig wrote: For Flash, you should use swfobject.

http://blog.deconcept.com/swfobject/

Nullig
Where does this script go within the cms made simple file structure? Do I put the code (below) in the template?

Code: Select all

<__script__ type="text/javascript" src="swfobject.js"></__script>
		
<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>

<__script__ type="text/javascript">
   var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
   so.write("flashcontent");
</__script>
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: flash content and opera

Post by Dr.CSS »

Yes, or else I believe you may be able to put it in a Global Content Block with {literal} your code {/literal} and you may be able to put it in the Content: edit box the same way...
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: flash content and opera

Post by Nullig »

This part goes in your template header:

Code: Select all

<__script__ type="text/javascript" src="swfobject.js"></__script>
This part goes where you want the movie to show. If it's the same on all pages, then put it in the template. If not, put it in the page content or a GCB.

Code: Select all

	
<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>

<__script__ type="text/javascript">
   var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
   so.write("flashcontent");
</__script>
Nullig
lleighh
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 11, 2006 2:40 pm

Re: flash content and opera

Post by lleighh »

Okay, I understand where to put the code now but all the files in the swfobject zip ... where does it go? in the root?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: flash content and opera

Post by Nullig »

I usually create a scripts directory under my uploads directory, where I keep custom scripts.

Nullig
Post Reply

Return to “Layout and Design (CSS & HTML)”