<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script language="javascript" type="text/javascript">     
<!--     
function p$(string){     
    document.write(string);     
}     
function $(id){     
    return document.getElementById(id);     
}     
function change_menu(id,content_id,num,total_ztc_menu,menu_on,menu_off){     
    for (var i=1;i<=total_ztc_menu;i++){     
        $(id+i).className=menu_off;         
        $(content_id+i).style.display='none';                     
    }     
    $(id+num).className=menu_on;     
    $(content_id+num).style.display='block';                                                                 

-->
</script>

</head>
<body>
<div id="flashMan">
    <!--======================================================================================广告开始===-->
    <div class="content">
        <div id="t_l">
            <div id="ad_pic">
                <div id="f_div">
                    <!--图片区域-->
                    <div id="f_imgDiv"><a id="f_imgLink"></a></div>
                    <div id="f_infoDiv">
                        <!--数字按钮区域-->
                        <div id="f_buttonDiv">
                            <div id="div_bg3" class="bg"><a id="b3" href="javascript:b_change(3)">4</a></div>
                            <div/>
                            <div id="div_bg2" class="bg"><a id="b2" title="东海屠" href="javascript:b_change(2)">3</a></div>
                            <div/>
                            <div id="div_bg1" class="bg"><a id="b1" href="javascript:b_change(1)">2</a></div>
                            <div/>
                            <div id="div_bg0" class="bg"><a id="b0" href="javascript:b_change(0)">1</a></div>
                            <div/>
                        </div>
                    </div>
                </div>
                <div id="f_text" class="f12b"><a target="_blank" href="http://changxiao.17k.com/topic/1/index.shtml">东方朔</a></div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
<script type="text/javascript">
<!--   
//可修改区域     
var imgWidth=290;     
var imgHeight=250;     
var _timeOut_=5000;     
var show_text = true; //是否显示焦点文字     
var timeOut=_timeOut_;     
var timeOut2=_timeOut_/2;//onmouseout img后需要切换的时间     
var nowpic=0;              //第一张图     
var target="_blank";   //打开方式     
var button_on ='on'; //当前焦点对应按钮的样式名     
var button_off ='';//非当前焦点对应按钮的样式名     

//不可修改区域     
var imgUrl = new Array();     
var imgText = new Array();     
var imgLink = new Array();     
var imgAlt= new Array();     
var menuList = new Array();//菜单menu     
var ver=2; //兼容浏览器版本 默认2 为非ie     
var firstTime=true;     
var n =-1;             

//菜单menu      
menuList[++n]='XX';       
imgUrl[n]='http://img.17k.com/channel/changxiao/dongfang290X250.gif';       
imgText[n]='<a href=http://changxiao.17k.com/topic/1/index.shtml target=_blank>东方朔</a>';       
imgLink[n]='http://changxiao.17k.com/topic/1/index.shtml';       
imgAlt[n]='东方朔';      

//菜单menu     
menuList[++n]='XX';      
imgUrl[n]='http://img.17k.com/channel/ebook/3170601.jpg';      
imgText[n]='<a href=/main/readbook.do?method=showCatalogue&bid=31706 target=_blank>重生了吴应雄</a>';      
imgLink[n]='/main/readbook.do?method=showCatalogue&bid=31706';      
imgAlt[n]='重生了吴应雄';      

//菜单menu     
menuList[++n]='XX';     
imgUrl[n]='http://img.17k.com/channel/ebook/3172702.jpg';     
imgText[n]='<a href=/main/readbook.do?method=showCatalogue&bid=31727target=_blank>东海屠</a>';     
imgLink[n]='/main/readbook.do?method=showCatalogue&bid=31727';     
imgAlt[n]='东海屠';     

//菜单menu     
menuList[++n]='XX';      
imgUrl[n]='http://img.17k.com/channel/shouye/20080314/2654203.jpg';      
imgText[n]='<a href=/main/readbook.do?method=showCatalogue&bid=26542 target=_blank>《碧空》</a>';      
imgLink[n]='/main/readbook.do?method=showCatalogue&bid=26542';      
imgAlt[n]='千龙首发';     

var count=0;     
for (var i=0;i<imgUrl.length;i++) {     
if( (imgUrl[i]!="") && (imgText[i]!="")&& (imgLink[i]!="")&& (imgAlt[i]!="")) {     
    count++;     
} else {     
    break;     
}     
}     
//重写css     
var each_width=Math.ceil((imgWidth-(count-1))/count);     
var last_width=imgWidth-each_width*(count-1)-(count)+1;     

function change(){     
if (ver==1){     
    with($('f_img').filters[0]){     
        Transition=1;     
        apply();     
        play();      
    }     
}     
if (firstTime){ firstTime=false;timeOut=_timeOut_/1000;}     
else{          
     $('f_img').src=imgUrl[nowpic];     
     $('f_img').alt=imgAlt[nowpic];     
     $('f_imgLink').href=imgLink[nowpic];     
     if (show_text) $('f_text').innerHTML=imgText[nowpic];             
     for (var i=0;i<count;i++) {     
        $('b'+i).className="button";     
        //$('f_menu'+i).className="";     
     }     
     $('b'+nowpic).className="on";         
     //$('f_menu'+nowpic).className="on";          
     nowpic=(nowpic>=imgUrl.length-1)?0:nowpic+1;     
     timeOut=_timeOut_;              
}     
theTimer=setTimeout("change()", timeOut);     
}     
function b_change(num){     
window.clearInterval(theTimer);      
nowpic=num;     
firstTime=false;     
change();     
}     
//draw 渐变line (即css:f_line)     
function draw_line(){     
var div = document.createElement("div");         
div.id = 'f_line';     
$('f_infoDiv').insertBefore(div,$('f_infoDiv').childNodes.item(0));                 
}     
//表现层 start         
//图片     
var a = document.createElement("a");             
a.id="f_imgLink";     
a.target=target;     
a.href=imgLink[nowpic];         
$('f_imgDiv').appendChild(a);     

var img = document.createElement("img");         
img.id="f_img";     
img.width=imgWidth;     
img.height=imgHeight;     
img.src=imgUrl[nowpic];     
img.alt=imgAlt[nowpic];     
a.appendChild(img);     

//数字按钮     
for (var i=count-1;i>=0;i--){     
    var div_bg = document.createElement("div");             
    div_bg.id = 'div_bg'+i;     
    div_bg.className='bg';     
    $('f_buttonDiv').appendChild(div_bg);         
    var a = document.createElement("a");             
    a.id = 'b'+i;     
    a.className = (i==nowpic+1)?"button_on":"button_off";             
    a.title=imgAlt[i];     
    a.innerHTML=i+1;     
    a.href='javascript:b_change('+i+')';             
    $('div_bg'+i).appendChild(a);         
    var div= document.createElement("div");     
    $('f_buttonDiv').appendChild(div);                 
}             
if (show_text) $('f_text').innerHTML = imgText[nowpic];     
//表现层 end     
$('f_img').onmouseover=function(){window.clearInterval(theTimer);}     
$('f_img').onmouseout=function(){theTimer=setTimeout("change()", timeOut2);}     
try{  //滤镜版本     
  new ActiveXObject("DXImageTransform.Microsoft.Fade");     
  $('f_img').filters[0].play();           
  ver=1;     
  draw_line();      
  }     
catch (e){ver=2;}     
var theTimer = setTimeout("change()", _timeOut_/1000);     
//-->     
</script>
    <!--======================================================================================广告结束===-->
</div>

</body>
</html>

 posted on 2008-08-29 09:30  刘卿  阅读(3039)  评论(0编辑  收藏  举报