像淘宝,拍拍这样的大型商城在商品列表里都有一个块,显示您最近浏览过的N个产品。
现,我也做了一个类似功能的插件,先看一下演示图片:
![]() |
![]() |
演示地址:http://guest.pasun.cn/Shop/Index.html
商品对比:http://guest.pasun.cn/shop/compare.asp?ProductID=6&ProductID=5&ProductID=4&ProductID=3
该插件基于动易SW6.5制作,不适合在此版本之前的任意版本
支持的功能有:
1.带图列表
2.纯文字列表
3.商品标题字数限制
4.可设置是否显示标题后面的省略号
5.可设置最多显示N个商品
6.可显示商品属性
安装方法:
1.下载压缩包,将解压后得到的文件“Visited_Product.asp”黏贴在/Shop/文件夹中
2.修改商品内容页模板,在底部插入代码:<script type="text/javascript" src="{$InstallDir}{$ChannelDir}/Visited_Product.asp?Action=GetJS&ProductID={$ProductID}"></script>
3.修改想显示最近浏览列表的模板,在适当的位置插入代码:
<script type="text/javascript" src="{$InstallDir}{$ChannelDir}/Visited_Product.asp?Action=PicList&ProductNum=10"></script>
<script type="text/javascript" src="{$InstallDir}{$ChannelDir}/Visited_Product.asp?Action=GetList&ProductNum=10"></script>
其中:PicList为图片列表,GetList为文字列表,ProductNum=10为最多显示10个商品
4.设置CSS
5.生成该生成的页面,更新该更新的缓存
| 以下是引用片段: <style> .visited_border *{padding:0;margin:0;list-style:none;border:0;font-size:12px} .visited_border{width:200px;border:#D1E6F7 solid 1px} .visited_title{height:25px;line-height:25px;background:#D1E6F7;border:#fff solid 1px;padding-left:10px;font-weight:bold;color:#075BA3} .visited_border ul{padding:5px;line-height:20px} .visited_border li{clear:both;height:60px;padding:5px 0;border-bottom:#ccc dashed 1px} .visited_border li a{color:#00c;line-height:30px} .visited_border .pic5{border:#ccc solid 1px} </style> |
下载地址:文件下载
相关贴:http://bbs.powereasy.net/dispbbs.asp?boardid=67&id=362942
感谢rhongsheng提供!