⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mqhx.html

📁 最全的JS大全,希望大家喜欢.收录于网络.收录于网络.最全的JS大全,希望大家喜欢.
💻 HTML
字号:
<html><head><title>  横向滚动</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><SCRIPT language=JavaScript><!--//	var x = 0;	var y = 0;	var limdex = 1500;	var dest = 0;	var distance = 0;	var step = 0;	var destination = 0;	var on = true;function scrollit(destination) {	step = 2;	dest = destination;	if (x<dest & x < limdex){		while (x<dest) {			step += (step / 7);			x += step;			parent.frames[0].scroll(x,0);		}                          // top.main.scroll(dest,0);		if(dest <=limdex) { parent.frames[0].scroll(dest,0); }		x = dest;	}	if (x > dest)  {		while (x>dest) {			step += (step / 7);			if(x >= (0+step)) { x -= step; parent.frames[0].scroll(x,0); }			else break;		}		if(dest >= 0) { parent.frames[0].scroll(dest,0); }		x = dest;	}	if (x<1) { parent.frames[0].scroll(1,0); x=1 }	if (x>limdex) { parent.frames[0].scroll(limdex,0); x=limdex }	x = dest;}function scrollnow() {                if (on){                if (x < limdex & x >= 0 ) {                                              parent.frames[0].scroll(x,0);                                                    x = x + 1;                                                setTimeout('scrollnow()', 8);                        }                else if (x < 0) {                                        x = limdex;                        scrollnow();                }            else {                                x=0;                scrollnow();                }                }}// *********************************// 去掉原来的stopscroll()function stopscroll() {        if (on){        on = false;        }        else {        on = true;        scrollnow();        }        }function startscroll() { on = true; scrollnow(); }function stop_start() { 	if (on){ on = false;}else { on = true;scrollnow();}}scrollnow();//***********************************//--></SCRIPT></head><body bgcolor="#FFFFFF" text="#000000"><table border="0" cellspacing="0" cellpadding="0" align="center">  <tr>    <td><a href="javascript:scrollit(x-150-20+-20y)"><img alt="<<" src="images/scroll_le.gif" width="39" height="20" border="0"></a></td>    <td><a href="javascript:stopscroll()"><img src="images/scroll_mi.gif" alt="stop or start" width="89" height="20" border="0"></a></td>    <td><a href="javascript:scrollit(x+150-20+-20y)"><img alt=">>" src="images/scroll_ri.gif" width="39" height="20" border="0"></a></td>  </tr></table></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -