Anda di halaman 1dari 2

http://www.siteground.com/joomla-hosting/joomla15-templates.htm?

page=15

Berikut ini ada sedikit resep bagaimana cara memasukkan header berupa file flash
kedalam situs joomla kita. Tips ini saya peroleh dari forum.joomla.org semoga b
isa bermanfaat untuk rekan rekan pengguna joomla laennya
Berikut ini adalah kode yang harus kita masukkan di file index.php template yan
g kita pakai. Tepatnya pas dibawah tag <body>
Silakan copy paste dan edit sedikit dan ganti nama filenya :
<table width="804" height="90" border="0" align="center" cellpadding="0" cellspa
cing="0" >
<tr>
<td valign="top" background="<?php echo "$GLOBALS[mosConfig_live_site]/templ
ates/$GLOBALS[cur_template]/images/"; ?>header.jpg"><object classid="clsid:D27CD
B6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/sh
ockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="90">
<param name="movie" value="<?php echo "$GLOBALS[mosConfig_live_site]/templ
ates/$GLOBALS[cur_template]/"; ?>banner2.swf" />
<param name="quality" value="high" />
<embed src="/ <?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS
[cur_template]/"; ?>banner2.swf" quality="high" pluginspage= "http://www.macrome
dia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="appli
cation/x-shockwave-flash" width="805" height="90"></embed>
</object></td>
</tr>
</table>

Sedikit penjelasan, yang saya tandain dengan font yang BOLD....itu berarti nama
file yang bakal kita pakai. File header.jpg terserah mau dipakai atau tidak, klo
kita dah punya file header itu sendiri dari templatenya, ya ga usah dipake yang
di dalam kode ini....tapi yang penting file .swf aja yang kita embed di file in
dex template kita.....
Terus, kita bisa ngatur ukurannya juga.....n qualitynya....kita tinggal ganti aj
a...
oiya, satu lagi.....kode yang saya dapet ini.....file .swf nya disimpen di dlm s
atu direktori yg sama dgn direktori file index.php template kita.......tapi klo
mo diubah juga terserah....dipindahin ke direktori images misalnya....

Flash Header Template


Have you ever wanted to include a flash banner into your Joomla Template then wh
y not try the following.
1) First you need to create a SWF flash format file using Macromedia flash or ma
ybe Swish Max
2) Once you have created your SWF file you will need to upload the file to your
template directory.
3) Now open the template index.php file using notepad or an editor of your choic
e and include the following code where you would like the flash banner to appear
.
Flash code Header code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://do
wnload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" wid
th="100" height="50">
<param name="movie" value="your flash header file name goes here.swf">
<param name="quality" value="high">
<embed src="your flash header file name goes here.swf" quality="high" plugin
spage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwav
e-flash" width="100" height="50"></embed>
</object>

4) So now you have included the flash code in your Joomla template index.php fil
e upload the index.php file to your template directory and the flash banner shou
ld appear.
5) You can alter the width, height of the banner by changing the width="100" hei
ght="50" You can also change the quality of the flash header by changing <param
name="quality" value="high"> using low, medium and high.