BigSale模板如何修改轮播图片的尺寸
2016-07-07 16:03 来源:www.chinab4c.com 作者:ecshop专家
我是用的BigSale模板,效果如图一: 我想将轮播图片的尺寸的宽度跟高度都调整740x333。并将那个上下滚动的文字公告栏删除掉。效果如下图: 下面是我模板的index文件代码麻烦高手们腾个手看看,如果简单的话跟个帖教下怎么改,万谢了。 [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk" /> <meta name="Keywords" content="{$keywords}" /> <meta name="Description" content="{$description}" /> <!-- TemplateBeginEditable name="doctitle" --> <title>{$page_title}</title> <!-- TemplateEndEditable --> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <link rel="shortcut icon" href="favicon.ico" /> <link rel="icon" href="animated_favicon.gif" type="image/gif" /> <link href="{$ecs_css_path}" rel="stylesheet" type="text/css" /> <link rel="alternate" type="application/rss+xml" title="RSS|{$page_title}" href="{$feed_url}" /> {* 包含脚本文件 *} {insert_scripts files='common.js,index.js'} <script type="text/javascript" src="js/action.js"></script> </head> <body> <!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem --> <center> <!-- TemplateBeginEditable name="品牌LOGO下方(980px120px)" --> <!-- TemplateEndEditable --> </center> <!-- #BeginLibraryItem "/library/brands.lbi" --><!-- #EndLibraryItem --> <div class="block clearfix"> <!-- TemplateBeginEditable name="通栏广告位" --> <!-- #BeginLibraryItem "/library/ad_position.lbi" --> <div class="ads"> {insert name='ads' id=$ads_id num=$ads_num} </div> <!-- #EndLibraryItem --> <!-- TemplateEndEditable --> </div> <div class="block clearfix"> <div id="pageLeft" class="fl"> <!-- #BeginLibraryItem "/library/new_articles.lbi" --><!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/recommend_promotion.lbi" --><!-- #EndLibraryItem --> <!-- TemplateBeginEditable name="左边区域" --> <!-- #BeginLibraryItem "/library/ad_position.lbi" --> <div class="ads"> {insert name='ads' id=$ads_id num=$ads_num} </div> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/category_tree.lbi" --> <div class="module_1"> <h2 class="modTitle tl"><span class="L"></span><span class="R"></span><div class="categoriesTit">商品分类</div></h2> <div class="modContent"> <!--{foreach from=$categories item=cat}--> <div class="categories"> <acronym class="icon"></acronym><a href="{$cat.url}"><strong>{$cat.name|escape:html}</strong></a><br /> <!--{if $cat.cat_id}--> <!--{foreach name=childs from=$cat.cat_id item=child}--> <a href="{$child.url}" title="{$child.name|escape:html}">{$child.name|escape:html}</a> <!-- {if !$smarty.foreach.childs.last} --> | <!--{/if}--> <!--{/foreach}--> <!--{/if}--> </div> <!--{/foreach}--> </div> </div> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/top10.lbi" --> <!--{if $top_goods}--> <div class="module_2"> <h2 class="modTitle tl"> <span class="L"></span><span class="R"></span>{$lang.top10} </h2> <div class="modContent"> <ul id="top10"> <!-- {foreach name=top_goods from=$top_goods item=goods}--> <li> <div class="first clearfix"> <span class="fl"> <img src="../images/top_{$smarty.foreach.top_goods.iteration}.gif" /> <a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_name}</a> </span> <span class="fr"><b class="f1">{$goods.price}</b></span> </div> <div class="last clearfix"> <span class="left fl"><a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" /></a></span> <span class="fl"> <b class="f1">{$smarty.foreach.top_goods.iteration}。</b> <a href="{$goods.url}" title="{$goods.name|escape:html}"><b>{$goods.short_name}</b></a><br /> {$lang.shop_price}<b class="f1">{$goods.price}</b><br /> </span> </div> </li> <!-- {/foreach} --> </ul> <script>elems("top10","cur");</script> </div> </div> <!--{/if}--> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/ad_position.lbi" --> <div class="ads"> {insert name='ads' id=$ads_id num=$ads_num} </div> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/ad_position.lbi" --> <div class="ads"> {insert name='ads' id=$ads_id num=$ads_num} </div> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/promotion_info.lbi" --> <!-- {if $promotion_info} --> <div class="module_2"> <h2 class="modTitle tl"> <span class="L"></span><span class="R"></span> {$lang.promotion_info} </h2> <div class="modContent"> <!-- {foreach from=$promotion_info item=item key=key} --> <!-- {if $item.type eq "snatch"} --> <acronym class="icon"></acronym><a href="snatch.php" title="{$lang.$item.type}">{$lang.snatch_promotion}</a> <!-- {elseif $item.type eq "group_buy"} --> <acronym class="icon"></acronym><a href="group_buy.php" title="{$lang.$item.type}">{$lang.group_promotion}</a> <!-- {elseif $item.type eq "auction"} --> <acronym class="icon"></acronym><a href="auction.php" title="{$lang.$item.type}">{$lang.auction_promotion}</a> <!-- {elseif $item.type eq "favourable"} --> <acronym class="icon"></acronym><a href="activity.php" title="{$lang.$item.type}">{$lang.favourable_promotion}</a> <!-- {elseif $item.type eq "package"} --> <acronym class="icon"></acronym><a href="package.php" title="{$lang.$item.type}" class="txtdot">{$lang.package_promotion}</a> <!-- {/if} --> <a href="{$item.url}" title="{$lang.$item.type} {$item.act_name}{$item.time}">{$item.act_name}</a><br /> <!-- {/foreach} --> </div> </div> <!-- {/if} --> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/invoice_query.lbi" --> <!--{if $invoice_list}--> <style type="text/css"> .vote{ border-bottom:1px dashed #ccc; margin-bottom:8px; padding-bottom:5px; } .vote form{display:inline;} .vote form a{ text-decoration:underline;} </style> <div class="module_2"> <h2 class="modTitle tl"> <span class="L"></span><span class="R"></span> {$lang.shipping_query} </h2> <div class="modContent"> <marquee direction="up" scrollamount="2" width=220height=120> <!-- 发货单查询{foreach name=invoice from=$invoice_list item=invoice} --> <div class="vote"> <strong>{$lang.order_number}</strong> {$invoice.order_sn}<br /> <strong>{$lang.c**ignment}</strong> {$invoice.invoice_no}<br> <strong>收货人:</strong>{$invoice.c**ignee} <br> <strong>收货地址:</strong>{$invoice.province}-{$invoice.city}</div> <!-- 结束发货单查询{/foreach}--> </marquee> </div> </div> |
回答:
<!-- {/if} --> <!-- #EndLibraryItem --> <!-- TemplateEndEditable --> </div> <div id="pageRight" class="fr"> <div class="clearfix"> <div class="flash fl"> <!-- #BeginLibraryItem "/library/index_ad.lbi" --><!-- #EndLibraryItem --> </div> <div class="shop_notice fr"> <div class="content hslice" id="1"> <p class="entry-title" style="display:none;">网店公告</p> <div class="entry-content">{$shop_notice}</div> </div> </div> </div> <!-- TemplateBeginEditable name="右边区域" --> <!-- #BeginLibraryItem "/library/group_buy.lbi" --> <!-- {if $group_buy_goods} --> <div class="module_4"> <div class="module_4_1"> <h3 class="modTitle"> <span></span> <div class="L fl"><acronym class="grouptit">{$lang.group_buy_goods}</acronym></div> <a href="group_buy.php" class="more">more</a> </h3> <div class="groupContent"> <!--{foreach from=$group_buy_goods item=goods}--> <div class="goodsbox"> <div class="imgbox"><a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.goods_name|escape:html}" /></a></div> <a href="{$goods.url}" title="{$goods.goods_name|escape:html}">{$goods.short_style_name|escape:html}</a><br /> {$lang.last_price}<b class="f1">{$goods.last_price}</b> </div> <!--{/foreach}--> </div> </div> </div> <!-- {/if} --> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/auction.lbi" --> <!-- {if $auction_list} --> <div class="module_4"> <div class="module_4_1"> <h3 class="modTitle"> <span></span> <div class="L fl"><acronym class="grouptit">{$lang.auction_goods}</acronym></div> <a href="auction.php" class="more">more</a> </h3> <div class="groupContent"> <!--{foreach from=$auction_list item=auction}--> <div class="goodsbox"> <div class="imgbox"><a href="{$auction.url}"><img src="{$auction.thumb}" alt="{$auction.goods_name|escape:html}"/></a></div> <a href="{$auction.url}" title="{$auction.goods_name|escape:html}">{$auction.short_style_name|escape:html}</a><br /> <b class="f1">{$auction.formated_start_price}</b> </div> <!--{/foreach}--> </div> </div> </div> <!-- {/if} --> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/recommend_new.lbi" --> <!-- {if $new_goods} --> <!-- {if $cat_rec_sign neq 1} --> <div class="module_3L"> <div class="module_3R"> <div class="module_3"> <span class="l"></span><span class="r"></span> <h4 class="modTitle clearfix"> <div class="L fl"><acronym class="bestTit">{$lang.new_goods}</acronym></div> <div class="recommendTit" id="itemNew"> {if $cat_rec[2]} <h2><span></span><a href="javascript:void(0)" onclick="change_tab_style('itemNew', 'h2', this);get_cat_recommend(2, 0);">{$lang.all_goods}</a></h2> {foreach from=$cat_rec[2] item=rec_data} <h2 class="h2bg"><span></span><a href="javascript:void(0)" onclick="change_tab_style('itemNew', 'h2', this);get_cat_recommend(2, {$rec_data.cat_id})">{$rec_data.cat_name}</a></h2> {/foreach} {/if} <a href="../search.php?intro=new" class="more">more</a> </div> </h4> <div class="recommendContent"id="show_new_area"> <!-- {/if} --> <!--{foreach from=$new_goods item=goods}--> <div class="goodsbox"> <div class="imgbox"><a href="{$goods.url}" target="_blank" /><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" class="goodsimg" /></a></div> <a href="{$goods.url}" title="{$goods.name|escape:html}" target="_blank" />{$goods.short_style_name}</a><br /> <!-- {if $goods.promote_price neq ""} --> {$lang.promote_price}<b class="f1">{$goods.promote_price}</b><br /> <!-- {else}--> {$lang.shop_price}<b class="f1">{$goods.shop_price}</b><br /> <!--{/if}--> <a href="javascript:collect({$goods.id})"><acronym class="collect">收藏</acronym></a> <a href="javascript:addToCart({$goods.id})"><acronym class="addToCart">购买</acronym></a> </div> <!--{/foreach}--> <!-- {if $cat_rec_sign neq 1} --> </div> </div> </div> </div> <!-- {/if} --> <!-- {/if} --> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/recommend_hot.lbi" --> <!-- {if $hot_goods} --> <!-- {if $cat_rec_sign neq 1} --> <div class="module_3L"> <div class="module_3R"> <div class="module_3"> <span class="l"></span><span class="r"></span> <h4 class="modTitle clearfix"> <div class="L fl"><acronym class="bestTit">{$lang.hot_goods}</acronym></div> <div class="recommendTit" id="itemHot"> {if $cat_rec[3]} <h2><span></span><a href="javascript:void(0)" onclick="change_tab_style('itemHot', 'h2', this);get_cat_recommend(3, 0);">{$lang.all_goods}</a></h2> {foreach from=$cat_rec[3] item=rec_data} <h2 class="h2bg"><span></span><a href="javascript:void(0)" onclick="change_tab_style('itemHot', 'h2', this);get_cat_recommend(3, {$rec_data.cat_id})">{$rec_data.cat_name}</a></h2> {/foreach} {/if} <a href="../search.php?intro=hot" class="more">more</a> </div> </h4> <div class="recommendContent"id="show_hot_area"> <!-- {/if} --> <!--{foreach from=$hot_goods item=goods}--> <div class="goodsbox"> <div class="imgbox"><a href="{$goods.url}" target="_blank" /><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" class="goodsimg" /></a></div> <a href="{$goods.url}" title="{$goods.name|escape:html}" target="_blank" />{$goods.short_style_name}</a><br /> <!-- {if $goods.promote_price neq ""} --> {$lang.promote_price}<b class="f1">{$goods.promote_price}</b><br /> <!-- {else}--> {$lang.shop_price}<b class="f1">{$goods.shop_price}</b><br /> <!--{/if}--> <a href="javascript:collect({$goods.id})"><acronym class="collect">收藏</acronym></a> <a href="javascript:addToCart({$goods.id})"><acronym class="addToCart">购买</acronym></a> </div> <!--{/foreach}--> <!-- {if $cat_rec_sign neq 1} --> </div> </div> </div> </div> <!-- {/if} --> <!-- {/if} --> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/recommend_best.lbi" --> <!-- {if $best_goods} --> <!-- {if $cat_rec_sign neq 1} --> <div class="module_3L hslice" id="2"> <div class="module_3R"> <div class="module_3"> <span class="l"></span><span class="r"></span> <h4 class="modTitle clearfix"> <div class="L fl"><acronym class="bestTit entry-title">{$lang.best_goods}</acronym></div> <div class="recommendTit" id="itemBest"> {if $cat_rec[1]} <h2><span></span><a href="javascript:void(0)" onclick="change_tab_style('itemBest', 'h2', this);get_cat_recommend(1, 0);">{$lang.all_goods}</a></h2> {foreach from=$cat_rec[1] item=rec_data} <h2 class="h2bg"><span></span><a href="javascript:void(0)" onclick="change_tab_style('itemBest', 'h2', this);get_cat_recommend(1, {$rec_data.cat_id})">{$rec_data.cat_name}</a></h2> {/foreach} {/if} <a href="../search.php?intro=best" class="more">more</a> </div> </h4> <div class="recommendContent entry-content"id="show_best_area"> <!-- {/if} --> <!--{foreach from=$best_goods item=goods}--> <div class="goodsbox"> <div class="imgbox"><a href="{$goods.url}" target="_blank" /><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" class="goodsimg" /></a></div> <a href="{$goods.url}" title="{$goods.name|escape:html}" target="_blank" />{$goods.short_style_name}</a><br /> <!-- {if $goods.promote_price neq ""} --> {$lang.promote_price}<b class="f1">{$goods.promote_price}</b><br /> <!-- {else}--> {$lang.shop_price}<b class="f1">{$goods.shop_price}</b><br /> <!--{/if}--> <a href="javascript:collect({$goods.id})"><acronym class="collect">收藏</acronym></a> <a href="javascript:addToCart({$goods.id})"><acronym class="addToCart">购买</acronym></a> </div> <!--{/foreach}--> <!-- {if $cat_rec_sign neq 1} --> </div> </div> </div> </div> <!-- {/if} --> <!-- {/if} --> <!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/ad_position.lbi" --> <div class="ads"> {insert name='ads' id=$ads_id num=$ads_num} </div> <!-- #EndLibraryItem --> <!-- TemplateEndEditable --> </div> </div> <div class="block"> <!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem --> </div> <!--{if $img_linksor $txt_links }--> <div class="links"> <b class="f1">友情链接:</b><br /> <!--开始图片类型的友情链接{foreach from=$img_links item=link}--> <a href="{$link.url}" target="_blank" title="{$link.name}"><img src="{$link.logo}" alt="{$link.name}" /></a> <!--结束图片类型的友情链接{/foreach}--> <!-- {if $txt_links} --> <!--开始文字类型的友情链接{foreach from=$txt_links item=link}--> [<a href="{$link.url}" target="_blank" title="{$link.name}">{$link.name}</a>] <!--结束文字类型的友情链接{/foreach}--> <!-- {/if} --> </div> <!--{/if}--> <!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem --> </body> </html> [/code] |
他这个默认是LFASH。你要用JS自己写才行 |
请问在哪里修改那个尺寸呢。另外如何把那个滚动的公告栏删除呢。 |
我是新手,正在学习 |
修改 themes/模板文件夹/library/index_ad.lbi 主要是修改下面几个地方 var swf_width=484; var swf_height=200; 。。。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。。。 width="484" height="200" |
一堆代码。你挑重要的代码粘贴出来。 |
定下 支持了 |
不懂,支持一下 |
新手看帖 学习中 礼貌顶帖 |
嗯,明白了 |
好东西哇。。。代码就是有点乱·! |
好想看过这样的东西 |
简单的方法:后台——库项目管理——首页主广告位置内——修改width;height的数值,共计四处! |
最近更新
常用插件
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop的oss插件
ecshop的oss插件免费共享了,oss,ecshoposs...
- ecshop注册审核插件
ecshop插件介绍:ecshop会员注册审核插件,主要是在前台提供给注册的时候...
- ecshop虚拟发货插件
ecshop虚拟发货插件介绍: ecshop虚拟发货插件,主要为了通过后台手动录...
- ecshop订单聚合插件
ecshop订单聚合插件,主要是为了方便ecshop中订单产品到货情况的分析和...
ecshop热门问答
ecshop热门资料
ecshop会员等级价格
ecshop来历不明
成果cps整合
zen cart下架商品
ecshop图片下载
ecshop谷歌地图
ecshop网站打不开
ecshop搜索页
ecshop版本升级
ecshop商家管理
ecshop试衣间
ecshop分卷
ecshop费用户
ecshop行动
ecshop法登
ecshop匿名用户
ecshop3G手机
ecshop底部链接
ecshop上图
ecshop首页添加文章
ecshopreg
ecshop网店错误
ecshopDISCUZ论坛
ecmall标签
ecshop官网
ecshop客服代码
ecshop邮箱
ecshop链接
ecshop奥迪
ecshopLive