|
主题:图片系统问题,希望管理员帮忙解决. [收藏主题] | 转到: |
![]() 在改一个网站模板遭遇这么个问题,想把图片版块的内容图片的缩略图都调出并列在内容页中,然后点一个缩略图,右边出现该图的实际大图.实现效果如下图,点左边小图时右边显示大图.
现在已看过科汛的所有标签,就没一个标签可实现这个功能,唯有一个不过显示的是所有图片的排列序号如: 下一张>> 首页 1 2 >> 末页 现在我就是先把标注成红色字样的改为调用图片在后台上传的缩略图,然后右边为后台上传的大图.这样访问者打开内容页面时所有图都呈缩略小图列于页面左侧,而大图在右侧. 我看过了\Photo\ShowInfo.asp PageStr="<table style='BORDER-BOTTOM: #8eacca 1px solid' cellSpacing=0 cellPadding=0 width='95%' align=center border=0><tr><td class=text_9 width='54%' height=25> 共 <font color=#6699ff><strong>" & TPage&" </strong></font>页 第 <font color=#6699ff><strong>" & CurrPage & "</strong></font> 页</td><td class=text_9 align=right width='33%'>" startpage=1:k=0 if (CurrPage>=10) then startpage=(CurrPage\10-1)*10+CurrPage mod 10+2 PageStr=PageStr & "<a href=""?ID=" & ID & """ title=""首页"">首页</a> " if CurrPage<>1 then PageStr=PageStr & "<a href=""?ID=" & ID & "&Page=" & CurrPage-1 & """ title=""上一页""><<</a> " end if For N = startpage To TPage If CurrPage = N Then PageStr = PageStr & "<a href=""#""><font color=red>" & N & "</font></a> " Else PageStr = PageStr & "<a href=""?ID=" & ID & "&Page=" & N & """>" & N & "</a> " End If k=k+1 If k>=10 Then exit for Next If CurrPage <>tpage Then PageStr=PageStr & "<a href=""?ID=" & ID & "&Page=" & currpage+1 & """ title=""下一页"">>></a> " end if PageStr=PageStr & "<a href=""?ID=" & ID & "&page=" & tpage & """ title=""末页"">末页</a> " PageStr=PageStr & "</td><td align=right width='13%'><Select style='FONT-SIZE: 9pt; COLOR: #6699ff' onchange=""javascript:window.location='?Page='+this.value+'&id=" & id & "';"" size=1 name=nPage>" For K=1 To Tpage if k=currpage then PageStr=PageStr & "<Option value=" & k & " selected>第" & K & "页</Option>" else PageStr=PageStr & "<Option value=" & k & ">第" & K & "页</Option>" end if Next PageStr=PageStr & "</Select> </td></tr></table>" ElseIf InStr(FileContent, "{$GetPictureByPage}") <> 0 Then '按分页方式生成图片内容页 If TotalPage > 1 Then PageStr="<div class=""kspage"">" & vbcrlf & "<div style=""text-align:center"">" If CurrPage = 1 Then PageStr = PageStr & "<a href=""?ID=" & ID & "&Page=" & (CurrPage + 1) & """>下一张>></a>" NextUrl="?ID=" & ID & "&Page=" & (CurrPage+1) ElseIf CurrPage = TotalPage Then PageStr = PageStr & "<a href=""?ID=" & ID & "&Page=" & (CurrPage - 1) & """><<上一张</a>" NextUrl="?ID=" & ID & "&Page=1" Else PageStr = PageStr & "<a href=""?ID=" & ID & "&Page=" & (CurrPage - 1) & """><<上一张</a> <a href=""?ID=" & ID & "&Page=" & (CurrPage + 1) & """>下一张>></a>" NextUrl="?ID=" & ID & "&Page=" & (CurrPage+1) End If PageStr =PageStr & "</div>" dim startpage,k startpage=1:k=0 if (CurrPage>=10) then startpage=(CurrPage\10-1)*10+CurrPage mod 10+2 PageStr=PageStr & "<a href=""?ID=" & ID & """ title=""首页"">首页</a> " if CurrPage<>1 then PageStr=PageStr & "<a href=""?ID=" & ID & "&Page=" & N-1 & """ title=""上一页""><<</a> " end if For N = startpage To TotalPage If CurrPage = N Then PageStr = PageStr & "<a href=""#""><font color=red>" & N & "</font></a> " Else PageStr = PageStr & "<a href=""?ID=" & ID & "&Page=" & N & """>" & N & "</a> " End If k=k+1 If k>=10 Then exit for Next If CurrPage <>totalpage Then PageStr=PageStr & "<a href=""?ID=" & ID & "&Page=" & currpage+1 & """ title=""下一页"">>></a> " end if PageStr=PageStr & "<a href=""?ID=" & ID & "&page=" & totalpage & """ title=""末页"">末页</a> " PageStr=PageStr & "</div>" PageStr = "<div style=""text-align:center""><a href=""" & NextUrl & """><Img onmousewheel=""return bbimg(this)"" onload=""javascript:resizepic(this)"" src=""" & Split(PicUrlsArr(CurrPage-1), "|")(1) & """ border=""0""></a></div>" & PageStr & "</div>" Else PageStr = "<div style=""text-align:center""><Img onmousewheel=""return bbimg(this)"" onload=""javascript:resizepic(this)"" src=""" & Split(PhotoContent, "|")(1) & """ border=""0""></div>"& PageStr & "</div>" End If ' response.write PageStr ' response.End() FileContent = KSR.ReplacePictureContent(ChannelID,RS, FileContent, PageStr) 现在我认为是改CSS中的text_9,另外将href=""?ID=" & ID & "&Page=" & currpage+1 & 我要实现的效果就是不要将图片分为顺延的页面,我希望是同一个页面内调用不同序列的图片.内容页能有导航和内容页大图同存的功能.现在的情况是Photo/ShowInfo.asp?ID=2&Page=2或是Photo/ShowInfo.asp?ID=2&Page=1,这样实际上一页的内容被分为了多个页面,我的空间被浪费的部分太大了,比如说十五个图,在访问者来看一组有十五个图的页面应该就是一个页面,现在分出来的大图放大实际上是转到了新页面. |
|
![]() ![]() ![]() ![]() |
![]() 我已花不少时间在这个问题上了,前台实现所需的功能特效我都已有了.缩略图列表是准备用{=GetPhotoPage(50,1,100,100)}这样基本可把单篇文章的所有缩略图调用到.现在的问题就是点图时直接进入图属性下的链接页面.而无法实现右图展现结果.我目前有两个解决方案,一个是用FLASH播放器,这部分代码我都准备好了,就是具体的实现方法没解决. 第二个也是从国外站"拿"来的程序,可实现不改变页面同页浏览多图. 官方没兴趣吗?这问题提出来有几天了,不能解决或不想帮忙解决回个话嘛.人家是不是可以另作安排呢?这么不理不睬的真没劲,我到这论坛也算热心帮过几个人回答过些问题的吧. 希望今晚有无解决办法官方都回复一下,谢谢! |
|
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
<上一主题 | 下一主题 > |