Two flash picture switching effect

Source: Internet
Author: User
Tags eval

Provide a flash picture switching effect Oh, if you are looking for a picture switch effect to come in and see OH.

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>


<title> two flash picture switch effect </title>


<style type= "Text/css Tutorial" >


* {margin:0; padding:0;}


Body {


margin:0;


Color: #88c; Background: #333;


}


img {margin:0; padding:0; border:0;}


#js_f {


position:relative;


top:10px; left:10px;


Overflow:hidden;


width:395px; height:185px;


Background: #33c;


}


. div_img {


Position:absolute; top:0;


width:295px; height:185px;


Cursor:pointer;


}


#div_img_0 {z-index:5; left:0;}


#div_img_1 {z-index:4; left:25px;}


#div_img_2 {z-index:3; left:50px;}


#div_img_3 {z-index:2; left:75px;}


#div_img_4 {z-index:1; left:100px;}


</style>


</head>


<body>


<div id= "Js_f" >


<div id= "Div_img_0" class= "div_img" ><a href= "#" ><img src= "/imglist/01.jpg"/></a><img src = "/i/bg_showimg.gif" Onmouseo tutorial ver= "jsf_mmove (0)"/></div>


<div id= "div_img_1" class= "div_img" ><a href= "#" ><img src= "/imglist/02.jpg"/></a><img src = "/i/bg_showimg.gif" onmouseover= "Jsf_mmove (1)"/></div>


<div id= "div_img_2" class= "div_img" ><a href= "#" ><img src= "/imglist/03.jpg"/></a><img src = "/i/bg_showimg.gif" onmouseover= "Jsf_mmove (2)"/></div>


<div id= "Div_img_3" class= "div_img" ><a href= "#" ><img src= "/imglist/04.jpg"/></a><img src = "/i/bg_showimg.gif" onmouseover= "Jsf_mmove (3)"/></div>


<div id= "Div_img_4" class= "div_img" ><a href= "#" ><img src= "/imglist/05.jpg"/></a><img src = "/i/bg_showimg.gif" onmouseover= "Jsf_mmove (4)"/></div>


</div>


<script type= "text/web Effects" >


<!--///*--><! [cdata[/*><!--* *


var Div_imgs = document.getElementById ("Js_f"). getElementsByTagName ("div");


var imgleft = [0, 25, 50, 75, 100]; Initial left value for 5 pictures


var imgwidth = 270; The width of the picture


var ATF = [True, True, True, true, true]; 5 Picture Position: True to right, false to left


var speed1 = ten, Speed2 = n, MO = 15; Speed


var sto;


