Javascript 高速滑动控制按钮
我想向Highslide Gallery寻求帮助。起初我对控制栏有问题,但我完成了它,现在我只剩下最后一个问题了。在我的控制栏中,当你在“暂停”上移动鼠标时,它处于非活动状态,并作为“下一步”工作,从它开始,每个按钮就像“下一步”作为“移动”工作,换句话说,它就像超链接向左移动了一个位置。 如果每个以“下一步”开头的按钮向右移动30像素,它就会工作,但不管我怎么做,它都不工作Javascript 高速滑动控制按钮,javascript,css,Javascript,Css,我想向Highslide Gallery寻求帮助。起初我对控制栏有问题,但我完成了它,现在我只剩下最后一个问题了。在我的控制栏中,当你在“暂停”上移动鼠标时,它处于非活动状态,并作为“下一步”工作,从它开始,每个按钮就像“下一步”作为“移动”工作,换句话说,它就像超链接向左移动了一个位置。 如果每个以“下一步”开头的按钮向右移动30像素,它就会工作,但不管我怎么做,它都不工作 /* Ajax */ .highslide-container div { font-family: V
/* Ajax */
.highslide-container div {
font-family: Verdana, Helvetica;
font-size: 10pt;
top:85%;
}
.highslide {
outline: none;
text-decoration: none;
}
.highslide img {
border: 2px solid silver;
}
.highslide:hover img {
border-color: gray;
}
.highslide-active-anchor img, .highslide-active-anchor:hover img {
border-color: black;
}
.highslide-image {
border-width: 2px;
border-style: solid;
border-color: white;
background: gray;
}
.highslide-wrapper, .rounded-white {
background: white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border-top: none;
font-size: 1em;
padding: 5px;
background: white;
}
.highslide-heading {
display: none;
font-weight: bold;
margin-bottom: 0.4em;
}
.highslide-dimming {
position: absolute;
background: black;
}
.highslide-loading {
display: block;
color: black;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border: 1px solid white;
background-color: white;
padding-left: 22px;
background-image: url(../javascript/images/loader.white.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
/*background: url(javascript/images/controlbar-white.gif)*/
/* Controls. See http://www.google.com/search?q=css+sprites */
.highslide-controls {
border-radius: 5px;
width: 210px;
height: 36px;
background: url(javascript/images/controlbar-white.gif) 0px -90px no-repeat;
margin: 0px 0px 0px 0px;
}
.highslide-controls ul {
border-radius: 5px;
width: 210px;
position: relative;
left: 0px;
height: 30px;
list-style: none;
margin: 0;
padding: 0;
background: url(javascript/images/controlbar-white.gif) 0px -30px no-repeat;
}
.highslide-controls li {
height: 30px;
width: 30px;
float: left;
padding: 0px 0;
margin:0;
list-style: none;
}
.highslide-controls a {
background-image: url(javascript/images/controlbar-white.gif) 0px -90px no-repeat;
display: block;
float: left;
outline: none;
}
.highslide-controls a.disabled {
cursor: default;
}
.highslide-controls a.disabled span {
cursor: default;
}
.highslide-controls a span {
/* hide the text for these graphic buttons */
display: none;
cursor: pointer;
}
/* The CSS sprites for the controlbar */
.highslide-controls .highslide-previous a {
background-position: 0 0;
}
.highslide-controls .highslide-previous a:hover {
background-position: 0px -30px;
}
.highslide-controls .highslide-previous a.disabled {
background-position: 0 -60px !important;
}
.highslide-controls .highslide-play a {
background-position: -30px 0;
}
.highslide-controls .highslide-play a:hover {
background-position: -30px -30px;
}
.highslide-controls .highslide-play a.disabled {
background-position: -30px -60px !important;
}
.highslide-controls .highslide-pause a {
background-position: -60px 0;
}
.highslide-controls .highslide-pause a:hover {
background-position: -60px -30px;
}
.highslide-controls .highslide-pause a.disabled{
background-position: -60px -60px !important;
}
.highslide-controls .highslide-next a {
background-position: -90px 0;
}
.highslide-controls .highslide-next a:hover {
background-position: -90px -30px;
}
.highslide-controls .highslide-next a.disabled {
background-position: -90px -60px !important;
}
.highslide-controls .highslide-move a {
background-position: -120px 0;
}
.highslide-controls .highslide-move a:hover {
background-position: -120px -30px;
}
.highslide-controls .highslide-full-expand a {
background-position: -150px 0;
}
.highslide-controls .highslide-full-expand a:hover {
background-position: -150px -30px;
}
.highslide-controls .highslide-full-expand a.disabled {
background-position: -150px -30px !important;
}
.highslide-controls .highslide-close a {
background-position: -180px 0;
}
.highslide-controls .highslide-close a:hover {
background-position: -180px -30px;
}
我没有改变Java脚本文件中的任何内容,只处理了CSS文件的这一部分。
Firefox用于带有“暂停”按钮的线路:
它开始像应该的那样显示“暂停”,但只在第一张打开的照片上显示:/
在java脚本中将所有“none”更改为“Pause”后,它就可以工作了
<li style="display: none;" class="highslide-pause"><a href="#" title="Zatrzymaj slajd (spacja)"><span>Zatrzymaj</span></a></li>
<li class="highslide-next"><a href="#" title="Następne"><span>Następne</span></a></li>
this.btn.pause.style.display = 'none';