<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dede图片模型点击图片预览“下一页没有了哦”

时间:2020-12-21

使用dede做图片站的也很多呢;比如美**@ 女图片站;很多都是大张大张的图片预览;这样的效果:每次点击图片都会进入下一张图片预览;点到最后一张的时候显示“下一张没有了哦”提示文字。

来看看建站网提供的方法吧:只需要加入以下JS代码即可实现点击到最后一张图片预览的到时候提示:下一张没有了哦!

<script language="javascript" type="text/javascript"> copyright dedecms

function dPlayNext()
{
  var shortname = "{dede:global.art_shortname/}";
  var npage = {dede:field name='nowpage'/};
    var totalpage = {dede:field name='totalpage'/};
    var namehand = '{dede:field name='namehand'/}';
    var displaytype = '{dede:field name='displaytype'/}';
    var gtimer = null;
    if(npage==totalpage) { alert("没有了哦"); }
    else
    {
        if(displaytype=='st' && namehand!='') location.href = namehand+"_"+(npage+1)+shortname;
        else location.href = "view.php?aid={dede:field name='id'/}&pageno="+(npage+1);
    }
}
</script>

      0
      首页
      案例
      关于
      联系