導航:首頁 > 萬維百科 > 網頁設計滑動停頓

網頁設計滑動停頓

發布時間:2021-01-26 17:58:59

1、滑鼠滾動滑輪網頁移動的很慢怎麼辦

控制面板里找到來"滑鼠",雙擊打開,;找到自"輪"選項卡,"一次滾動下列行數",一般是"3",你嫌慢的話可以調高一點,比如"5"
這樣不行的你可以換個滑鼠看看是不是你的滑鼠有問題
另外,你要是滾動的時候有停頓的現象,考慮一下更新顯卡啟動
控制面板里找到"滑鼠",雙擊打開,;找到"輪"選項卡,"一次滾動下列行數",一般是"3",你嫌慢的話可以調高一點,比如"5"
這樣不行的你可以換個滑鼠看看是不是你的滑鼠有問題
另外,你要是滾動的時候有停頓的現象,考慮一下更新顯卡啟動

2、網頁設計中 怎樣讓滾動的文字在滑鼠移到它時停下

<SCRIPT language=JavaScript>

var marqueewidth=160

var marqueeheight=120

var speed=1

var marqueecontents=

ef="<div class=bbb ><center>公 告</center> 公司網站正在更新之中,如果瀏覽出現問題,請與管理員聯系。謝謝!!"

if(document.all)

document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')

function regenerate(){window.location.reload()

}function regenerate2(){if(document.layers){setTimeout("window.onresize=regenerate",450)

intializemarquee()

}}function intializemarquee(){document.cmarquee01.document.cmarquee02.document.write(marqueecontents)

document.cmarquee01.document.cmarquee02.document.close()

thelength=document.cmarquee01.document.cmarquee02.document.height

scrollit()

}function scrollit(){if(document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){document.cmarquee01.document.cmarquee02.top-=speed

setTimeout("scrollit()",100)

}else{document.cmarquee01.document.cmarquee02.top=marqueeheight

scrollit()

}}window.onload=regenerate2

</SCRIPT>

3、html網頁設計中,如何設置無間斷循滾動環圖片

這是我曾經寫的一個簡易二次方緩動輪播器/**
* Player 輪播器
* @param object obj
* @author [email protected]
* obj{
* frame //內容框架,position:absolute;
* lists //輪播內容節點數組,注意這個父容器的lists復寫一次,如果是ul,則ul.innerHTML+=ul.innerHTML,呈現不間斷滾動
* time //跳幀時間3000ms
*
* }
*/
function Player(obj){
this.frame=obj.frame, //內容框架
this.lists=obj.lists, //移動節點
this.time=obj.time||3000, //幀翻滾間隔
this.index=0, //初始化第一幀位置
this.step=this.lists[0].offsetHeight||0 ; //翻滾步長
this.run();
}
Player.prototype={
//跳幀
skip:function(time){
this.skipInterval&&clearInterval(this.skipInterval);
var _this=this;
var des=this.lists[this.index].relatedPosition;
var t=0;
this.skipInterval=setInterval(function(){
t+=10;
_this.frame.style.top=_this.lists[_this.index-1].relatedPosition-Math.ceil(_this.step*Math.pow(t/time,2))+"px";
if(t==time){
clearInterval(_this.skipInterval);
}
},10);

},
//下一幀
next:function(){
this.index+=1;
if(this.index>this.lists.length/2) {
this.frame.style.top="0px";
this.index=1;
}
this.skip(300);
},
//開始跳幀
start:function(){
var _this=this;
this.interval=setInterval(function(){
_this.next();
},this.time);
},
//停止跳幀
stop:function(){
clearInterval(this.interval);
},
//初始化輪播器
run:function(){
this.start();
this.deal();
},
//幀處理
deal:function(){
var _this=this;
for(var i=0;i<this.lists.length;i++){
this.lists[i].relatedPosition=-this.lists[i].offsetTop;
this.lists[i].onmouseover=function(){
_this.stop();
}
this.lists[i].onmouseout=function(){
_this.start();
}
}
}
}

4、網頁代碼:求一個隔段時間可停頓的滾動字幕代碼

