ecshop教程:添加前台切换颜色功能

2021-09-07 0 724
  • dwt 文件中加入下面代码:
  • <link media=”screen” href=”{$ecs_css_path}” rel=”stylesheet” type=”text/css” title=”{$ecs_css_path}” />
  • <link media=”screen” href=”/themes/kf518/style.css” rel=”alternate stylesheet” type=”text/css” title=”style” />
  • <link media=”screen” href=”/themes/kf518/style_brown.css” rel=”alternate stylesheet” type=”text/css” title=”style_brown” />
  • <link media=”screen” href=”/themes/kf518/style_pink.css” rel=”alternate stylesheet” type=”text/css” title=”style_pink” />
  • <link media=”screen” href=”/themes/kf518/style_purple.css” rel=”alternate stylesheet” type=”text/css” title=”style_purple” />
  • <link media=”screen” href=”/themes/kf518/style_red.css” rel=”alternate stylesheet” type=”text/css” title=”style_red” />
  • 适当位置载入 js    js 在附件中
  • <script type=”text/javascript” src=”路径/kf518.js”></script>
  • 这段是改好的代码具体参照下
  • <link rel=”icon” href=”animated_favicon.gif” type=”image/gif” />
  • <link media=”screen” href=”{$ecs_css_path}” rel=”stylesheet” type=”text/css” title=”{$ecs_css_path}” />
  • <link media=”screen” href=”/themes/kf518/style.css” rel=”alternate stylesheet” type=”text/css” title=”style” />
  • <link media=”screen” href=”/themes/kf518/style_brown.css” rel=”alternate stylesheet” type=”text/css” title=”style_brown” />
  • <link media=”screen” href=”/themes/kf518/style_pink.css” rel=”alternate stylesheet” type=”text/css” title=”style_pink” />
  • <link media=”screen” href=”/themes/kf518/style_purple.css” rel=”alternate stylesheet” type=”text/css” title=”style_purple” />
  • <link media=”screen” href=”/themes/kf518/style_red.css” rel=”alternate stylesheet” type=”text/css” title=”style_red” />
  • <link rel=”alternate” type=”application/rss+xml” title=”RSS|{$page_title}” href=”{$feed_url}” />
  • {* 包含脚本文件 *}
  • <script type=”text/javascript” src=”/themes/kf518/js/kf518.js”></script>
  • 修改好的头部文件,图片路径自己修改下
  • <div id=”ECS_MEMBERZONE”>
  •     {insert_scripts files=’transport.js,utils.js’}
  •               {* ECSHOP 提醒您:根据用户 id 来调用 member_info.lbi 显示不同的界面  *}{insert name=’member_info’}
  • <a title=”默认风格” href=”javascript:chooseStyle(‘{$ecs_css_path}’,518)”></a>
  • <a title=”商务蓝色” href=”javascript:chooseStyle(‘style’,518)”><img src=”/themes/kf518/images/type_0.gif” /></a>
  • <a title=”棕色风格” href=”javascript:chooseStyle(‘style_brown’,518)”><img src=”/themes/kf518/images/typebrown_0.gif” /></a>
  • <a title=”粉色风格” href=”javascript:chooseStyle(‘style_pink’,518)”><img src=”/themes/kf518/images/typepink_0.gif” /></a>
  • <a title=”紫色风格” href=”javascript:chooseStyle(‘style_purple’,518)”><img src=”/themes/kf518/images/typepurple_0.gif” /></a>
  • <a title=”红色风格” href=”javascript:chooseStyle(‘style_red’,518)”><img src=”/themes/kf518/images/typered_0.gif” /></a>
  •    </div>

本文章已结束,如转载请注明:汇站网 » ecshop 教程:添加前台切换颜色功能

收藏 (0)

微信支付 微信扫一扫

支付宝支付 支付宝扫一扫

打赏二维码
点赞 (0)

站长资源下载中心-找源码上汇站

常见问题
  • 如果付款后没有弹出下载页面,多刷新几下,有问题联系客服!
查看详情
  • 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。
查看详情

相关文章

联系官方客服

为您解决烦忧 - 24小时在线 专业服务