我的網站形式從右側滑動,當你點擊一個藍色按鈕:我無法擺脫這種滾動條
正如你可能看到,水平滾動條,遊客可以看到滑模它變得活躍之前和之後。 這就是問題所在,我希望有人能幫我解決它。
這是jQuery代碼我使用:
<script type="text/javascript">
$(document).ready(function()
{
function positioningForm()
{
$('#insider').css({"right": "-535px"}).show();
}
function slideFromRight()
{
$('#insider').animate(
{right: "0px"},
{duration: 'slow',easing: 'easeOutElastic'});
}
function slideToBeginning() {
$('#insider').animate(
{right: "-535px"},
{duration: 'slow',easing: 'easeOutElastic'});
}
// Positioning the insider at the time of page loading
positioningForm();
var state = 0;
$('.right_btn').click(function() {
if(state == 0) {
//do the magic :)
slideFromRight();
state = 1;
} else if(state == 1) {
//unroll the magic :)
slideToBeginning();
state=0;
}
});
});
</script>
謝謝,我會檢查出來,並標記它綠色,如果它幫助我:) – 2011-06-08 08:43:53