Lof JSliderNews URL 问题

发布于 2024-10-31 21:23:47 字数 149 浏览 0 评论 0原文

我正在尝试在我的网站上安装 Lof JSliderNews,一切正常,图片和标题切换正常,但 URL 不行。他们似乎总是指向最新的帖子。

我现在已经四处寻找很长一段时间但找不到任何解决方案。有人遇到过同样的问题吗?

感谢您的帮助。

丽塔

I'm trying to install Lof JSliderNews on my website and everything is working well, the pictures and the titles are swicthing fine but the URLs don't. It seems like they always point to the latest post.

I've been looking around now for quite a while but couldn't find any solution. Has anyone encountered the same problem?

Thanks for your Help.

Lita

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ˉ厌 2024-11-07 21:23:47

伙计。

我一直在绞尽脑汁试图找出这个问题,这是一个简单的 CSS 错误。

检查 style6.css(位于 .zip 文件中)并检查:

.lof-main-item-desc{
z 索引:100px; <<--- 这行是错误的。
位置:绝对;
底部:0px;
左:0px;
宽度:100%;
背景:url(images/bg_trans.png);
高度:45px;
内边距:10px;

}


将其替换为:

.lof-main-item-desc{
z 索引:100;
位置:绝对;
底部:0px;
左:0px;
宽度:100%;
背景:url(images/bg_trans.png);
高度:45px;
内边距:10px;

}

(删除 z-index 上的 px)100 之后就是这样。

干杯

CK。

Dude.

i've been cracking my head off tru the table trying to figure out the issue, and it's a simple CSS mistake.

check on the style6.css (that came inside on the .zip file) and check that :

.lof-main-item-desc{
z-index:100px; <<--- this line it's wrong.
position:absolute;
bottom:0px;
left:0px;
width:100%;
background:url(images/bg_trans.png);
height:45px;
padding:10px;

}


replace it for this:

.lof-main-item-desc{
z-index:100;
position:absolute;
bottom:0px;
left:0px;
width:100%;
background:url(images/bg_trans.png);
height:45px;
padding:10px;

}

(remove the px on the z-index) after the 100 and that's is.

Cheers

ck.

一页 2024-11-07 21:23:47

Lita,

因为属性“opacity”不会使链接隐藏,并且最后一个链接的“z-index”位于其同级链接之上,所以我们必须修改脚本来设置 z-index。

原来的脚本(在lofslidernews/js/script.js):

fxStart:function( index, obj, currentObj ){
            if( this.settings.direction == 'opacity' ) { 
                $(this.slides).stop().animate({opacity:0}, {duration: this.settings.duration, easing:this.settings.easing} );
                $(this.slides).eq(index).stop().animate( {opacity:1}, {duration: this.settings.duration, easing:this.settings.easing} );
            }else {
                this.wrapper.stop().animate( obj, {duration: this.settings.duration, easing:this.settings.easing} );
            }
        return this;
    }

替换为以下脚本:

fxStart:function( index, obj, currentObj ){
            if( this.settings.direction == 'opacity' ) { 
                $(this.slides).css('z-index',-1).stop().animate({opacity:0}, {duration: this.settings.duration, easing:this.settings.easing} );
                $(this.slides).eq(index).css('z-index',10).stop().animate( {opacity:1}, {duration: this.settings.duration, easing:this.settings.easing} );
            }else {
                this.wrapper.stop().animate( obj, {duration: this.settings.duration, easing:this.settings.easing} );
            }
        return this;
    }

我已经通过这种方式解决了这个问题,希望对你有帮助!

Lita,

Because attribute 'opacity' doesn't make link hidden, and 'z-index' of the last link is above its siblings, so we must modify script to set z-index.

The original scripts(in lofslidernews/js/script.js):

fxStart:function( index, obj, currentObj ){
            if( this.settings.direction == 'opacity' ) { 
                $(this.slides).stop().animate({opacity:0}, {duration: this.settings.duration, easing:this.settings.easing} );
                $(this.slides).eq(index).stop().animate( {opacity:1}, {duration: this.settings.duration, easing:this.settings.easing} );
            }else {
                this.wrapper.stop().animate( obj, {duration: this.settings.duration, easing:this.settings.easing} );
            }
        return this;
    }

Replace it with the following script:

fxStart:function( index, obj, currentObj ){
            if( this.settings.direction == 'opacity' ) { 
                $(this.slides).css('z-index',-1).stop().animate({opacity:0}, {duration: this.settings.duration, easing:this.settings.easing} );
                $(this.slides).eq(index).css('z-index',10).stop().animate( {opacity:1}, {duration: this.settings.duration, easing:this.settings.easing} );
            }else {
                this.wrapper.stop().animate( obj, {duration: this.settings.duration, easing:this.settings.easing} );
            }
        return this;
    }

I have solved this problem by this way, Wish it is helpful to you!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文