...since I don´t know how to create a "Module- Package" and the most work has been done by Mr. Vrajesh I will only describe the modifications I have done.
1:: The Idea: To have a Header Image in flash (fade in effect from alpha 0 -> 100) acording to the selected link, if I click Home then I want to have the home header blend in, thats all.
2:: Install the
mod_flashmenu from the
pixelthemes.com site and configure it to use "user5"
3:: Create a new place holder in your template, I use "user5" (dimensions 800x150px)
Code:
<div id="header_area">
<div id="header">
<?php mosLoadModules ( 'user5' ); ?>
</div>
</div>
this mod does the most work, it blends the name of the actual section in the site you are surfing on.
To do this it passes a variable $themenuname to a flash file.
I use this variable to load a Picture in jpg format into the flash file, to make this possible I use the "flashvars method", the
source and compiled file can be found at
EMLLabs
4:: The modifications:
changes in the
mod_flash_menuname.php file:
Change the content of the $current variable to this:
Code:
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="800"
height="150"
id="headerImage">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="headerImage.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#222222" />
<param name="flashvars" value="imageName=$themenuname.jpg" />
<embed
src="headerImage.swf"
flashvars="imageName=$themenuname.jpg"
quality="high"
bgcolor="#222222"
width="800"
height="150"
name="headerImage"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
upload the
headerImage.swf from EMLLabs to the root of your site and also upload some jpg´s with the name of the sections: Home.jpg, Blog.jpg, Contact.jpg...etc
If every thing went fine you will see your header blending in like here:
visdelou.tollfreepage.com