📄 wzjs.js
字号:
<!-- 1.弹出式窗口 2.开自定格式新窗口 3.在选择器开新窗口 4.图像切换 5.关闭窗口 6.自动关闭窗口 7.选择邮箱 8.不用刷新而随机变更的Banner广告 9.图片渐变效果 10.抖动的图片 11.股票小精灵
// 设置轮番显示速度 Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// 匀滑转换时间 Duration of crossfade (seconds)
var crossFadeDuration = 3;
// 指定图像文件 Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = '../images/main_r03.gif'
Pic[1] = '../images/main_r02.gif'
Pic[2] = '../images/main_r01.gif'
// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
function openwin(){
window.open("http://www.etaodu.com/gg/index.htm","","width=450,height=315")
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadpopup(){
if (get_cookie('popped')==''){
openwin()
document.cookie="popped=yes"
}
}
function view(newsfile) {
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open('', 'popupnav', 'width=615,height=388,resizable=0,scrollbars=yes');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = newsfile;
}
}
function view1(newsfile) {
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open('', 'popupnav', 'width=615,height=415,resizable=0,scrollbars=yes');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = newsfile;
}
}
function view2(newsfile) {
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open('', 'popupnav', 'width=650,height=480,resizable=0,scrollbars=yes');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = newsfile;
}
}
function view3(newsfile) {
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open('', 'popupnav', 'width=567,height=396,resizable=0,scrollbars=yes');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = newsfile;
}
}
function navChange(formName, popupName, target) {
var popup = document[formName].elements[popupName];
if (popup.options[popup.selectedIndex].value != "") {
window.open(popup.options[popup.selectedIndex].value, target);
popup.selectedIndex=0;
}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function shutwin()
{window.close();
return;
}
function closeit() {
setTimeout("self.close()",60000)
}
function todo(ls){
window.open("http://stock.jrj.com.cn/htmdata/switch.asp?code="+ls,"jrjminhello","height=250,width=270,status=no,toolbar=no,menubar=no,location=no,resizable=no");
return false;
}
function todofur(ls) {
if(ls=="FTS_GN"){window.open("http://stock.jrj.com.cn/htmdata/html/"+ls+".htm","Fumin1","height=248,width=678,status=no,toolbar=no,menubar=no,location=no,resizable=no");return false;}
if(ls=="FTS_S"){window.open("http://stock.jrj.com.cn/htmdata/html/"+ls+".htm","Fumin2","height=248,width=678,status=no,toolbar=no,menubar=no,location=no,resizable=no");return false;}
if(ls=="FTS_M"){window.open("http://stock.jrj.com.cn/htmdata/html/"+ls+".htm","Fumin7","height=248,width=678,status=no,toolbar=no,menubar=no,location=no,resizable=no");return false;}
if(ls=="FTS_RU"){window.open("http://stock.jrj.com.cn/htmdata/html/"+ls+".htm","Fumin3","height=220,width=678,status=no,toolbar=no,menubar=no,location=no,resizable=no");return false;}
if(ls=="FTS_CU"){window.open("http://stock.jrj.com.cn/htmdata/html/"+ls+".htm","Fumin4","height=256,width=678,status=no,toolbar=no,menubar=no,location=no,resizable=no");return false;}
if(ls=="FTS_AL"){window.open("http://stock.jrj.com.cn/htmdata/html/"+ls+".htm","Fumin5","height=256,width=678,status=no,toolbar=no,menubar=no,location=no,resizable=no");return false;}
if(ls=="FTS_WT"){window.open("http://stock.jrj.com.cn/htmdata/html/"+ls+".htm","Fumin6","height=166,width=678,status=no,toolbar=no,menubar=no,location=no,resizable=no"); return false;}
return false;
}
function todofor(ls1){
if (ls1=="全部") {ls1="whole";window.open("http://211.99.209.74/htmdata/spdata/FE_whole.htm","jrjminhello1","width=390,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,,resizable=no"); return false;}
window.open("http://211.99.209.74/htmdata/spdata/FE_"+ls1+".htm",ls1,"height=205,width=370,status=no,toolbar=no,menubar=no,location=no,resizable=no");
return false;
}
var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;
bannerAD[0]="banner/1.gif";
bannerADlink[0]="#";
bannerAD[1]="banner/4.gif";
bannerADlink[1]="http://www.taoduvod.com/yifan/";
bannerAD[2]="banner/8.gif";
bannerADlink[2]="http://www.95599.cn";
var preloadedimages=new Array();
for (i=1;i<bannerAD.length;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=bannerAD[i];
}
function setTransition(){
if (document.all){
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
bannerADrotator.filters.revealTrans.apply();
}
}
function playTransition(){
if (document.all)
bannerADrotator.filters.revealTrans.play()
}
function nextAd(){
if(adNum<bannerAD.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.bannerADrotator.src=bannerAD[adNum];
playTransition();
theTimer=setTimeout("nextAd()", 7000);
}
function jump2url(){
jumpUrl=bannerADlink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
function displayStatusMsg() {
status=bannerADlink[adNum];
document.returnValue = true;
}
var rector=3
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
function todo(ls){ window.open("http://211.167.92.18/htmdata/switch.asp?code="+ls,"jrjminhello","height=250,width=270,status=no,toolbar=no,menubar=no,location=no,resizable=no");
return false;
}
-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -