日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

變幻圖片的JS文件

 dlimit 2006-03-23

<style type="text/css">
/* 數(shù)字按鈕框樣式 */
#imgTitle {FILTER:ALPHA(opacity=70);position:relative;left:0px;text-align:left;overflow: hidden;}
#imgTitle_up {left:0px;text-align: left; height:1px; width:inherit; }
#imgTitle_down {left:0px;text-align: right; width:inherit; }
/* 圖片框樣式 */
.imgClass {border: 0px solid #000;}
/* 圖片文字框樣式 */
#txtFrom {text-align: center;vertical-align: middle;}
/* 數(shù)字按鈕樣式 */
.button {text-decoration: none;padding: 2px 7px;background: #7B7B63;margin: 0px;font: bold 9px sans-serif; border-left:#fff 1px solid;}
a.button, a.button:link, a.button:visited {font-family: sans-serif;text-decoration: none;color:#FFFFFF;background-color: #000000;}
a.button:hover {font-family: sans-serif;text-decoration: none;color:#fff;background:#fff; }
.buttonDiv {background: #000000;height: 1px;width: 21px;float: left;text-align: center; vertical-align: middle;}
/*漸變*/
.trans { width:90px; background-color:#000;filter : progid:DXImageTransform.Microsoft.Alpha(startX=0, startY=0, finishX=100, finishY=100,style=1,opacity=0,finishOpacity=40);}
</style>
<script language="javascript" type="text/javascript">
var imgWidth=240;              //圖片寬
var imgHeight=180;             //圖片高
var textFromHeight=0;         //焦點(diǎn)字框高度 (單位為px)
var textStyle="f12";           //焦點(diǎn)字class style (不是連接class)
var textLinkStyle="linkwhite"; //焦點(diǎn)字連接class style
var buttonLineOn="#f60";           //button下劃線on的顏色
var buttonLineOff="#000";          //button下劃線off的顏色
var TimeOut=5000;              //每張圖切換時(shí)間 (單位毫秒);
var imgUrl=new Array();
var imgLink=new Array();
var imgtext=new Array();
var imgAlt=new Array();
var adNum=0;
//焦點(diǎn)字框高度樣式表 開始
document.write(‘<style type="text/css">‘);
document.write(‘#focuseFrom{width:‘+(imgWidth+2)+‘;margin: 0px; padding:0px;height:‘+(imgHeight+textFromHeight)+‘px; overflow:hidden;}‘);
document.write(‘#txtFrom{height:‘+textFromHeight+‘px;line-height:‘+textFromHeight+‘px;width:‘+imgWidth+‘px;overflow:hidden;}‘);
document.write(‘#imgTitle{width:‘+imgWidth+‘;top:-‘+(textFromHeight+15)+‘px;height:18px}‘);
document.write(‘</style>‘);
document.write(‘<div id="focuseFrom">‘);
//焦點(diǎn)字框高度樣式表 結(jié)束


imgUrl[1]=‘http://www.pconline.com.cn/news/hy/images/picpath/060322-b-lenovo.jpg‘;
imgtext[1]=‘<A HREF="imgLink[1]=‘http://www.pconline.com.cn/news/hy/0603/771448.html‘;
imgAlt[1]=‘英特爾欲制衡聯(lián)想 全力扶持中國區(qū)域廠商‘;

 


imgUrl[2]=‘http://www.pconline.com.cn/news/gnyj/images/picpath/060322-b-bluray.jpg‘;
imgtext[2]=‘<A HREF="
imgLink[2]=‘http://www.pconline.com.cn/news/gnyj/0603/771432.html‘;
imgAlt[2]=‘藍(lán)光光驅(qū)突現(xiàn)峰回路轉(zhuǎn) 有望今年六月上市‘;

 


imgUrl[3]=‘http://www.pconline.com.cn/news/nw/images/picpath/060322-b-google2.jpg‘;
imgtext[3]=‘<A HREF="
imgLink[3]=‘http://www.pconline.com.cn/news/nw/0603/771569.html‘;
imgAlt[3]=‘Google百度再度較勁 分別推財(cái)經(jīng)和政府頻道‘;

 

imgUrl[4]=‘http://www.pconline.com.cn/news/others/images/picpath/yangshi_240x180_news.gif‘;
imgtext[4]=‘<A HREF="
imgLink[4]=‘http://adv.pconline.com.cn/adpuba/click?adid=19649&id=pc.kjdt.jdtt.&‘;
imgAlt[4]=‘陽獅‘;


function changeimg(n)
{
 adNum=n;
 window.clearInterval(theTimer);
 adNum=adNum-1;
 nextAd();
}
function goUrl(){
window.open(imgLink[adNum],‘_blank‘);
}
//NetScape開始
if (navigator.appName == "Netscape")
{
document.write(‘<style type="text/css">‘);
document.write(‘.buttonDiv{height:4px;width:21px;}‘);
document.write(‘</style>‘);
function nextAd(){
 if(adNum<(imgUrl.length-1))adNum++;
 else adNum=1;
 theTimer=setTimeout("nextAd()", TimeOut);
 document.images.imgInit.src=imgUrl[adNum];
 document.images.imgInit.alt=imgAlt[adNum]; 
    document.getElementById(‘focustext‘).innerHTML=imgtext[adNum];
 document.getElementById(‘link‘+adNum).style.background=buttonLineOn;
 document.getElementById(‘imgLink‘).href=imgLink[adNum];
 for (var i=1;i<=imgUrl.length;i++)
 {
    if (i!=adNum){document.getElementById(‘link‘+i).style.background=buttonLineOff;}
 } 
}
 document.write(‘<a id="imgLink" href="‘+imgLink[1]+‘" target=_blank class="linkwhite"><img src="‘+imgUrl[1]+‘" name="imgInit" width=‘+imgWidth+‘ height=‘+imgHeight+‘ border=1 alt="‘+imgAlt[1]+‘" class="imgClass"></a><div id="txtFrom"><span id="focustext" class="‘+textStyle+‘">‘+imgtext[1]+‘</span></div>‘)
 document.write(‘<div id="imgTitle">‘);
 document.write(‘<div id="imgTitle_down">‘);
//數(shù)字按鈕代碼開始
for(var i=1;i<imgUrl.length;i++){document.write(‘<a href="javascript:changeimg(‘+i+‘)" class="button" style="cursor:hand" title="‘+imgAlt[i]+‘">‘+i+‘</a>‘);}
//數(shù)字按鈕代碼結(jié)束
 document.write(‘</div>‘);
 document.write(‘</div>‘);
 document.write(‘</div>‘);
 nextAd();
}
//NetScape結(jié)束
//IE開始
else
{
var count=0;
for (i=1;i<imgUrl.length;i++) {
 if( (imgUrl[i]!="") && (imgLink[i]!="")&&(imgtext[i]!="")&&(imgAlt[i]!="") ) {
  count++;
 } else {
  break;
 }
}
function playTran(){
 if (document.all)
  imgInit.filters.revealTrans.play();  
}
var key=0;
function nextAd(){
 if(adNum<count)adNum++ ;
 else adNum=1;
 
 if( key==0 ){
  key=1;
 } else if (document.all){
  imgInit.filters.revealTrans.Transition=6;
  imgInit.filters.revealTrans.apply();
                   playTran();
    }
 document.images.imgInit.src=imgUrl[adNum];
 document.images.imgInit.alt=imgAlt[adNum]; 
 document.getElementById(‘link‘+adNum).style.background=buttonLineOn;
 for (var i=1;i<=count;i++)
 {
    if (i!=adNum){document.getElementById(‘link‘+i).style.background=buttonLineOff;}
 } 
    focustext.innerHTML=imgtext[adNum];
 theTimer=setTimeout("nextAd()", TimeOut);
}
document.write(‘<a target=_self href="javascript:goUrl()"><img style="FILTER: revealTrans(duration=1,transition=5);" src="javascript:nextAd()" width=‘+imgWidth+‘ height=‘+imgHeight+‘ border=0 vspace="0" name=imgInit class="imgClass"></a>‘);
document.write(‘<div id="txtFrom"><span id="focustext" class="‘+textStyle+‘"></span></div>‘);
document.write(‘<div id="imgTitle">‘);
document.write(‘ <div id="imgTitle_down"> <a class="trans"></a>‘);
//數(shù)字按鈕代碼開始
for(var i=1;i<imgUrl.length;i++){document.write(‘<a id="link‘+i+‘"  href="javascript:changeimg(‘+i+‘)" class="button" style="cursor:hand" title="‘+imgAlt[i]+‘" onFocus="this.blur()">‘+i+‘</a>‘);}
//數(shù)字按鈕代碼結(jié)束
document.write(‘</div>‘);
document.write(‘</div>‘);
document.write(‘</div>‘);
}
//IE結(jié)束
</script>

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約