分享
 
 
 

图片带声音的淡入淡出效果

王朝other·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>

<!-- http://www.webjx.com/ -->

<!-- bbs http://www.webjx.com/bbs-->

<!-- 把下列代码加到<body>区域内 -->

<table width=360 height=160 cellpadding=0 cellspacing=0 border=0><tr><td>

<SCRIPT>

// more javascript from http://www.webjx.com

////////////////////////////////////////////////////////

// Set the values of you slideshow below this line

var slideurl=new Array()

// URLs of your slides (pictures). Add as many as you like

slideurl[0]="/img/200406301.jpg"

slideurl[1]="/img/200406302.jpg"

slideurl[2]="/img/200406303.jpg"

var slidecomment=new Array()

// Comment for each picture

slidecomment[0]="图片说明一"

slidecomment[1]="图片说明二"

slidecomment[2]="图片说明三"

var slidelink=new Array()

// Link for your slides

slidelink[0]="http://www.webjx.com"

slidelink[1]="http://www.webjx.com"

slidelink[2]="http://www.webjx.com"

// Target for each slide-link

var slidetarget=new Array()

slidetarget[0]="_blank"

slidetarget[1]="_top"

slidetarget[2]=""

// URL of the sound-file

var slidesound="http://www.webjx.com/upfiles/20050402/20050402011004_sound_swish.wav"

// Font

var slidefont="Arial"

// Font-color

var slidefontcolor="blue"

// Font-size (acceptable values form 1 to 6)

var slidefontsize=2

// Width slideshow (pixels)

var slidewidth=360

// Height slideshow (pixels)

var slideheight=160

//Pause between each slide (seconds)

var pauseslide=3

// Do not edit the code below this line //

/////////////////////////////////////////

var textposition="right_auto"

var slidecontent

var max_space=19

var space=" "

var i_substring=0

var i_space=max_space

var all_space=" "

var content=""

var pausefade=20

var i_slide=0

var i_filter=-1

var nextorprevious=1

var transparency=0

var transparencystep=5

var isloaded=false

var started=false

var stopshow=false

var newpause=pauseslide

var checkpause=200

var neximage=""

var howmanycomplete=0

var preload_slides=-1

var pauseslide=pauseslide*1000

var browserinfos=navigator.userAgent

var ie=document.all&&!browserinfos.match(/Opera/)?1:0

var ns6=document.getElementById&&!document.all?1:0

var ns4=document.layers?1:0

var op=browserinfos.match(/Opera/)

var preloadedimages=new Array()

for (i=0;i<slideurl.length;i++){

preloadedimages[i]=new Image()

preloadedimages[i].src=slideurl[i]

}

function initslideshow4() {

setimagetocache()

getcontent()

if (ie) {

slidecontainer.innerHTML=slidecontent

}

if (ns6 || op) {

transparency=100

document.getElementById('slidecontainer').innerHTML=slidecontent

}

var inittimer=setTimeout("checkifcached()",100)

}

function setimagetocache() {

preload_slides++

if (preload_slides<=slideurl.length) {

nextimage=new Image();

nextimage.src=slideurl[preload_slides];

checkautocached()

}

}

function checkautocached() {

if (nextimage.complete) {

howmanycomplete++

setimagetocache()

}

else {

var timer2=setTimeout("checkautocached()",checkpause);

}

}

function stopslideshow() {

stopshow=true

}

function playslideshow() {

stopshow=false

}

function checkifcached() {

if (i_slide<=howmanycomplete) {

if (ie) {

if (textposition=="top_auto" || textposition=="bottom_auto" || textposition=="left_auto" || textposition=="right_auto" || textposition=="top_auto_nocontrols" || textposition=="bottom_auto_nocontrols") {

var nextimer=setTimeout("autoslide()",newpause)

}

if (textposition=="top_hand" || textposition=="bottom_hand" || textposition=="left_hand" || textposition=="right_hand") {

if (started) {

handslide()

}

started=true

}

}

if (ns6 || op) {

if (textposition=="top_auto" || textposition=="bottom_auto" || textposition=="left_auto" || textposition=="right_auto" || textposition=="top_auto_nocontrols" || textposition=="bottom_auto_nocontrols") {

unfadeslide()

}

if (textposition=="top_hand" || textposition=="bottom_hand" || textposition=="left_hand" || textposition=="right_hand") {

if (started) {

fadeslidehand()

}

started=true

}

}

}

else {

newpause=newpause-checkpause

if (newpause<1200) {newpause=1200}

var timer2=setTimeout("checkifcached()",checkpause);

}

}

function getcontent() {

if (textposition=="top_auto") {

slidecontent="<font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font><br><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></a><br><a href='javascript:stopslideshow()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>stop</font></a> <a href='javascript:playslideshow()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>play</font></a>"

}

else if (textposition=="bottom_auto") {

slidecontent="<a href='javascript:stopslideshow()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>stop</font></a> <a href='javascript:playslideshow()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>play</font></a><br><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></a><br><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font>"

}

else if (textposition=="left_auto") {

slidecontent="<table cellpadding=3 cellspacing=0 border=0><tr valign=top><td align=right><a href='javascript:stopslideshow()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>stop</font></a> <a href='javascript:playslideshow()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>play</font></a><br><br><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font></td><td><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></a></td></tr></table>"

}

else if (textposition=="right_auto") {

slidecontent="<table cellpadding=3 cellspacing=0 border=0><tr valign=top><td><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></a></td><td><a href='javascript:stopslideshow()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>stop</font></a> <a href='javascript:playslideshow()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>play</font></a><br><br><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font></td></tr></table>"

}

else if (textposition=="top_auto_nocontrols") {

slidecontent="<font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font><br><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></a>"

}

else if (textposition=="bottom_auto_nocontrols") {

slidecontent="<a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></a><br><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font>"

}

else if (textposition=="top_hand") {

slidecontent="<font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font><br><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></a><br><a href='javascript:checkifcached()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>next</font></a>"

}

else if (textposition=="bottom_hand") {

slidecontent="<a href='javascript:checkifcached()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>next</font></a><br><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></a><br><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font>"

}

else if (textposition=="left_hand") {

slidecontent="<table cellpadding=3 cellspacing=0 border=0><tr valign=top><td align=right><a href='javascript:checkifcached()'><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>next</font></a><br><br><font face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font><

[1] [2] 下一页

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有