EasySlider和灯箱冲突?
|
在我的网站上:http://windowsphonedaily.blogspot.com/
我首先注意到,当我尝试添加任何JavaScript函数(例如\“ continuous:true \”)时,EasySlider 1.7出现问题。只要完成,这两个导航按钮(prevBtn和nextBtn)就会消失,因此我必须撤消所做的任何更改。然后,我意识到用于文章图像的简单灯箱无法正常工作,而只是作为与图片的正常直接链接。
因此,我认为问题很可能出在我网站的Javascript中。我通常会按照教程和指南中的示例进行操作,因此我对如何实现多个脚本而又不会造成冲突一无所知。
一般而言,我对Java的了解并不多,所以我要提醒您我是菜鸟!
这是我当前使用Lightbox和EasySlider进行的设置。我敢肯定这可能是我犯了一些愚蠢的错误,但是任何帮助都会不胜感激!谢谢!
<!--Light Box Code Starts Bloggerplugins.ORG-->
<style>
#lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
#lightbox img{ width: auto; height: auto;}
#lightbox a img{ border: none; }
#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer{ padding: 10px; }
#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}
#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(http://lh5.ggpht.com/_u4gySN2ZgqE/SnWk89-4azI/AAAAAAAAAj8/hM0MqnVouCQ/prevlabel%5B3%5D.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(http://lh6.ggpht.com/_u4gySN2ZgqE/SnWk9-mNiQI/AAAAAAAAAkA/Zg1jXV9xnQM/nextlabel%5B6%5D.gif) right 15% no-repeat; }
#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; }
#imageData{ padding:0 10px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
#imageData #caption{ font-weight: bold; }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; outline: none;}
#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }
round-color: #000; }
lute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }
round-color: #000; }
</style>
<script src=\'http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js\' type=\'text/javascript\'/>
<script src=\'http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js\' type=\'text/javascript\'/>
<script src=\'http://blogergadgets.googlecode.com/files/lightbox.js\' type=\'text/javascript\'/>
<!--Light Box Code Ends Bloggerplugins.ORG-->
<script src=\'https://sites.google.com/site/shawnhasinger/home/files/jquery.js\' type=\'text/javascript\'/>
<script src=\'https://sites.google.com/site/shawnhasinger/home/files/easySlider1.7.js\' type=\'text/javascript\'/>
<script type=\'text/javascript\'>
$(document).ready(function(){
$("#slider").easySlider();
});
</script>
更新:我尝试了在此网站上详细介绍的修复程序,它修复了Lightbox,但它破坏了EasySlider。
没有找到相关结果
已邀请:
1 个回复
熊融炭臀陛