JS 滾動字幕文字新法
我想大家都看過各種各樣的滾動(最常用的就是用在新聞的更新上面),一般情況下只要不是圖片,都是用HTML本身就有提供一個很不錯的滾動標記——marquee來完成的(用JS也可以同樣實現這種效果);當然並不是說圖片就不能那樣做。
以下為marquee的一些基本的參數:

該標記語法格式如下:
<marquee
aligh=left|center|right|top|bottom
bgcolor=#n
direction=left|right|up|down
behavior=type
height=n
hspace=n
scrollamount=n
Scrolldelay=n
width=n
VSpace=n
loop=n>內容</marquee>

下面解釋一下各參數的含義:
align:是設定活動字幕的位置,除了居左、居中、居右三種位置外,又增加靠上(top)和靠下(bottom)兩種位置。
Bgcolor:用於設定活動字幕的背景顏色,可以使用英文的單詞也可以是十六進制數的。
Direction:用於設定活動字幕的滾動方向是向左(left)、向右(right)、向上(up)、向下(down)。
Behavior:用於設定滾動的方式,主要由三種方式:
behavior="scroll"表示由一端滾動到另一端;
behavior="slide":表示由一端快速滑動到另一端,且不再重復;
behavior="alternate"表示在兩端之間來回滾動。
Height:用於設定滾動字幕的高度。
Width:則設定滾動字幕的寬度。
Hspace和vspace:分別用於設定滾動字幕的左右邊框和上下邊框的寬度。
Scrollamount:用於設定活動字幕的滾動距離。數值越小,滾動的速度就越快。
scrolldelay:用於設定滾動兩次之間的延遲時間,數值越小,間隔就越小。
Loop:用於設定滾動的次數,當loop=-1表示一直滾動下去,直到頁面更新。其中默認情況是向左滾動無限次,字幕高度是文本高度;滾動范圍:水平滾動的寬度是當前位置的寬度;垂直滾動的高度是當前位置的高度。

現在要介紹的是一種新型的滾動,利用JS的方法來做字幕的滾動:向上,在中間停頓一到兩秒(就像經典的這種):
將以下代碼貼到您要顯示的位置就可以了。以上已經將網站的這種滾動的做法做了一個大概的介紹。

具體效果可以看:運行代碼框
<script>
var marqueeContent=new Array(); //定義一個數組,用來存放顯示內容
marqueeContent[0]='<A href="#" onclick="reinitMarquee()">刷新最新列表</FONT></A>';
marqueeContent[1]='<a href=http://www.blueidea.com/updatelist.asp target=_blank>站點最新更新六十條</a>';
marqueeContent[2]='<A href=http://www.blueidea.com/tech/graph/2003/875.asp target=_blank>羽毛效果製作教程</a>';
marqueeContent[3]='<A href=http://www.blueidea.com/tech/program/2003/831.asp target=_blank>MySQL&ASP</a>';
marqueeContent[4]='<A href=http://www.blueidea.com/tech/web/2003/874.asp target=_blank>初步了解CSS3</a>';
marqueeContent[5]='<A href=http://www.blueidea.com/tech/graph/2003/864.asp target=_blank>Fireworks MX 2004執行面版操作</a>';
marqueeContent[6]='<A href=http://www.blueidea.com/tech/graph/2003/872.asp target=_blank>Fireworks MX 2004等高漸變填充</a>';
marqueeContent[7]='<A href=http://www.blueidea.com/photo/gallery/2003/873.asp target=_blank>瓶子里的花</a>';
marqueeContent[8]='<A href=http://www.blueidea.com/tech/graph/2003/871.asp target=_blank>Fireworks MX 實現選項卡式效果</a>';
marqueeContent[9]='<A href=http://www.blueidea.com/photo/gallery/2003/870.asp target=_blank>情侶:黑白的愛情空氣</a>';
marqueeContent[10]='<A href=http://www.blueidea.com/tech/graph/2003/866.asp target=_blank>製作 MAC 風格的蘋果標志</a>';
marqueeContent[11]='<A href=http://www.blueidea.com/tech/graph/2003/868.asp target=_blank>蛋殼製作及破殼而出的人物合成</a>';

var marqueeInterval=new Array(); //定義一些常用而且要經常用到的變數
var marqueeId=0;
var marqueeDelay=4000;
var marqueeHeight=16;

