综合各种效果的图片轮显
<
SCRIPT language
=
“
VBScript
“
>
=
“
http://et.21cn.com/portray/images/if/01.jpg,http://et.21cn.com/portray/images/if/02.jpg,http://et.21cn.com/portray/images/if/03.jpg
“
=
“
<a href=http://www.licns.com/ target=_blank>在这里加入你的连接1</a>,<a href=http://www.licns.com/ target=_blank>在这里加入你的连接2</a>,<a href=http://www.licns.com/ target=_blank>在这里加入你的连接3</a>
“
=
Split(FileList,
“
,
“
)
=
Split(TxtList,
“
,
“
)
=
CInt(Split(Split(navigator.appVersion,
“
;
“
)(
1
),
“
“
)(
2
))
>
5
=
“
RevealTrans(duration=2,transition=23)
“
=
FilterStr
+
“
;BlendTrans(duration=2)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.Pixelate(,enabled=false,duration=2,maxSquare=25)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.Fade(duration=2,overlap=0)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.Stretch(duration=2,stretchStyle=PUSH)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.Wheel(duration=2,spokes=16)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.RandomDissolve(duration=2)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.Spiral(duration=2,gridSizeX=50,gridSizeY=50)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.Slide(duration=2,bands=1,slideStyle=SWAP)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)
“
=
FilterStr
+
“
;progid:DXImageTransform.Microsoft.Wipe(duration=3,gradientsize=0.25,motion=reverse)
“
“
幻灯片播放具有多种动态图片切换效果,但此功能须要您的浏览器为IE5.5或以上版本号,否则您将仅仅能看到部分的切换效果。
“
,
64
=
Split(FilterStr,
“
;
“
)
=
5
*
1000
‘
切换时间(毫秒)
腾讯的用Flash调用图片轮显
<
script type
=
“
text/javascript
“
>
<!–
var
focus_width
=
255
var
focus_height
=
200
var
text_height
=
18
var
swf_height
=
focus_height
+
text_height
var
pics
=
‘
http://img1.qq.com/sports/20060102/2958063.jpg|http://img1.qq.com/sports/20060101/2955633.jpg|http://img1.qq.com/sports/20051229/2936827.jpg|http://img1.qq.com/sports/20051227/2920636.jpg
‘
var
links
=
‘
http://sports.qq.com/a/20060101/000514.htm|http://sports.qq.com/a/20060101/000053.htm|http://sports.qq.com/a/20051229/000159.htm|http://sports.qq.com/a/20051227/000023.htm
‘
var
texts
=
‘
曲圣卿打进一球两次助攻 阿德莱德大胜|曼城客场被逼平 继海首发多次制造杀机|继海打满全场表现尚可 曼城不敌切尔西|曼城落败 孙继海险助攻
‘
‘
<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
+
‘
“>
‘
);
‘
<param name=”allowScriptAccess” value=”sameDomain”><param name=”movie” value=”http://sports.qq.com/flash/playswf.swf”><param name=wmode value=transparent><param name=”quality” value=”high”>
‘
);
‘
<param name=”menu” value=”false”><param name=wmode value=”opaque”>
‘
);
‘
<param name=”FlashVars” value=”pics=
‘
+
pics
+
‘
&links=
‘
+
links
+
‘
&texts=
‘
+
texts
+
‘
&borderwidth=
‘
+
focus_width
+
‘
&borderheight=
‘
+
focus_height
+
‘
&textheight=
‘
+
text_height
+
‘
“>
‘
);
‘
<embed src=”http://sports.qq.com/flash/playswf.swf” wmode=”opaque” FlashVars=”pics=
‘
+
pics
+
‘
&links=
‘
+
links
+
‘
&texts=
‘
+
texts
+
‘
&borderwidth=
‘
+
focus_width
+
‘
&borderheight=
‘
+
focus_height
+
‘
&textheight=
‘
+
text_height
+
‘
” menu=”false” bgcolor=”#DADADA” quality=”high” width=”
‘
+
focus_width
+
‘
” height=”
‘
+
swf_height
+
‘
” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />
‘
); document.write(
‘
</object>
‘
);
//
–>
</
script
>
最主要的图片轮显
<
script language
=
JavaScript
>
var
imgUrl
=
new
Array();
var
imgLink
=
new
Array();
var
adNum
=
0
;
1
]
=
“
http://image2.sina.com.cn/lx/nx/2006/0207/U1275P8T1D227041F918DT20060220173712.jpg
“
;
1
]
=
“
http://eladies.sina.com.cn/bbs/p/2006/0220/17268791.html
“
;
2
]
=
“
http://image2.sina.com.cn/lx/nx/2006/0128/U1275P8T1D226214F918DT20060128200332.jpg
“
;
2
]
=
“
http://eladies.sina.com.cn/pic/special/198/554.html
“
;
3
]
=
“
http://image2.sina.com.cn/lx/beauty1/2006/0218/U1275P8T1D229151F916DT20060220180508.jpg
“
;
3
]
=
“
http://blog.sina.com.cn/u/45f2dd64010001yg
“
;
4
]
=
“
http://image2.sina.com.cn/lx/nx/2006/0210/U1275P8T1D227877F1086DT20060213161341.jpg
“
;
4
]
=
“
http://eladies.sina.com.cn/bbs/2006/0213/16048576.html
“
;
var
imgPre
=
new
Array();
for
(i
=
1
;i
<
4
;i
++
)
…
{
function
setTransition()
…
{
function
playTransition()
…
{
function
nextAd()
…
{
function
jump2url()
…
{
function
displayStatusMsg()
…
{
</
script
>
<
a onMouseOver
=
“
displayStatusMsg();return document.returnValue
“
=
“
javascript:jump2url()
“
><
img
=
“
FILTER: revealTrans(duration=2,transition=20);border:1 solid gray;
“
height
=
242
=
“
javascript:nextAd()
“
width
=
191
=
imgUrlrotator
></
a
>
21cn写真频道图片切换代码
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″>
<title>无标题文档</title>
<META http-equiv=Content-Type content=”text/html; charset=gb2312″>
<META content=”MSHTML 6.00.2800.1476″ name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0 marginheight=”0″ marginwidth=”0″>
<TABLE width=330 height=”250″ border=0 cellPadding=0 cellSpacing=0 bgcolor=”434343″>
<TBODY>
<TR>
<DIV id
=oTransContainer
=”FILTER: progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,
a
=330
=oDIV1
a
=330
=oDIV2
a
=330
=oDIV3
a
=330
=oDIV4
</CENTER>
<SCRIPT>…
</SCRIPT>
</TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
加上了鼠标的特效的
var elady_step=3; //1:small, 3:middle, 5:big
var elady_speed=50; //20:fast, 50:middle, 80:slow
var e_tp=new
Array();
Array();
;
;
;
{
0]=“http://www.licns.com“
;
;
;
;
;
;
;
;
Array();
{currentimage[i]=new Image();
function elady1_set()…
{ if (document.all)
function
elady1_playCo()
{ if (document.all) e_tprotator.filters.revealTrans.play()
function elady1_nextAd()…
{ if(adNum_elady1<e_tp.length–1)adNum_elady1++ ;
function elady1_linkurl()…
{ jumpUrl=e_tplink[adNum_elady1];
function
elady1_listMsg()
{ status=e_tplink[adNum_elady1];
“<div id=’elady1_divimg’ style=’position:relative’>“
);
);
);
);
图片和文字一起显示的
<
SCRIPT LANGUAGE
=
JavaScript
>
var
imgUrl
=
new
Array();
var
imgLink
=
new
Array();
var
imgtext
=
new
Array();
var
imgsumm
=
new
Array();
var
adNum
=
0
;
1
]
=
“
http://et.21cn.com/portray/images/if/01.jpg
“
;
1
]
=
“
[组图]第16期 我型我塑
“
1
]
=
“
http://www.licns.com/
“
;
1
]
=
“
摩羯座的猫猫是个安静的女孩,面对镜头总是略带羞涩。
“
;
2
]
=
“
http://et.21cn.com/portray/images/if/02.jpg
“
;
2
]
=
“
实录:从“三陪女”到“二奶”
“
2
]
=
“
http://www.licns.com
“
;
2
]
=
“
“二奶”的日子是快乐的,但后遗症却是最深的痛……
“
;
3
]
=
“
http://et.21cn.com/portray/images/if/03.jpg
“
;
3
]
=
“
家饰:[组图]我爱抱心肝宝贝
“
3
]
=
“
http://www.licns.com/
“
;
3
]
=
“
我们已经不再满足于中规中矩,四角形模样的抱枕…
“
;
var
imgPre
=
new
Array();
var
count
=
0
;
for
(i
=
1
;i
<=
3
;i
++
)
…
{
function
playTran()
…
{
var
key
=
0
;
function
nextAd()
…
{
function
goUrl()
…
{
</
SCRIPT
>
<
A TARGET
=
_self HREF
=
“
javascript:goUrl()
“
><
IMG STYLE
=
“
FILTER: revealTrans(duration=1,transition=5);border-color:black;color:#000000
“
SRC
=
“
javascript:nextAd()
“
WIDTH
=
300
HEIGHT
=
250
BORDER
=
0
CLASS
=
img01 NAME
=
imgInit
></
A
>
<
A TARGET
=
_self HREF
=
“
javascript:goUrl()
“
><
FONT COLOR
=
#B41A7A CLASS
=
sfont
><
SPAN ID
=
focustext
></
SPAN
></
FONT
></
A
><
A TARGET
=
_self HREF
=
“
javascript:goUrl()
“
><
FONT COLOR
=
#
777777
CLASS
=
sfont
><
SPAN ID
=
focussumm
></
SPAN
></
FONT
></
A
>
相似于Flash制作的一个图片展示效果
<
html
>
<
head
>
<
title
>
相似于Flash制作的一个图片展示效果
</
title
>
<
meta
name
=”Author”
content
=”http://www.webjx.com”
>
<
meta
http-equiv
=”imagetoolbar”
content
=”no”
>
<
style
type
=”text/css”
>
…
cursor:crosshair;margin:0; padding:0; position:absolute; overflow:hidden; background:#222; left:0; top:0; width:100%; height:100%;zIndex:-2;}
</
style
>
<
script
type
=”text/javascript”
>
…
</
script
>
</
head
>
<
body
>
<
div
style
=”position:absolute;left:50%;top:50%;”
><
div
id
=”center”
style
=”position:absolute;”
>
<
div
id
=”imgbox”
style
=”position:absolute;left:0;top:0;overflow:hidden;”
></
div
>
<
div
id
=”txtbox”
style
=”position:absolute;visibility:hidden;overflow:hidden;background:#333;color:#FFF;font-family:verdana;font-size:0.8em;”
>
<
div
style
=”margin:2%”
>
<
h2
>
IMGBOX
</
h2
>
Click the thumbnails on the left for a larger image. The description connected to the clicked image is displayed here.
<
br
>
<
br
>
Note: for performance reasons, images are not resized and must be all of the same size.
</
div
>
</
div
>
</
div
></
div
>
<
div
id
=”imgsrc”
style
=”visibility:hidden”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9097.jpg”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9092.jpg”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9084.jpg”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9064.jpg”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9050.jpg”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9070.jpg”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9079.jpg”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9068.jpg”
>
<
img
src
=”http://www.webjx.com/upfiles/20050411/BS9039.jpg”
>
</
div
>
<
div
id
=”txtsrc”
style
=”visibility:hidden”
>
<
div
>
<
h2
>
the river
</
h2
><
br
>
Awaken from my nap by the river
</
div
>
<
div
>
<
h2
>
transparency
</
h2
><
br
>
Its transparency was hypnotizing.
</
div
>
<
div
>
<
h2
>
cold
</
h2
><
br
>
Currents of cold water played with light.
</
div
>
<
div
>
<
h2
>
sank in
</
h2
><
br
>
I threw a few nuts into the river. They floated for a while, then sank in.
</
div
>
<
div
>
<
h2
>
masked
</
h2
><
br
>
A wide stepping stone masked the water’s depth.
</
div
>
<
div
>
<
h2
>
a glimpse
</
h2
><
br
>
Later on, I had a glimpse of the river’s bed.
</
div
>
<
div
>
<
h2
>
forgotten
</
h2
><
br
>
The wheelchair made a noise. Again, I had forgotten about my legs.
</
div
>
<
div
>
<
h2
>
floated
</
h2
><
br
>
Still, I floated in oblivion of things too real.
</
div
>
<
div
>
<
h2
>
for me
</
h2
><
br
>
I stared fixedly at the water’s open arms. The stream was singing for me.
</
div
>
</
div
>
<!–
crossbrowser images_loading_bar – Gerard Ferrandez – www.dhteumeuleu.com – Feb 2005
–>
<
span
id
=LB0
style
=”position:absolute;left:50%;top:50%;”
><
span
style
=”position:absolute;font-family:arial;font-size:10px;color:#FFFFFF;left:-50;top:-18″
>
Loading…
</
span
>
<
span
style
=”position:absolute;left:-50;top:-5;font-size:1px;width:100;height:10px;background:#333″
><
span
id
=LB1
style
=”position:absolute;left:0;top:0;font-size:1px;width:0;height:10px;background:#FFFFFF”
></
span
></
span
></
span
>
<
script
>
…
m00=document.getElementById(“imgsrc“).getElementsByTagName(“img“);m01=m00.length;function images_loading_bar()…{m02=0;for(i=0;i<m01;i++)m02+=(m00[i].complete)?1:0;document.getElementById(“LB1“).style.width=Math.round(m02/m01*100);if(m02==m01)setTimeout(“document.getElementById(‘LB0′).style.display=’none’“,128); else setTimeout(“images_loading_bar()“, 64);};images_loading_bar();
</
script
>
<!–
end of images_loading_bar code
–>
</
body
>
</
html
>
转载于:https://www.cnblogs.com/zfyouxi/p/3877507.html
今天的文章图片轮显效果大全分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/23890.html