微博热议
\n');
}
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function fullScreeMediaInner_DoFSCommand(command, args) {
var fullScree_obj = InternetExplorer ? fullScreeMediaInner : document.fullScreeMediaInner;
switch(command){
case 'closeAD':
if(document.getElementById('fullScreeMedia').style.display!='none'){
publicMethod_obj.change('fullScreeMedia');
clearInterval(publicMethod_obj.fullClearMedia_obj);
}
break;
case 'enable':
fullScree_obj.SetVariable("enabled_str","1");
break;
}
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('\n');
}
/* public */
var publicMethod_obj=new Object();
publicMethod_obj.exchangeInner = function(){
if(document.getElementById(this.id)){
if(this.enabled){
document.getElementById(this.id).innerHTML=this.inner;
if(this.paddingTop){
document.getElementById(this.id).style.paddingTop=this.paddingTop+'px';
}
if(this.paddingBottom){
document.getElementById(this.id).style.paddingBottom=this.paddingBottom+'px';
}
if(this.paddingLeft){
document.getElementById(this.id).style.paddingLeft=this.paddingLeft+'px';
}
}
}
}
publicMethod_obj.onResize=function(){
if(this.maxWidth!=null&&hexunPageMode_obj.clientWidth>this.maxWidth){
var tempFrame=(hexunPageMode_obj.clientWidth-this.maxWidth)/2;
}else{
var tempFrame=0;
}
for(var loops in this.list_array){
if(document.getElementById(this.list_array[loops])&&document.getElementById(this.list_array[loops]).style.display!='none'){
var _scrollTop=window.pageYOffset?document.documentElement.scrollTop || window.pageYOffset:hexunPageMode_obj.scrollTop//2010.06.28修改
switch(this.align){
case 'left':
document.getElementById(this.list_array[loops]).style.left=tempFrame+this.marginX+'px';
break;
case 'right':
document.getElementById(this.list_array[loops]).style.left=hexunPageMode_obj.scrollLeft+hexunPageMode_obj.clientWidth-tempFrame-this.width-(this.marginX?this.marginX:0)+'px';
break;
case 'center':
document.getElementById(this.list_array[loops]).style.left=(hexunPageMode_obj.clientWidth-this.width)/2+hexunPageMode_obj.scrollLeft+'px';
break;
}
switch(this.valign){
case 'top':
document.getElementById(this.list_array[loops]).style.top=_scrollTop+(this.marginY?this.marginY:270)+'px';
break;
case 'bottom':
document.getElementById(this.list_array[loops]).style.top=hexunPageMode_obj.clientHeight+_scrollTop-this.height-(this.marginY?this.marginY:0)+'px';
break;
case 'center':
document.getElementById(this.list_array[loops]).style.top=(hexunPageMode_obj.clientHeight-this.height)/2+_scrollTop+'px';
break;
default :
document.getElementById(this.list_array[loops]).style.top=this.marginY+'px';
break;
}
}
}
}
publicMethod_obj.writeDiv=function(id1_str,id2_str,get_w,get_h,back_str,close_obj,replay_obj,static_bool){
var temp_str='
内容装载中...
';
if(replay_obj!=null){
temp_str+=publicMethod_obj.creatReplayBtn(replay_obj);
}
if(close_obj!=null){
temp_str+=publicMethod_obj.creatCloseBtn(close_obj);
}
temp_str+='
';
return temp_str;
}
publicMethod_obj.creatReplayBtn=function(replay_obj){
var temp_str='
';
return temp_str;
}
publicMethod_obj.creatCloseBtn=function(close_obj){
var temp_str='
'
return temp_str;
}
publicMethod_obj.change=function(close_str,next_str){
var _bool=true;
if(close_str!=null){
if(close_str=='streamMediaBShell'&&document.getElementById(close_str).style.display=='none'){
_bool=false;
}
document.getElementById(close_str).style.display='none';
if(close_str=='streamMediaBShell'){
if(publicMethod_obj.streamClearMedia_obj){clearInterval(publicMethod_obj.streamClearMedia_obj)};
}
//当关闭全屏时
if(close_str=='fullScreeMedia'){slideEffect.start('fullScreeMedia','up');
if(publicMethod_obj.fullClearMedia_obj){clearInterval(publicMethod_obj.fullClearMedia_obj)};
document.getElementById('topFullWidthBanner').style.display='block';
//如果对联广告存在,打开对联
if(document.getElementById('hexunCouplet01')){document.getElementById('hexunCouplet01').style.display="block"};
//如果翻卷广告存在,打开翻卷
if(document.getElementById('hexunFanJuan01')){
document.getElementById('hexunFanJuan01').style.display="block";
publicMethod_obj.change('scrollMediaSShell','scrollMediaBShell');
publicMethod_obj.gotoFrame('scrollMediaBInner',2);
if(document.getElementById('scrollMediaInner')&&InternetExplorer){
document.getElementById('scrollMediaInner').GotoFrame(6);
document.getElementById('scrollMediaInner').play();
}
};
//如果左侧logo存在,打开左logo
if(document.getElementById('leftFloatLogoShell01')){document.getElementById('leftFloatLogoShell01').style.display="block"};
//如果右侧logo存在,打开右logo
if(document.getElementById('rightFloatLogoShell01')){document.getElementById('rightFloatLogoShell01').style.display="block"};
//如果流媒体广告存在
if(document.getElementById('streamMediaBShell')&&document.getElementById('streamMediaSShell')){
if(document.getElementById('scrollMediaInner')&&InternetExplorer){
document.getElementById('bigFloatMediaInner').GotoFrame(1);
document.getElementById('bigFloatMediaInner').play();
}
publicMethod_obj.change('streamMediaSShell','streamMediaBShell');//关闭小logo,打开大logo
//播放时间结束后,关闭大logo,打开小logo
publicMethod_obj.streamClearMedia_obj=setInterval(function(){
clearInterval(publicMethod_obj.streamClearMedia_obj);
publicMethod_obj.change('streamMediaBShell','streamMediaSShell');
},publicMethod_obj.streamClearMedia_maxTimer);
}
}
}
if(next_str!=null&&_bool){
document.getElementById(next_str).style.display='block';
if(document.getElementById('streamMediaS')&&document.getElementById('streamMediaS').innerHTML=='空'){
document.getElementById('streamMediaSShell').style.display='none';
}
}
return false;
}
publicMethod_obj.replay=function(get_str,close_str,flash_str,maxTimer){
document.getElementById(get_str).style.display='block';
//var bigFloat_obj = InternetExplorer ? bigFloatMediaInner : document.bigFloatMediaInner;
//备:变量bigFloat_obj的返回方法修改过
var bigFloat_obj = InternetExplorer? document.bigFloatMediaInner : document.getElementById('bigFloatMediaInner');
if(close_str!=null){
document.getElementById(close_str).style.display='none';
}
if(close_str=='fullScreeMediaSShell'){ //fullScreen+LOGO
document.documentElement.scrollTop='0px';
document.getElementById('topFullWidthBanner').style.display='none';
if(document.getElementById('hexunCouplet01')){document.getElementById('hexunCouplet01').style.display="none"};
if(document.getElementById('hexunFanJuan01')){document.getElementById('hexunFanJuan01').style.display="none"};
if(document.getElementById('leftFloatLogoShell01')){document.getElementById('leftFloatLogoShell01').style.display="none"};
if(document.getElementById('rightFloatLogoShell01')){document.getElementById('rightFloatLogoShell01').style.display="none"};
}
if(flash_str=='dlLoaderBLeft01'){
publicMethod_obj.change('rightCoupletSShell01','rightCoupletBShell01');
if(document.getElementById('dlLoaderBLeft01')) {document.getElementById('dlLoaderBLeft01').GOTOTEST(2);}
if(document.getElementById('dlLoaderBRight01')) {document.getElementById('dlLoaderBRight01').GOTOTEST(2);}
}
if(flash_str=='dlLoaderBRight01'){
publicMethod_obj.change('leftCoupletSShell01','leftCoupletBShell01');
if(document.getElementById('dlLoaderBLeft01')) {document.getElementById('dlLoaderBLeft01').GOTOTEST(2);}
if(document.getElementById('dlLoaderBRight01')) {document.getElementById('dlLoaderBRight01').GOTOTEST(2);}
}
if(document.getElementById(flash_str)&&InternetExplorer){
document.getElementById(flash_str).GotoFrame(1);
document.getElementById(flash_str).Play();
var fo=document.getElementById(flash_str);
if(fo!=null){
fo.SetVariable("goon",1);
fo.SetVariable("firstPlay",0);
}
}
if(maxTimer&&close_str=='streamMediaSShell'){
if(publicMethod_obj.streamClearMedia_obj){
clearInterval(publicMethod_obj.streamClearMedia_obj);
}
publicMethod_obj.streamClearMedia_obj=setInterval(function(){
clearInterval(publicMethod_obj.streamClearMedia_obj);
publicMethod_obj.change(get_str,close_str);
},maxTimer);
}
if(maxTimer&&close_str=='fullScreeMediaSShell'){
if(publicMethod_obj.fullClearMedia_obj){
clearInterval(publicMethod_obj.fullClearMedia_obj);
}
publicMethod_obj.fullClearMedia_obj=setInterval(function(){
clearInterval(publicMethod_obj.fullClearMedia_obj);
publicMethod_obj.change(get_str,close_str);
},maxTimer);
}
}
publicMethod_obj.creatMediaAD=function(flash_bool,id_str,src_str,w_num,h_num,wmode,url_str){
if(flash_bool){
var temp_str='
'
}else{
var temp_str='
'
+'';
}
return temp_str;
}
publicMethod_obj.openWindowBack=function() {
var popUpWin2 = open("/backscreen.htm", "popUpWin2", "width=770,height=550,top=4000,left=3000");
self.focus()
}
publicMethod_obj.showOfTime=function(){
for(var loops=0;loops
arguments[loops].s_date&&temp_date');
// left CoupletB 01
var temp_obj=new Object({id:'leftCoupletB01',enabled:true});
//temp_obj.inner=publicMethod_obj.creatMediaAD(true,'dlLoaderBLeft01','http://itv.hexun.com/lbi-html/ly/loader/duilian/loaderLeft100x300_beta1.swf?src_str=duilian100-300.swf&src_link=null&t='+Math.random(),100,300,'transparent','');
temp_obj.inner=publicMethod_obj.creatMediaAD(true,'dlLoaderBLeft01','http://itv.hexun.com/lbi-html/ly/2012/guangfabank/0626/loader100x300_beta1.swf?src_str=http://itv.hexun.com/lbi-html/ly/2012/guangfabank/0626/100x300.swf&src_link='+encodeURIComponent('空')+'&t='+Math.random(),100,300,'transparent','');
temp_obj.init=publicMethod_obj.exchangeInner;
temp_obj.width=100;
temp_obj.height=300;
//temp_obj.maxWidth=1160;
temp_obj.marginX=10;
temp_obj.marginY=123;
temp_obj.backgroud='#ffffff';
temp_obj.align='left';
temp_obj.valign=null;
temp_obj.onStage=publicMethod_obj.onResize;
temp_obj.list_array=new Array('leftCoupletBShell01');
temp_obj.onStage=publicMethod_obj.onResize;
var closeBottom_obj=new Object({color:'#333333',backgroud:'#EEEEEE',bold:'bold',decoration:'none',width:40,align:'left',instance:'hexunCouplet01'});
pageMedia_array.push(temp_obj);
pageFloatMedia_array.push(temp_obj);
document.write(publicMethod_obj.writeDiv('leftCoupletBShell01','leftCoupletB01',temp_obj.width,temp_obj.height,temp_obj.backgroud,closeBottom_obj));
// left CoupletS 01
var temp_obj=new Object({id:'leftCoupletS01',enabled:true});
temp_obj.inner=publicMethod_obj.creatMediaAD(true,'dlLoaderSLeft01','http://itv.hexun.com/lbi-html/ly/loader/duilian/loader25x300_beta1.swf?src_str=http://itv.hexun.com/lbi-html/ly/2012/guangfabank/0626/25x300.swf&src_link='+encodeURIComponent('空')+'&t='+Math.random(),25,300,'transparent','');
temp_obj.init=publicMethod_obj.exchangeInner;
temp_obj.width=25;
temp_obj.height=300;
//temp_obj.maxWidth=1160;
temp_obj.marginX=10;
temp_obj.marginY=123;
temp_obj.backgroud='#ffffff';
temp_obj.align='left';
temp_obj.valign=null;
temp_obj.onStage=publicMethod_obj.onResize;
temp_obj.list_array=new Array('leftCoupletSShell01');
temp_obj.onStage=publicMethod_obj.onResize;
var closeBottom_obj=new Object({color:'#333333',backgroud:'#EEEEEE',bold:'bold',decoration:'none',width:26,align:'left',instance:'hexunCouplet01'});
var replayBottom_obj=new Object({color:'#333333',backgroud:'#EEEEEE',bold:'bold',decoration:'none',width:26,align:'left',instance:'leftCoupletBShell01',closed:'leftCoupletSShell01',flash:'dlLoaderBLeft01'});
pageMedia_array.push(temp_obj);
pageFloatMedia_array.push(temp_obj);
document.write(publicMethod_obj.writeDiv('leftCoupletSShell01','leftCoupletS01',temp_obj.width,temp_obj.height,temp_obj.backgroud,closeBottom_obj,replayBottom_obj));
document.getElementById('leftCoupletSShell01').style.display='none';
// right CoupletB 01
var temp_obj=new Object({id:'rightCoupletB01',enabled:true});
//temp_obj.inner=publicMethod_obj.creatMediaAD(true,'dlLoaderBRight01','http://itv.hexun.com/lbi-html/ly/loader/duilian/loaderRight100x300_beta1.swf?src_str=100x300.swf&src_link='+encodeURIComponent('空')+'&t='+Math.random(),100,300,'transparent','');
temp_obj.inner=publicMethod_obj.creatMediaAD(true,'dlLoaderBRight01','http://itv.hexun.com/lbi-html/ly/2012/guangfabank/0626/loader100x300_beta1.swf?src_str=http://itv.hexun.com/lbi-html/ly/2012/guangfabank/0626/100x300.swf&src_link='+encodeURIComponent('空')+'&t='+Math.random(),100,300,'transparent','');
temp_obj.init=publicMethod_obj.exchangeInner;
temp_obj.width=100;
temp_obj.height=300;
//temp_obj.maxWidth=1160;
temp_obj.marginX=10;
temp_obj.marginY=123;
temp_obj.backgroud='#ffffff';
temp_obj.align='right';
temp_obj.valign=null;
temp_obj.onStage=publicMethod_obj.onResize;
temp_obj.list_array=new Array('rightCoupletBShell01');
temp_obj.onStage=publicMethod_obj.onResize;
var closeBottom_obj=new Object({color:'#333333',backgroud:'#EEEEEE',bold:'bold',decoration:'none',width:40,align:'right',instance:'hexunCouplet01'});
pageMedia_array.push(temp_obj);
pageFloatMedia_array.push(temp_obj);
document.write(publicMethod_obj.writeDiv('rightCoupletBShell01','rightCoupletB01',temp_obj.width,temp_obj.height,temp_obj.backgroud,closeBottom_obj));
// right CoupletS 01
var temp_obj=new Object({id:'rightCoupletS01',enabled:true});
temp_obj.inner=publicMethod_obj.creatMediaAD(true,'dlLoaderSRight01','http://itv.hexun.com/lbi-html/ly/loader/duilian/loader25x300_beta1.swf?src_str=http://itv.hexun.com/lbi-html/ly/2012/guangfabank/0626/25x300.swf&src_link='+encodeURIComponent('空')+'&t='+Math.random(),25,300,'transparent','');
temp_obj.init=publicMethod_obj.exchangeInner;
temp_obj.width=25;
temp_obj.height=300;
//temp_obj.maxWidth=1160;
temp_obj.marginX=10;
temp_obj.marginY=123;
temp_obj.backgroud='#ffffff';
temp_obj.align='right';
temp_obj.valign=null;
temp_obj.onStage=publicMethod_obj.onResize;
temp_obj.list_array=new Array('rightCoupletSShell01');
temp_obj.onStage=publicMethod_obj.onResize;
var closeBottom_obj=new Object({color:'#333333',backgroud:'#EEEEEE',bold:'bold',decoration:'none',width:26,align:'right',instance:'hexunCouplet01'});
var replayBottom_obj=new Object({color:'#333333',backgroud:'#EEEEEE',bold:'bold',decoration:'none',width:26,align:'left',instance:'rightCoupletBShell01',closed:'rightCoupletSShell01',flash:'dlLoaderBRight01'});
pageMedia_array.push(temp_obj);
pageFloatMedia_array.push(temp_obj);
document.write(publicMethod_obj.writeDiv('rightCoupletSShell01','rightCoupletS01',temp_obj.width,temp_obj.height,temp_obj.backgroud,closeBottom_obj,replayBottom_obj));
document.getElementById('rightCoupletSShell01').style.display='none';
document.write(' ');
}
/* page timeline */
if(document.getElementById('hexunBodyBaseDiv')==null){
document.write('
');
}
document.getElementById('hexunBodyBaseDiv').style.height=2000+'px';
window.scrollBy(0,1);
//var hexunPageMode_obj=(document.documentElement.scrollTop>document.body.scrollTop?document.documentElement:document.body);
var hexunPageMode_obj=document.documentElement;//2010.06.28修改
window.scrollBy(0,-1);
document.getElementById('hexunBodyBaseDiv').style.height=10+'px';
function pageFloatMediaInit(){
for(var loops=0;loops