论坛: 网站建设 标题: 有谁知道这两个网页中图片走动的特效代码?? 复制本贴地址    
作者: qfwuying [qfwuying]       登录
有谁知道这两个网页中图片走动的特效代码??
  http://model.avl.com.cn/index.php  

  http://www.wyjinye.com/  
知道的请告诉我。谢谢!!!!



[此贴被 清风婺影(qfwuying) 在 11月05日12时00分 编辑过]

地主 发表时间: 11/05 12:16

回复: qfwuying [qfwuying]      登录
怎么全是看贴不回贴的主~~~~~~!!!
帮帮忙~~

B1层 发表时间: 11/05 22:17

回复: justin [justin]      登录
第二个用 FLASH 也能做出来吧~
不一定要用代码。

B2层 发表时间: 11/07 12:06

回复: qd_xway [qd_xway]   论坛用户   登录
1。将下面的插入针代码复制到<body>~</body>里
<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>
2 将mq.htm 文件放在同级目录下,文件内容如下
<TABLE border=0 cellPadding=0 cellSpacing=0 align="center">
  <TBODY>
  <TR>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="1.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="2.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="3.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="4.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="5.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="6.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="7.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="8.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="9.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll();
      src="10.jpg" width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="1.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="2.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="3.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="4.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="5.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="6.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="7.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="8.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll(); src="9.jpg"
      width=150></TD>
    <TD width=150><IMG height=100
      onmouseout=javascript:parent.frames[1].startscroll();
      onmouseover=javascript:parent.frames[1].stopscroll();
      src="10.jpg" width=150></TD></TR></TBODY></TABLE>
3。 将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 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>

B3层 发表时间: 11/07 15:51

回复: jxfwzx [jxfwzx]   论坛用户   登录
要用.asp编辑

B4层 发表时间: 11/16 07:24

论坛: 网站建设

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号