1Next >
fjlx | 发表于:12-08-01 16:15 [添加收藏] 楼主 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() |
多图上传功能,要生成图片列表在内容页展示,如何实现? 我自定义模型新建了这个字段--多(图片列表) 然后在新建成的模型里面也添加了内容。 在内容页模版里头也加了该字段。但是现实的时候,提示的是 Array 目的就是像实现类似于淘宝那样的多图展示功能。 这个要怎么实现,求解!
Ta最近还发表过
[使用]
KINGCMS-PHP版本没有数据备份工具么?
(13-12-07)
[建议]
列表可否设置隐藏属性。或者会员可见的权限之类的?
(12-08-09)
[疑问]
后台登录出错---在服务器上。需要修改什么?如图!
(12-08-08)
[疑问]
原来的guide,现在PHP版本要怎么使用?
(12-08-08)
[疑问]
多图上传功能,要生成图片列表在内容页展示
(12-08-06)
随机阅读
[疑问]
买地方门户版送K币么?
(16-10-02)
[疑问]
为什么安装完一直登录不了后台
(15-04-28)
[疑问]
十分钟被黑客攻进入kingcms网站
(14-02-21)
[模板]
您中意哪个地方门户的网站模板?写出来,咱去仿
(12-12-06)
[其他]
人生三大错觉
(12-11-09)
|
fjlx | 发表于:12-08-01 16:30 沙发 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() |
刚研究出来了。稍后我发布内容。大家可以借鉴http://d.lanrentuku.com/down/js/jiaodiantu-772/这个
我的代码如下 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="{king:keywords/}" /> <meta name="description" content="{king:description/}" /> <title>{king:title/}</title> <link href="../images/style.css" rel="stylesheet" type="text/css" /> <link href="/css/css.css" type="text/css" rel="stylesheet"> <SCRIPT src="/js/jquery-1.2.6.pack.js" type=text/javascript></SCRIPT> <SCRIPT src="/js/base.js" type=text/javascript></SCRIPT> </head> <body> <div id=preview> <div class=jqzoom id=spec-n1 ><IMG height=350 src="/{king:image/}" jqimg="/{king:image/}" width=350> </div> <div id=spec-n5> <div class=control id=spec-left> <img src="/images/left.gif" /> </div> <div id=spec-list> <ul class=list-h> {king:_simg} <li><img src="/{king:image/}"> </li>{/king:_simg} </ul> </div> <div class=control id=spec-right> <img src="/images/right.gif" /> </div> </div> </div> <SCRIPT type=text/javascript> $(function(){ $(".jqzoom").jqueryzoom({ xzoom:400, yzoom:400, offset:10, position:"right", preload:1, lens:1 }); $("#spec-list").jdMarquee({ deriction:"left", width:350, height:56, step:2, speed:4, delay:10, control:true, _front:"#spec-right", _back:"#spec-left" }); $("#spec-list img").bind("mouseover",function(){ var src=$(this).attr("src"); $("#spec-n1 img").eq(0).attr({ src:src.replace("/n5/","/n1/"), jqimg:src.replace("/n5/","/n0/") }); $(this).css({ "border":"2px solid #ff6600", "padding":"1px" }); }).bind("mouseout",function(){ $(this).css({ "border":"1px solid #ccc", "padding":"2px" }); }); }) </SCRIPT> <SCRIPT src="/js/lib.js" type=text/javascript></SCRIPT> <SCRIPT src="/js/163css.js" type=text/javascript></SCRIPT> </body> </html> |
fjlx | 发表于:12-08-01 16:30 板凳 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() |
比较粗糙。但是一个大致的内容已经形成了。其他的可以自己去修改样式。
|
ahao303 | 发表于:12-08-06 10:25 4楼 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() |
<div id=preview>
<div class=jqzoom id=spec-n1 ><IMG height=350 src="/{king:image/}" jqimg="/{king:image/}" width=350> </div> 这个不是调用多图字段的吧,用缩略图那个字段吧 |
1Next >