Scroll picture! Not marquee Effect

Source: Internet
Author: User

<HTML> <Meta content = "text/html; charset = gb2312" http-equiv = Content-Type> <Link
Href = "scrollimg/site.css" rel = stylesheet type = text/CSS>
<Script language = JavaScript>
<! --

Function mm_gotourl () {// V3.0
VaR I, argS = mm_gotourl.arguments; document. mm_returnvalue = false;
For (I = 0; I <(ARGs. length-1); I + = 2) eval (ARGs [I] + ". location = '"+ ARGs [I + 1] + "'");
}
Function jm_cc (OB ){
VaR OBJ = mm_findobj (OB); If (OBJ ){
Obj.select({%js%obj.createtextrange(%%%js.exe ccommand ("copy ");}
}

Function mm_findobj (n, d) {// v4.0
VaR P, I, X; If (! D) d = document; if (P = n. indexof ("? ")> 0 & parent. frames. Length ){
D=parent.frames[n.substring(p%1%].doc ument; n = n. substring (0, P );}
If (! (X = d [N]) & D. All) x = D. All [N]; for (I = 0 ;! X & I <D. Forms. length; I ++) x = D. Forms [I] [N];
For (I = 0 ;! X & D. Layers & I <D. layers. length; I ++) xw.mm_findobj(n,d.layers+ I }.doc ument );
If (! X & document. getelementbyid) x = Document. getelementbyid (n); Return X;
}
// -->
</SCRIPT>

<Meta content = "mshtml 5.00.2920.0" name = generator> <Body bgcolor = # ffffff id = All leftmargin = 0 topmargin = 0>
<Table align = center border = 0 cellpadding = 0 cellspacing = 0 width = 600>
<Tbody>
<Tr bgcolor = # 7285cf>
<TD Height = 18 width = 10> & nbsp; </TD>
<TD bgcolor = # 7285cf class = white Height = 18 width = 590> Scrolling Image </TD> </tr>
<Tr bgcolor = # e7e7e7>
<TD width = 10> & nbsp; </TD>
<TD bgcolor = # e7e7e7 Height = 20
Width = 590> You can make consistent scrolling information without flash, which looks smooth. This is what it looks like. </TD> </tr>
<Tr bgcolor = # f2f2f2>
<TD bgcolor = # f2f2f2 width = 10> & nbsp; </TD>
<TD align = middle bgcolor = # f2f2f2 width = 590> <IFRAME frameborder = No
Height = 100 marginheight = 0 marginwidth = 0 name = MQ scrolling = No
Src = "mq.htm" width = "100%"> </iframe>
<IFRAME frameborder = No
Height = 0 marginheight = 0 marginwidth = 0 name = MQ scrolling = No
Src = "mqhx.htm" width = 0> </iframe> </TD> </tr> </tbody> </table> </body>

Mq.htm:
<Table border = 0 cellpadding = 0 cellspacing = 0 align = "center">
<Tbody>
<Tr>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll ();
Src = "jx.gif" width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll (); src = "jx.gif"
Width = 150> </TD>
<TD width = 150> Onmouseout = javascript: parent. Frames [1]. startscroll ();
Onmouseover = javascript: parent. Frames [1]. stopscroll ();
Src = "jx.gif" width = 150> </TD> </tr> </tbody> </table>

Mqhx.htm:
<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 scrolation (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 ('rollnow () ', 8 );

}
Else if (x <0 ){

X = limdex;
Scrollnow ();
}
Else {

X = 0;
Scrollnow ();
}
}
}
//*********************************
// Remove the original 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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.