-
Book Overview & Buying
-
Table Of Contents
Joomla! with Flash
A logo is a special graphic displayed at a specific position on the Joomla! template. You can replace the ordinary image with Flash-animated logos by embedding it in that position. As we have seen earlier, Flash objects are embedded in Joomla! templates using the <object> </object> XHTML element. For styling purposes, you may put this element under a<div> element, as shown in the following code:
<div id="logo">
<object type="application/x-shockwave-flash" data="/templates/mx_joofree2/images/logo.swf" width="200" height="200">
<param name="movie" value="/templates/mx_joofree2/images/logo.swf">
</object>
</div>
As you can see, the <object> </object> tag can contain child elements. We pass parameters to the Flash objects using the <param> element. For example, we have passed the name of a movie file using the highlighted tag in the previous code.
Some of you may already know about the SWFObject JavaScript...
Change the font size
Change margin width
Change background colour