//接下來的是定義一些要使用到的函數
Array.prototype.random=function() {
var a=this;
var l=a.length;
for(var i=0;i<l;i++) {
var r=Math.floor(Math.random()*(l-i));
a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);
}
return a;
}
function initMarquee() {
marqueeContent=marqueeContent.random();
var str='';
for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?' ':'')+marqueeContent[i];
document.write('<div id=marqueeBox style="overflow:hidden;height:'+marqueeHeight+'px" onmouseover="clearInterval(marqueeInterval[0])" onmouseout="marqueeInterval[0]=setInterval(\'startMarquee()\',marqueeDelay)"><div>'+str+'</div></div>');
marqueeId+=2;
if(marqueeContent.length>3)marqueeInterval[0]=setInterval("startMarquee()",marqueeDelay);
}
function reinitMarquee() {
js_scroll_content.src='scroll_content2.js';
marqueeContent=marqueeContent.random();
var str='';
for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?' ':'')+marqueeContent[i];
marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;
marqueeId=2;
}
function startMarquee() {
var str='';
for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {
str+=(i>0?' ':'')+marqueeContent[marqueeId+i];
}
marqueeId+=3;
if(marqueeId>marqueeContent.length)marqueeId=0;

if(marqueeBox.childNodes.length==1) {
var nextLine=document.createElement('DIV');
nextLine.innerHTML=str;
marqueeBox.appendChild(nextLine);
}
else {
marqueeBox.childNodes[0].innerHTML=str;
marqueeBox.appendChild(marqueeBox.childNodes[0]);
marqueeBox.scrollTop=0;
}
clearInterval(marqueeInterval[1]);
marqueeInterval[1]=setInterval("scrollMarquee()",20);
}
function scrollMarquee() {
marqueeBox.scrollTop++;
if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){
clearInterval(marqueeInterval[1]);
}
}
initMarquee();
</script>

5、網頁設計時 文本域里滾動條滾動時 頁面滾動條不滾動???求大神幫忙

頁面的肯定不會滾動啊~因為當你控制文本域的滾動條時焦點是在文本域,頁面的沒有獲得焦點,自然滾動條也就不會動了~

6、在swiper滾輪滾動時,如何讓他滾動完一次後停頓兩秒鍾,再執行下一次滾動

addEventListener('animationend', function () {}, false);

7、關於網頁設計中滾動欄的製作。。

看我這個,簡單的。

說明:1、你放的內容再多表面上會在Dreamweaver中撐破,但是在瀏覽器是正常
2、這個就是marquee的用法,height 、width定義了滾動的范圍,具體的你可以在百度查

<marquee direction=left height=100 scrollamount=1 scrolldelay=2 width=600>
這里放置要滾動的內容,表格、圖片、文字都可以
</marquee>

8、手機HTML5頁面、滑動出現停頓-底部圖片出現抖動

你給的測試頁面,拋異常了,這可能是導致問題的原因,你用PC瀏覽器打開控制台,就能看到了。錯誤代碼如下

9、滑鼠滾輪 網頁 停頓

用下面的方法試試!一般都管用!
很正常,有可能是網站的帶寬不夠內,跟不上
也有可能是自己容的網速不快
是XP的用戶且ADSL可以用
1、在開始菜單中找到「運行」單擊。
2、在「打開」處輸入「gpedit.msc」,點確定。
3、在打開的對話框中,點「計算機配置」旁的方塊,點「管理模板」底下的「網路」,再按下「QoS數據包調度程序」。在「限制保留帶寬」上連按兩下滑鼠左鍵。
4、將「帶寬限定」調整為「0」。按下「確定」,然後上網,打開瀏覽器看看,速度真的會快上很多!
··········································註:不要設定為「已禁用」哦!如此系統仍將會保留20%的帶寬,反而得不到解除限制的效果!

10、怎麼使滑鼠經過網頁中滑動文字上的時候,讓文字停止滑動!謝謝!

網頁文字的滑動效果是網頁設計者在當初設計網站的時候所編寫的腳本,要讓文字停止滑動,只有網站設計者才能辦到.

與網頁設計滑動停頓相關的知識