百度首页 | 百度空间
 
查看文章
 
Magento 使用flash做header
2008-05-01 22:44
admin

write to the file / app / design / frontend / default / default / template / page / html / header.phtml by inserting the tag div anim follows: /app/design/frontend/default/default/template/page/html/header.phtml i add a div id=anim :

created the file top.js I put in / js / top.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’);

}

I put the file anim.swf at the root of the site (trial). voilà donc parfait l’animation s’affiche tres bien à l’accueil mais quand on navigue dans la boutique l’animation n’apparait plus dans le header, autrement dit elle n’apparait que dans la page d’accueil ?????? This is perfect animation appears very good at home but when we sailed in the store does more animation in the header, in other words, it appears only on the home page.

If you need show this flash on all the pages should change only
/ App / design / frontend / default / default / template / page / html / header.phtml

mais avec But with

/app/design/frontend/default/lorenzo/template/page/html/header.phtml par exemple / App / design / frontend / default / lorenzo / template / page / html / header.phtml eg

(il suffit ensuite de specifier “lorenzo” comme repertoire pour les templates, et Magento y prendra uniquement les fichiers modifies) (il peut donc y avoir uniquement header par exemple) (It can then specify “lorenzo” as repertoire for templates, and Magento there will only modifies files) (it may have been only header for example)


类别:magento 网上商店 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码:
 

     

©2008 Baidu