本篇文章给大家谈谈discuz图片滚动插件,以及wordpress滚动插件对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。
本文目录一览:
- 1、discuz图片如何实现滚动
- 2、请问这个在discuz是怎么实现的呢?是插件吗?
- 3、Discuz论坛怎么让首页的轮播图图片是从发布的文章里调用的
- 4、论坛升级到discuz X1了,求支持discuz最新版本X的插件
- 5、这个是discuz什么插件,论坛首页上面图片从右往左移动
1、discuz图片如何实现滚动
你问的是帖子图片吗?那需要第三方插件支持,或者自己开发才行
2、请问这个在discuz是怎么实现的呢?是插件吗?
就是一个javascript+css实现的功能
参考:
在页面中导入jquery.js和gobacktop.js就可以了,然后修改gobacktop.js中的图片路径,就可以使用了,一个不错的返回页面顶部的js,gobacktop.js是在网上找到的!
gobacktop.js的代码如下:
//** jQuery Scroll to Top Control script- (c) Dynamic Drive DHTML code library: .
//** Available/ usage terms at (March 30th, 09')
//** v1.1 (April 7th, 09'):
//** 1) Adds ability to scroll to an absolute position (from top of page) or specific element on the page instead.
//** 2) Fixes scroll animation not working in Opera.
var scrolltotop={
//startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
//scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
setting: {startline:1, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
controlHTML: 'img src="../images/top.png" style="width:39px; height:16px" /', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
controlattrs: {offsetx:100, offsety:80}, //offset of control relative to right/ bottom of window corner
anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
state: {isvisible:false, shouldvisible:false},
scrollup:function(){
if (!this.cssfixedsupport) //if control is positioned using JavaScript
this.$control.css({opacity:0}) //hide control immediately after clicking it
var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
if (typeof dest=="string" jQuery('#'+dest).length==1) //check element set by string exists
dest=jQuery('#'+dest).offset().top
else
dest=0
this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
},
keepfixed:function(){
var $window=jQuery(window)
var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
this.$control.css({left:controlx+'px', top:controly+'px'})
},
togglecontrol:function(){
var scrolltop=jQuery(window).scrollTop()
if (!this.cssfixedsupport)
this.keepfixed()
this.state.shouldvisible=(scrolltop=this.setting.startline)? true : false
if (this.state.shouldvisible !this.state.isvisible){
this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
this.state.isvisible=true
}
else if (this.state.shouldvisible==false this.state.isvisible){
this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
this.state.isvisible=false
}
},
init:function(){
jQuery(document).ready(function($){
var mainobj=scrolltotop
var iebrws=document.all
mainobj.cssfixedsupport=!iebrws || iebrws document.compatMode=="CSS1Compat" window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
mainobj.$control=$('div id="topcontrol"'+mainobj.controlHTML+'/div')
.css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
.attr({title:'Scroll Back to Top'})
.click(function(){mainobj.scrollup(); return false})
.appendTo('body')
if (document.all !window.XMLHttpRequest mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
mainobj.togglecontrol()
$('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
mainobj.scrollup()
return false
})
$(window).bind('scroll resize', function(e){
mainobj.togglecontrol()
})
})
}
}
scrolltotop.init()
setting: {startline:1, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
startline: 鼠标向下滚动了100px后出现#topcontrol*/scrollto: 它的值可以是整数,也可以是一个id标记。若为整数(假设为n),则滑动到距离top的n像素处;若为id标记,则滑动到该id标记所在的同等高处scrollduration:滑动的速度fadeduration:#topcontrol这个div的淡入淡出速度,第一个参数为淡入速度,第二个参数为淡出速度
controlHTML: '',
controlHTML:控制向上滑动的,直接插入引动的图片,可以手动设置style。该处的html代码会被包含在一个id标记为#topcontrol的div中。
controlattrs: {offsetx:100, offsety:80},
controlattrs:控制#topcontrol这个div距离右下角的像素距离
anchorkeyword: '#top',
state: {isvisible:false, shouldvisible:false},
state: isvisible:是否#topcontrol这个div为可见
shouldvisible:是否#topcontrol这个div该出现
3、Discuz论坛怎么让首页的轮播图图片是从发布的文章里调用的
在做开始之前首先我们大家要知道什么是无缝滚动,因为只有知道这个我们才能确定目标,因为这个效果截图看不到效果的。但是还是要给大家截一张静态图,看一下弄成以后不动的效果。
开始做之前首先就是要在后台添加一些带图片的文章,方便在前台做DIY的时候来调用,这样才能看到直观的效果。后台添加文章之前,如果你想要学到更多,那最好分几个栏目,然后再不同的栏目中添加一到两篇文章这一步我们要做的就是学会Discuz!后台门户中模块模板的应用,这一步将配合前台DIY的调用打开后台----门户----左方导航中的模块模板---右方添加----文章首先要懂的就是改如何添加模块,因为这个懂得以后下面的无缝滚动的代最后选择添加的模块不同提交以后第三步中第二张图也不一样所以要简单拿添加一个幻灯的代码来讲解每一句代码后面都有大家说的是添加模块中那些标签能起到的作用,虽然咱们这次目这里程龙博提醒各位一下,代码你也可以去找个更简单 的,然后自己改,如果你不会那就直接复制吧,图中名字你随意定,代码粘贴到下方就完成了样式让我写的代码里面了,如果可以你也能写到自己想要的样式文件中,这个程龙博也写过添加自定义样的方法,你可以做完以后就是前天的调用了。首先点击首页DIY高级左上方模门户-文章模块直接点击鼠标左键拖拽到想要添加的位置。然后再出现的弹出框内添加信息。一步是最关键的,就是展示类型,要选择你自己定义好的那个模块,也就是图然后就是下方的图片大小定义,这个最好定一个长方形的,因为这样看着做好了就直接确定就行了,然后还会弹出的一个窗口,这里什么都不要动,直接点击确定就OK了,前面自然能看到滚动的图片
4、论坛升级到discuz X1了,求支持discuz最新版本X的插件
支持discuz X版本的插件有很多
百度搜索一下很容易找到的
开心交友的2010首款专业在线交友插件
图片滚动展示
【电视直播】插件
上面几个都安装使用过,还不错
还有象下面这些都支持discuz最新版本的插件,楼主慢慢考虑看看
社区辅助管理平台
小黑屋
顶顶更健康
版内搜索
头像强化包
5、这个是discuz什么插件,论坛首页上面图片从右往左移动
这个用不着安装插件吧,是用js做的图片滚动效果,你可以查看他的源代码,然后把相应文件复制下来就可以实现
关于discuz图片滚动插件和wordpress滚动插件的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。