在javascript中图片的轮番播放怎么做
答案:3 悬赏:70 手机版
解决时间 2021-07-31 21:05
- 提问者网友:缘字诀
- 2021-07-31 07:29
轮番播放我到时做得来,但是图片旁边有几个按钮,如果我点击其中的一个,就显示相应的图片,一秒后又继续播放
最佳答案
- 五星知识达人网友:想偏头吻你
- 2021-07-31 08:13
<script type="text/javascript">
var focus_width=302
var focus_height=413
var text_height=20
var swf_height = focus_height+text_height
var pics="images/image004_1.jpg|images/1259061062523.jpg|images/1_14.jpg"//(多张图片,文本,链接中间加|,,图片文本链接要相对应)
var links="info_show.asp?id=123| http://www.avon-beauty.com/retro/|info_show.asp?id=122"
var texts="教你做个无处不优雅的女人|雅芳新活再生霜|优雅外套办公室吹起淑女风"
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="inc/focus2.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('</object>');
</script>
全部回答
- 1楼网友:怀裏藏嬌
- 2021-07-31 10:03
<script type="text/javascript">
<!--
var focus_width=260 图片宽
var focus_height=182 图片高
var text_height=25 文字高()
var swf_height = focus_height+text_height
var curhref=document.location.href;
var pics='图片地址1|图片地址1|图片地址3|图片地址4|图片地址5'
var links='链接1|链接2|链接3|链接4|链接5'
var texts='文字1|文字2|文字3|文字4|文字5'
var FocusFlash = new sinaFlash(" http://image2.sina.com.cn/dy/deco/2006/0704/pixviewer1.1_009.swf", "focusflash", focus_width, swf_height, "7", "#DADADA", false, "High");
FocusFlash.addParam("allowScriptAccess", "sameDomain");
FocusFlash.addParam("menu", "false");
FocusFlash.addParam("wmode", "opaque");
FocusFlash.addVariable("pics", pics);
FocusFlash.addVariable("links", links);
FocusFlash.addVariable("texts", texts);
FocusFlash.addVariable("borderwidth", focus_width);
FocusFlash.addVariable("borderheight", focus_height);
FocusFlash.addVariable("textheight", text_height);
FocusFlash.addVariable("curhref", curhref);
FocusFlash.write("focusViwer");
//-->
</script>
注意图片只能用JPG格式,可以所文件代码中的 http://image2.sina.com.cn/dy/deco/2006/0704/pixviewer1.1_009.swf保存到你的空间上,写成相对地址或绝对地址都可以
- 2楼网友:神的生死簿
- 2021-07-31 08:49
<TABLE cellSpacing=0 cellPadding=0 width=962 align=center
background= http://img.soufun.com/zhuanti/2009_07/31/1249004220574.gif
border=0>
<TBODY>
<TR>
<TD vAlign=top align=left width=205 height=533>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD><IMG onmouseover=clearAuto(); style="CURSOR: pointer"
onclick=sub() onmouseout=setAuto() height=40
src=" http://img.soufun.com/zhuanti/2009_07/31/1249003563414.gif" width=205></TD></TR>
<TR>
<TD align=middle height=435>
<DIV id=simg>
<TABLE cellSpacing=0 cellPadding=0 width=184 border=0>
<TBODY>
<TR>
<TD align=middle height=109><IMG class=f1
onmouseover=clearAuto(); onclick=Mea(0); onmouseout=setAuto()
height=89 src=" http://img.soufun.com/zhuanti/2009_07/31/1249005839942.jpg"
width=168></TD>
</TR>
<TR>
<TD align=middle height=109><IMG src=" http://img.soufun.com/zhuanti/2009_07/31/1249005905870.jpg"
width=168
height=89 class=f2 onclick=Mea(1);
onmouseover=clearAuto(); onmouseout=setAuto()></TD>
</TR>
<TR>
<TD align=middle height=109><IMG class=f2
onmouseover=clearAuto(); onclick=Mea(2); onmouseout=setAuto()
height=89 src=" http://img.soufun.com/zhuanti/2009_07/31/1249005949125.jpg"
width=168></TD>
</TR>
<TR>
<TD align=middle height=109><IMG class=f2
onmouseover=clearAuto(); onclick=Mea(3); onmouseout=setAuto()
height=89 src=" http://img.soufun.com/zhuanti/2009_07/31/1249005984115.jpg"
width=168></TD>
</TR>
<TR></TR></TBODY></TABLE></DIV></TD></TR>
<TR>
<TD><IMG onmouseover=clearAuto(); style="CURSOR: pointer"
onclick=auto() onmouseout=setAuto() height=58
src=" http://img.soufun.com/zhuanti/2009_07/31/1249003648089.gif"
width=205></TD></TR></TBODY></TABLE></TD>
<TD style="BACKGROUND-POSITION: right top; BACKGROUND-REPEAT: no-repeat"
vAlign=top align=left width=757
background= http://img.soufun.com/zhuanti/2009_07/31/1249004368050.gif>
<DIV class=mvfc>
<DIV id=bimg>
<DIV class=dis><A
href=" http://newhouse.sy.soufun.com/house/1617092244.htm"
target=_blank><IMG height=510
src=" http://imgdn.soufun.com/2009/07/31/shengyang/gebz/c959c6f18b7c4d669bbe336da30a526f.jpg"
width=744 border=0></A></DIV>
<DIV class=undis><A
href=" http://newhouse.sy.soufun.com/house/1617092244.htm"
target=_blank><IMG height=510
src=" http://imgdn.soufun.com/2009/07/31/shengyang/gebz/7fa80ea4e04e4d95a137b1df6c3b529f.jpg"
width=744 border=0></A></DIV>
<DIV class=undis><A
href=" http://newhouse.sy.soufun.com/house/1617092244.htm"
target=_blank><IMG height=510
src=" http://imgdn.soufun.com/2009/07/31/shengyang/gebz/9032a543150643ddb0873fdf3d4ccde6.jpg"
width=744 border=0></A></DIV>
<DIV class=undis><A
href=" http://newhouse.sy.soufun.com/house/1617092244.htm"
target=_blank><IMG height=510
src=" http://imgdn.soufun.com/2009/07/31/shengyang/gebz/9a8a99cb670643d2aa51012365a76f99.jpg"
width=744 border=0></A></DIV></DIV>
<DIV class=mvfc1></DIV>
<DIV class=lkff id=con>
<DIV class=dis><A
href=""
target=_blank>鸟瞰图</A></DIV>
<DIV class=undis><A
href=""
target=_blank>私家</A></DIV>
<DIV class=undis><A
href=""
target=_blank>水景楼</A></DIV>
<DIV class=undis><A
href=""
target=_blank>细部水景</A></DIV></DIV></DIV></TD></TR></TBODY></TABLE>
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