<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2313" />
<title>www.qpsh.com</title>
<style type="text/css">
/* <![CDATA[ */
div{margin:1px; vertical-align:middle;}
.FadeId18Class
{
color:white;
}
.FadeId18OverClass
{
color:#D369A4;
}
/* ]]> */
</style>
</head>
<body>
<table border="0" align="center" cellpadding="4" cellspacing="4" id="Container">
<tr align="center" valign="middle">
<td valign="middle">
<div id="FadeId1" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId2" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId3" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId4" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId5" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
</tr>
<tr align="center" valign="middle">
<td>
<div id="FadeId6" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId7" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId8" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId9" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId10" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
</tr>
<tr align="center" valign="middle">
<td>
<div id="FadeId11" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId12" style="width:100px; height:100px;">
<a target="_blank" href="http://www.qpsh.com/bbs">www.qpsh.com</a>
</div>
</td>
<td>
<div id="FadeId13" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId14" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
<td>
<div id="FadeId15" style="width:100px; height:100px;">www.qpsh.com
</div>
</td>
</tr>
</table>
<script type="text/javascript">
function Faded()
{
var Au = {};
var This = this;
var Param = {};
var PVar = {};
this.Get = {};
this.Get.Au = fGetAu;
this.Set = {};
this.Debug = false;
this.TagSpliter = "->";
this.Element = {};
this.Element.Set = [];
this.Element.Add =
function(sId, sOriginColor, sOverColor, sOutColor, iTime, iIntervalMs, bCompColor, sClassName, sOverClassName)
{
__Faded_AddElement
(sId, sOriginColor, sOverColor, sOutColor, iTime, iIntervalMs, bCompColor, sClassName, sOverClassName, This)
};
this.Element.BatchAdd =
function(Main, sChildTag, ArOriColor, ArOverColor, ArOutColor, iTime, iIntervalMs, bCompColor, sClassName, sOverClassName)
{
Main = fSetObject(Main, "Faded Batch Main is null!");
sChildTag = sChildTag.toUpperCase();
var EleAr = [];
var TagAr = sChildTag.split(This.TagSpliter);
EleAr = fGetDeepTag(Main, TagAr);
if(ArOriColor.length===1)
{
ArOriColor.push(ArOriColor[0]);
}
if(ArOverColor.length===1)
{
ArOverColor.push(ArOverColor[0]);
}
if(typeof(ArOutColor)=="boolean"||ArOutColor.constructor==Boolean)
{
ArOutColor = [ArOutColor];
}
if(ArOutColor.length===1)
{
ArOutColor.push(ArOutColor[0]);
}
for(var i=0, j=EleAr.length; i<j; i++)
{
if(i%2===0)
{
Fade.Element.Add
(
EleAr[i]
, ArOriColor[0]
, ArOverColor[0]
, ArOutColor[0]
,iTime
, iIntervalMs
, bCompColor
, sClassName
, sOverClassName
);
}
else
{
Fade.Element.Add
(
EleAr[i]
, ArOriColor[1]
, ArOverColor[1]
, ArOutColor[1]
,iTime
, iIntervalMs
, bCompColor
, sClassName
, sOverClassName
);
}
}
}
this.Go = fGo;
function fGo(fIniter)
{
if(fIsFunc(fIniter)) fIniter(Param);
for(var i = 0, j=This.Element.Set.length; i<j; i++)
{
var TempObj = This.Element.Set[i];
TempObj.style.backgroundColor = TempObj["Extend"]["OriginalColor"];
TempObj["Interval"] = {};
if(TempObj["Extend"]["CompColor"])
{
TempObj.style.color = fGetCompColor(TempObj["Extend"]["OriginalColor"]);
}
if(TempObj["Extend"]["ClassName"]!="")
{
TempObj.className = TempObj["Extend"]["ClassName"];
}
TempObj.onmouseover = fOnMouseOver;
TempObj.onmouseout = fOnMouseOut;
}
}
function fOnMouseOut()
{
try
{
clearInterval(this["Interval"]["Over"]["Go"]);
}
catch(e)
{
}
this["Interval"]["Out"] ={}
this["Interval"]["Out"]["Count"] = 0;
if(this["Extend"]["ClassName"]!="")
{
this.className = this["Extend"]["ClassName"];
}
var BgColor = this.style.backgroundColor==""?"#ffffff":this.style.backgroundColor;
if(/rgb\(/i.test(BgColor))
{
BgColor = fRgbToHex(BgColor);
}
this["Interval"]["Out"]["FadeArray"] =
__Faded_Fade
(
BgColor,
this["Extend"]["OutColor"],
this["Extend"]["Time"],
false,
true
);
var me = this;
this["Interval"]["Out"]["Go"] =
setInterval
(
function()
{
if(me["Interval"]["Out"]["Count"]>=me["Interval"]["Out"]["FadeArray"].length)
{
clearInterval(me["Interval"]["Out"]["Go"]);
me["Interval"]["Out"]["Count"] = null;
return;
}
var sBgColor = me["Interval"]["Out"]["FadeArray"][me["Interval"]["Out"]["Count"]];
me.style.backgroundColor = sBgColor;
if(me["Extend"]["CompColor"])
{
me.style.color = fGetCompColor(sBgColor);
}
if(This.Debug)
defaultStatus = me["Interval"]["Out"]["Count"];
me["Interval"]["Out"]["Count"]++;
}
,
me["Extend"]["IntervalMs"]
) // www.qpsh.com
}
function fOnMouseOver()
{
try
{
clearInterval(this["Interval"]["Out"]["Go"]);
}
catch(e)
{
}
this["Interval"]["Over"] ={}
this["Interval"]["Over"]["Count"] = 0;
if(this["Extend"]["OverClassName"]!="")
{
this.className = this["Extend"]["OverClassName"];
}
var BgColor = this.style.backgroundColor==""?"#ffffff":this.style.backgroundColor;
if(/rgb\(/i.test(BgColor))
{
BgColor = fRgbToHex(BgColor);
}
this["Interval"]["Over"]["FadeArray"] =
__Faded_Fade
(
BgColor,
this["Extend"]["MoveColor"],
this["Extend"]["Time"],
false,
true
);
var me = this;
this["Interval"]["Over"]["Go"] =
setInterval
(
function()
{
if(me["Interval"]["Over"]["Count"]>=me["Interval"]["Over"]["FadeArray"].length)
{
clearInterval(me["Interval"]["Over"]["Go"]);
me["Interval"]["Over"]["Count"] = null;
return;
}
var sBgColor = me["Interval"]["Over"]["FadeArray"][me["Interval"]["Over"]["Count"]];
me.style.backgroundColor = sBgColor;
if(me["Extend"]["CompColor"])
{
me.style.color = fGetCompColor(sBgColor);
}
if(This.Debug)
defaultStatus = me["Interval"]["Over"]["Count"];
me["Interval"]["Over"]["Count"]++;
}
,
me["Extend"]["IntervalMs"]
)
}
function fGetAu(){ return Au; }
}
function __Faded_AddElement
(sId, sOriginColor, sOverColor, sOutColor, iTime, iIntervalMs, bCompColor, sClassName, sOverClassName, oFaded)
{
var Obj = fSetObject(sId);
if(!bCompColor) bCompColor = false;
else bCompColor = true;
if(!sClassName) sClassNam
评论0