function Jsf_move (n) {


Cleartimeout (STO);


var Thisl; Picture Left value


if (Atf[n]) {//Picture to move on right


The picture you want to move (including all the pictures to the left of the picture) moves to the left.


for (var i=0 i<=n; i++) {//Current value-(Picture width-(current value-initial value))/speed


THISL = parseint (GetStyle (Div_imgs[i], "left"));


Div_imgs[i].style.left = Thisl-math.ceil ((imgwidth-(IMGLEFT[I]-THISL))/mo) + "px";


if (i<n) atf[i] = false; Change the position status of a picture


}


else {//Picture to move on the left


The picture you want to move, including all the pictures to the right of the picture, moves to the right.


for (var i=4; i>=n; i--) {//Current value + (current value-initial value)/speed


THISL = parseint (GetStyle (Div_imgs[i], "left"));


Div_imgs[i].style.left = Thisl + Math.ceil (Math.Abs (thisl-imgleft[i))/mo) + "px";


if (i>n) atf[i] = true; Change the position status of a picture


}


}


THISL = parseint (GetStyle (Div_imgs[n], "left"));


if ((Atf[n] && thisl> (imgleft[n]-imgwidth)) | | (!atf[n] && thisl<imgleft[n]) {


The current picture is not finished moving, continue to move the current picture


STO = settimeout (function (), speed1);


} else {


The current picture moves over, ready to move the next picture


if (n>=3 && atf[n]) {


Atf[n] = false;


STO = settimeout (function (), SPEED2);


else if (n==0 &&!atf[n]) {


Atf[n] = true;


STO = settimeout (function (), SPEED2);


else if (Atf[n]) {


Atf[n] = false;


STO = settimeout (function (), SPEED2);


} else {


STO = settimeout (function (), SPEED2);


}


}


}


Determine the position of a picture


function Jsf_mmove (n) {


Cleartimeout (STO);


Switch (n) {


Case 0:


Atf[0] = false;


Jsf_move (0);


Break


Case 1:


Case 2:


Case 3:


if (Atf[n-1]) {


STO = settimeout (function (), speed1);


else if (Atf[n]) {


Atf[n-1] = true;


STO = settimeout (function (), speed1);


} else {


STO = settimeout (function (), speed1);


}


Break


Case 4:


ATF = [False, False, False, true, true];


Jsf_move (3);


Break


}


}


Window.onload = function () {


STO = settimeout ("jsf_move (0)", speed2);


}


function GetStyle (elem, name) {


if (Elem.style[name]) {return elem.style[name];}


else if (Elem.currentstyle) {return elem.currentstyle[name];}


else if (Document.defaultview && document.defaultview.getcomputedstyle) {


name = Name.replace ([[A-z])/g, "-");


Name = Name.tolowercase ();


var s = document.defaultview.getcomputedstyle (Elem, "");


return s && s.getpropertyvalue (name);


}


else {return null;}


}


/*]]>*///-->


</script>

Soso Toggle Picture

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >


<html><head>


<meta Http-equiv=content-type content=text/html;charset=utf-8>


<script Language=javascript type=text/javascript>


function Settab (/*string*/name,/*int*/itemcnt,/*int*/CurItem,/**/classhide,/**/classshow)


{


for (i=1;i<=itemcnt;i++)


{


Eval ("document.getElementById" ("tab_" + name + "_" + i + ""). Classname= ' + classhide + ' ");


}


Eval ("document.getElementById" ("tab_" + name + "_" + CurItem + ""). Classname= ' "+ Classshow +" ");





for (i=1;i<=itemcnt;i++)


{


Eval ("Ele_hide = document.getElementById (' con_" + name + "_" + i + "')");


if (ele_hide) Ele_hide.style.display = "None";


}


Eval ("Ele_play = document.getElementById (' con_" + name + "_" + CurItem + "')");


if (ele_play) Ele_play.style.display = "block";


}


</script>


</head>


<body link= #004bca >


<style type= "Text/css" >


Body {


font-size:12px; Background: #fff; margin:0px; Color: #666666; Font-family:arial,verdana; Text-align:left


}


TD {


font-size:12px


}


p {


font-size:12px


}


div {


font-size:12px


}


IMG {


border-right:0px; border-top:0px; border-left:0px; border-bottom:0px


}


. lin1 {


Border-right: #b5cfe8 1px solid; Border-top: #b5cfe8 1px solid; Background: #e7f5ff; Border-left: #b5cfe8 1px solid; border-bottom:0px


}


. lin2 {


Border-right: #f7cf9e 1px solid; Border-top: #f7cf9e 1px solid; Background: #fcf0da; Border-left: #f7cf9e 1px solid; border-bottom:0px


}


. lin3 {


Border-right: #f7cf9e 1px solid; border-top:0px; Border-left: #f7cf9e 1px solid; Border-bottom: #f7cf9e 1px solid


}


. lin4 {


Border-right: #b5cfe8 1px solid; Border-top: #b5cfe8 1px solid; Border-left: #b5cfe8 1px solid; Border-bottom: #b5cfe8 1px solid


}


. lin5 {


Border-right: #b5cfe8 1px solid; padding-right:8px; Border-top: #b5cfe8 1px solid; padding-left:8px; padding-bottom:4px; Border-left: #b5cfe8 1px solid; width:486px; padding-top:3px; Border-bottom: #b5cfe8 1px solid


}


a.tex3 {


Color: #e37d00


}


a.tex4 {


Color: #666666


}


. py {


margin:0px 5px 0px 1px; Color: #e57b01


}


. x {


line-height:50%


}


. x2 {


line-height:70%


}


. ctl {


Table-layout:fixed


}


. CTL TD {


Overflow:hidden; White-space:nowrap; Text-overflow:ellips Tutorial is


}


. JT {


Font-weight:bold; Color: #ff6600; Font-family:verdana


}


. ZT UL {


padding-right:0px; padding-left:0px; padding-bottom:0px; margin:0px; width:148px; padding-top:0px


}


. zt Li {


width:148px; List-style-type:none; Height:27px


}


. zt. A1 a {


padding-right:2px; margin-top:3px; Display:block; padding-left:11px; padding-bottom:2px; width:148px; Cursor:pointer; Color: #666666; padding-top:3px; height:27px; Text-decoration:none


}


. zt. A1 A:hover {


Background:url (Yun_qi_img/n-tbg1.gif)


}


. zt. A2 a {


padding-right:2px; margin-top:3px; Display:block; padding-left:11px; Background:url (yun_qi_img/n-tbg2.gif); padding-bottom:2px; width:148px; Cursor:pointer; Color: #666666; padding-top:3px; height:27px; Text-decoration:none


}


</style>


<div style= "Border-right: #b5cfe8 1px solid; padding-right:3px; Border-top: #b5cfe8 1px solid; padding-left:3px; Background: #e7f5ff; Float:left; padding-bottom:3px; Border-left: #b5cfe8 1px solid; width:698px; padding-top:3px; Border-bottom: #b5cfe8 1px solid ">


<div Id=con_show


Style= "PADDING-RIGHT:9PX; padding-left:9px; Background: #ffffff; padding-bottom:4px; width:690px; Padding-top:9px ">


<span ch= "K4" >


<div id=con_tophome_1 style= "Display:block" >


<table style= "Float:left; width:76%; margin-right:10px "cellspacing=0


Cellpadding=0>


<tbody>


<tr>


<TD Valign=top Width=200><a


href= "Http://wenwen.soso.com/z/searchpending.e?sp=s%e5%bf%83%e7%90%86&sp=0"


Target=_blank><img Class=lin4


Src= "Yun_qi_img/20071115094514-575688421.jpg" ></a></td>


<TD valign=top><a class=t style= "Font-weight:bold"


href= "Http://wenwen.soso.com/z/topquestionknowledge.htm"


Target=_blank> Wonderful questions </a> <br><br><a class=t


Style= "Font-weight:bold; Color: #e57b01 "


href= "Http://wenwen.soso.com/z/searchpending.e?sp=s%e5%bf%83%e7%90%86&sp=0"


Target=_blank> Open your mind to your peeping </a><br><br class=x><span class=py>& #8226;</span>< A


href= "http://wenwen.soso.com/z/showquestion.e?sp=16961106"


target=_blank>17.8-Year-old students are curious about sex, this phenomenon is ... </a><br><br class=x><span


class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=16966014"


Target=_blank> new love in the heart can never replace the original? </A><BR><BR Class=x><span


class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=16957421"


Target=_blank> Why do women rely more on their psychology than men? </A><BR><BR Class=x><span


class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=16958595"


Target=_blank> life without a sense of direction how to do ah? </a> </td></tr></tbody></table></div>


<div id=con_tophome_2 style= "Display:none" >


<table style= "Float:left; width:76%; margin-right:10px "cellspacing=0


Cellpadding=0>


<tbody>


<tr>


<TD Valign=top Width=200><a


href= "Http://wenwen.soso.com/z/searchpending.e?sp=s%e9%9d%b4%e5%ad%90&sp=0"


Target=_blank><img Class=lin4


Src= "Yun_qi_img/20071115100855-452766762.jpg" ></a></td>


<TD valign=top><a class=t style= "Font-weight:bold"


href= "Http://wenwen.soso.com/z/topquestionknowledge.htm"


Target=_blank> Wonderful questions </a> <br><br><a class=t


Style= "Font-weight:bold; Color: #e57b01 "


href= "Http://wenwen.soso.com/z/searchpending.e?sp=s%e9%9d%b4%e5%ad%90&sp=0"


Target=_blank> autumn and winter hot boots skillfully ride </a><br><br class=x><span class=py>& #8226;</span>< A


href= "Http://wenwen.soso.com/z/q17008042.htm"


target=_blank> what style and color boots do you wear for the present season? </A><BR><BR Class=x><span


class=py>& #8226; </span><a href= "http://wenwen.soso.com/z/q16134134.htm"


Target=_blank> I also like boots but dare not wear, how to do? </A><BR><BR Class=x><span


class=py>& #8226; </span><a href= "http://wenwen.soso.com/z/q15106477.htm"


Target=_blank> excuse me, what colour boots are the brown long coats? </A><BR><BR Class=x><span


class=py>& #8226; </span><a href= "http://wenwen.soso.com/z/q17002953.htm"


What kind of clothes should target=_blank> men's boots match? </a> </td></tr></tbody></table></div>


<div id=con_tophome_3 style= "Display:none" >


<table style= "Float:left; width:76%; margin-right:10px "cellspacing=0


Cellpadding=0>


<tbody>


<tr>


<TD Valign=top Width=200><a


href= "Http://wenwen.soso.com/z/searchsolved.e?sp=s%e5%81%a5%e8%ba%ab&ch=k2"


Target=_blank><img Class=lin4


Src= "Yun_qi_img/20071114102807-155136482.jpg" ></a></td>


<TD valign=top><a class=t style= "Font-weight:bold"


href= "Http://wenwen.soso.com/z/topquestionknowledge.htm"


Target=_blank> Wonderful questions </a> <br><br><a class=t


Style= "Font-weight:bold; Color: #e57b01 "


href= "Http://wenwen.soso.com/z/searchsolved.e?sp=s%e5%81%a5%e8%ba%ab&ch=k2"


target=_blank> Schwarzenegger wait for me </a><br><br class=x><span class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=14677092"


How does target=_blank> fit into the size of the Big Brother in WWE? </A><BR><BR Class=x><span


class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=16665427"


Target=_blank> buy a treadmill, or do a gym card? </A><BR><BR Class=x><span class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=13516248"


Does the body have a muscular contour when target=_blank> a fitness device? </A><BR><BR Class=x><span


class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=15426043"


Target=_blank> steel Pipe Show in the end is not a fitness campaign? </a> </td></tr></tbody></table></div>


<div id=con_tophome_4 style= "Display:none" >


<table style= "Float:left; width:76%; margin-right:10px "cellspacing=0


Cellpadding=0>


<tbody>


<tr>


<TD Valign=top Width=200><a


href= "Http://cache.soso.com/wenwen/classic1/classic_shengdan.htm"


Target=_blank><img Class=lin4


Src= "Yun_qi_img/20071112132535-1097111654.jpg" ></a></td>


<TD valign=top><a class=t style= "Font-weight:bold"


href= "Http://cache.soso.com/wenwen/classic1/classic1.htm"


target=_blank> Wonderful knowledge </a> <br><br><a class=t


Style= "Font-weight:bold; Color: #e57b01 "


href= "Http://cache.soso.com/wenwen/classic1/classic_shengdan.htm"


Target=_blank> this Christmas to Europe </a><br><br Class=x><span class=py>& #8226;</span>< A


href= "http://wenwen.soso.com/z/showquestion.e?sp=15081345"


Target=_blank> is the price of a Christmas trip to Europe expensive? </A><BR><BR Class=x><span class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=15081693"


Target=_blank> go to Europe to buy things, generally have what discount? </A><BR><BR Class=x><span


class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=15359432"


Do you have any bicycles in target=_blank> Europe? </A><BR><BR Class=x><span class=py>& #8226; </span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=15360012"


Target=_blank> can I take a train from France to England during Christmas? </a> </td></tr></tbody></table></div>


<div id=con_tophome_5 style= "Display:none" >


<table style= "Float:left; width:76%; margin-right:10px "cellspacing=0


Cellpadding=0>


<tbody>


<tr>


<TD Valign=top Width=200><a


href= "Http://cache.soso.com/wenwen/askstar_n/askstar25.htm"


Target=_blank><img Class=lin4


Src= "Yun_qi_img/20071112105344-2010456491.jpg" ></a></td>


<TD valign=top><a class=t style= "Font-weight:bold"


href= "Http://cache.soso.com/wenwen/classic1/people1.htm"


Target=_blank> Celebrities Ask </a><br class=x><br><a class=t


Style= "Font-weight:bold; Color: #e57b01 "


href= "Http://cache.soso.com/wenwen/askstar_n/askstar25.htm"


Target=_blank> stock experts appear resolving </a><br><br Class=x><span


Style= "Color:rgb (51,51,51); line-height:150% "> Don't say you don't fry, don't say you don't want to make money!" Not to mention you do not know the market, a stock, qdii ... About the turbulent market, about the fiery stocks and the mysterious foreign investment, ask the special stock experts, let you play ... [<a


Style= "Text-decoration:underline"


href= "Http://cache.soso.com/wenwen/askstar_n/askstar25.htm"


Target=_blank> detailed </a>]</span><br><br class=x2><span class=py>& #8226; </ Span><a


href= "http://wenwen.soso.com/z/showquestion.e?sp=15338035"


target=_blank> What do you most want to ask the experts about H-shares and overseas investment issues? </a> </td></tr></tbody></table></div>


<script type=text/javascript>


var pause = false;


var con_num = 5;


var startindex = 1;


function Setloop () {


try{


var oscroll = document.getElementById (' con_show ');


Oscroll.nowrap = true;


Oscroll.onmouseover = function (e) {pause = true;};


Oscroll.onmouseout = function (e) {pause = false;};


SetInterval (' Scrolltophome () ', 5000);


}catch (e) {alert (e.tostring ());}


}


function Scrolltophome () {


if (pause) return;


startindex + 1;


if (startindex > Con_num) {startindex = 1;}


Settab (' Tophome ', 5,startindex, ' A1 ', ' A2 ');


}


Setloop ();


</script>


<table style= "Float:left" cellspacing=0 cellpadding=0>


<tbody>


<tr>


<TD class=zt>


<ul>


<li CLASS=A2 Id=tab_tophome_1


onclick= "Startindex=1;settab (' Tophome ', 5,1, ' A1 ', ' A2 ');" ><a


Onclick= "return false;" href= "http://wenwen.soso.com/z/" ><img


Style= "margin-right:5px"


Src= "Yun_qi_img/pre-20071115094514-575688421.jpg"


Align=absmiddle> Open your mind to peep </a> </li>


<li CLASS=A1 id=tab_tophome_2


onclick= "Startindex=2;settab (' Tophome ', 5,2, ' A1 ', ' A2 ');" ><a


Onclick= "return false;" href= "http://wenwen.soso.com/z/" ><img


Style= "margin-right:5px"


Src= "Yun_qi_img/pre-20071115100855-452766762.jpg"


Align=absmiddle> </a> </li> of hot long boots in autumn and winter


<li CLASS=A1 Id=tab_tophome_3


onclick= "Startindex=3;settab (' Tophome ', 5,3, ' A1 ', ' A2 ');" ><a


Onclick= "return false;" href= "http://wenwen.soso.com/z/" ><img


Style= "margin-right:5px"


Src= "Yun_qi_img/pre-20071114102807-155136482.jpg"


align=absmiddle> Schwarzenegger wait for me </a> </li>


<li CLASS=A1 Id=tab_tophome_4


onclick= "Startindex=4;settab (' Tophome ', 5,4, ' A1 ', ' A2 ');" ><a


Onclick= "return false;" href= "http://wenwen.soso.com/z/" ><img


Style= "margin-right:5px"


Src= "Yun_qi_img/pre-20071112132535-1097111654.jpg"


Align=absmiddle> this Christmas to Europe </a> </li>


<li CLASS=A1 id=tab_tophome_5


onclick= "Startindex=5;settab (' Tophome ', 5,5, ' A1 ', ' A2 ');" ><a


Onclick= "return false;" href= "http://wenwen.soso.com/z/" ><img


Style= "margin-right:5px"


Src= "Yun_qi_img/pre-20071112105344-2010456491.jpg"


Align=absmiddle> stock Expert resolving </a> </li></ul></td></tr></tbody></table> </span></div>


</div>


<!--hitcount:114286-->


</div>


</div>


</body></html>

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.