Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Flash in the header ??? 
 
lorenzo01
Sr. Member
 
Avatar
Total Posts:  221
Joined:  2007-09-06
France
 

hello,
i’ve tried to put a flash animation in the header , so i modified the file /app/design/frontend/default/default/template/page/html/header.phtml i add a div id=anim :

<div class="header-top-container">
    <
div class="header-top">
        <
h1 id="logo"><a href="<?=$this->getUrl('')?>"><img src="<?=$this->getLogoSrc()?>" alt="<?=$this->getLogoAlt()?>"/></a></h1>
        <
class="no-show"><a href="#main"><strong><?=$this->__('Skip to Main Content')?> &raquo;</strong></a></p>
<
div id="anim" style="position: absolute; left: 127px; z-index:1">
            <
script src="js/top.js" type="text/javascript"></script>
<script type="text/javascript">RunHome();</script>

</div>

        
<?=$this->getChildHtml('topSearch')?>
i add the file top.js in the repertory /js/ :
function RunHome()
{
    [removed]
('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="122" id="anim" align="middle">\n');
    
[removed]('<param name="allowScriptAccess" value="never" />\n');
    
[removed]('<param name="movie" value="anim.swf" />\n');
    
[removed]('<param name="quality" value="high" />\n');
    
[removed]('<param name="wmode" value="transparent" />\n');
    
[removed]('<param name="bgcolor" value="#ffffff" />\n');
    
[removed]('<embed src="anim.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="500" height="122" name="anim" align="middle" allowScriptAccess="never" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    
[removed]('</object>\n');

}
[removed] = document.w..te

The animation only appears in the header of the home page. 
How can I get it to appear on all pages ?
thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bernhard Huber
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-10-03
Warsaw Poland
 

I answered your question in the french forum : http://www.magentocommerce.com/boards/viewthread/990/#t4732

 
Magento Community Magento Community
Magento Community
Magento Community
 
Qumer Mumtaz
Jr. Member
 
Total Posts:  21
Joined:  2007-08-31
 

hi Huber
For the benefit of English user kindly translate this answer to English. rasberry

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

yes please answer in English too

 
Magento Community Magento Community
Magento Community
Magento Community
 
3sixtygroup
Member
 
Avatar
Total Posts:  44
Joined:  2007-10-18
Auburn Hills, MI
 

I used Babelfish. Did ok translation.

http://babelfish.altavista.com/

 
Magento Community Magento Community
Magento Community
Magento Community
 
lilicrashes
Jr. Member
 
Total Posts:  30
Joined:  2008-10-23
 

http://www.magentocommerce.com/boards/viewthread/30484/#

I did what this thread said and it works beautifully!

here are the files adapted for reference including paths!

File Attachments
Flash INTO MAGENTO LOGO .zip  (File Size: 256KB - Downloads: 347)
 
Magento Community Magento Community
Magento Community
Magento Community
 
lilicrashes
Jr. Member
 
Total Posts:  30
Joined:  2008-10-23
 
lilicrashes - 24 February 2009 12:06 PM

http://www.magentocommerce.com/boards/viewthread/30484/#

I did what this thread said and it works beautifully!

here are the files adapted for reference including paths!

by the way I was using a theme, just change the path to your own theme or default theme depending on what you are using!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top