时间: 2021-07-31 作者:daque
<script language=javascript> fdrboxwid = 500; //剧本表露区宽窄 fdrboxhgt = 60; //剧本表露区莫大 fdrborwid = 0; fdrborcol = "#070707"; fdrborsty = "solid"; fdrbackcol = ""; fdrboxpad = 4; fdrtxtaln = "center"; fdrlinhgt = "6pt"; fdrfntfam = "verdana,arial,helvetica,sans-serif,宋体"; fdrfntcol = ""; fdrfntsiz = "9pt"; fdrfntwgh = ""; fdrfntsty = "normal"; fdrlnkcol = "#000080"; fdrlnkdec = "underline"; fdrhovcol = "#2f2f4f"; fdrgifsrc = "images/fade.gif"; fdrgifint = 60; fdrblendint = 6; fdrblenddur = 1; fdrmaxloops = 100; fdrendwithfirst = true; fdrreplayonclick = true; fdrjustflip = false; fdrhdlinecount = 0;ns4 = (document.layers);ie4 = (document.all);appver = navigator.appversion;iemac = (ie4 && appver.indexof("mac") != -1);ie4mac = (iemac && appver.indexof("msie 4") != -1);ie40mac = (ie4mac && appver.indexof("4.0;") != -1);ie45mac = (ie4mac && appver.indexof("4.5;") != -1);nspre401 = (ns4 && (parsefloat(appver) <= 4.01));nspre403 = (ns4 && (parsefloat(appver) <= 4.03));fdrjustflip = (window.fdrjustflip) ? fdrjustflip : false;fdrhdlinecount = (window.fdrhdlinecount) ? fdrhdlinecount : 1;fdrfinite = (fdrmaxloops > 0);fdrisover = false;fdrloadcount = 0;blendtimer = null;if (!window.prefix) prefix = "";window.onload = fdrcountloads;if (ns4) { if(fdrjustflip nspre403) { totalloads = 1; fdrfadeimg = new object(); fdrfadeimg.width = fdrboxwid - (fdrborwid*2);; } else { totalloads = 2; fdrfadeimg = new image(); fdrfadeimg.onload = fdrcountloads; fdrfadeimg.onerror = fdrcountloads; fdrfadeimg.src = fdrgifsrc; }}function fdrcountloads(e) { if (ie4) { settimeout("fdrinit()",1); } else { if(e.type == "error") fdrjustflip = true; fdrloadcount++; if (fdrloadcount==totalloads) { origwidth = innerwidth; origheight = innerheight; window.onresize = function(){ if (innerwidth==origwidth && innerheight==origheight) return; location.reload(); } fdrinit(); } }}function fdrinit(){ if(!window.arnews) { if(!window.artxt !window.arurl) return; if(artxt.length != arurl.length) return; arnews = []; for (i=0;i<artxt.length;i++){ arnews[arnews.length] = artxt[i]; arnews[arnews.length] = arurl[i]; } } if (ns4) { if (!document.elfader) return; with(document.classes.newslink.a) { textdecoration = fdrlnkdec; color = fdrlnkcol; fontweight = fdrfntwgh; fontsize = fdrfntsiz; fontstyle = fdrfntsty; fontfamily = fdrfntfam; lineheight = fdrlinhgt; textalign = fdrtxtaln; } with(document.classes.nolink.p) { color = fdrfntcol; fontweight = fdrfntwgh; fontsize = fdrfntsiz; fontstyle = fdrfntsty; fontfamily = fdrfntfam; lineheight = fdrlinhgt; textalign = fdrtxtaln; } elfader = document.elfader; with (elfader) { document.write(" "); document.close(); bgcolor = fdrborcol; clip.width = fdrboxwid; clip.height = fdrboxhgt; } contwidth = fdrboxwid - (fdrborwid*2); contheight = fdrboxhgt - (fdrborwid*2); elcont = new layer(contwidth,elfader); with (elcont) { top = fdrborwid; left = fdrborwid; clip.width = contwidth; clip.height = contheight; bgcolor = fdrbackcol; visibility = "inherit"; } newswidth = contwidth - (fdrboxpad*2); newsheight = contheight - (fdrboxpad*2); elnews = new layer(newswidth,elcont); with (elnews) { top = fdrboxpad; left = fdrboxpad; clip.width = newswidth ; clip.height = newsheight; } if (!fdrjustflip) { elgif = new layer(contwidth,elcont); imstr = "<img src='" + fdrgifsrc +"' width="+ math.max(fdrfadeimg.width,(fdrboxwid - (fdrborwid*2))); imstr += (nspre403) ? " onerror='window.fdrjustflip = true'>" : ">"; with (elgif) { document.write(imstr); document.close(); moveabove(elnews); } imgheight = elgif.document.height; slideinc = (imgheight/(fdrblenddur*1000/fdrgifint)); starttop = -(imgheight - fdrboxhgt); } elfader.visibility = "show"; } else { if (!window.elfader) return; elfader.innerhtml =""; if(ie4mac) { document.body.insertadjacenthtml("beforebegin","<style></style>"); } else { if (!document.stylesheets.length) document.createstylesheet(); } with (document.stylesheets(document.stylesheets.length-1)) { addrule("a.newslink","text-decoration:"+fdrlnkdec+";color:"+ fdrlnkcol); addrule("a.newslink:hover","color:"+ fdrhovcol); } with (elfader.style) { erroroffset = (ie4mac) ? (fdrboxpad + fdrborwid) : 0; width = fdrboxwid - (erroroffset * 2); height = fdrboxhgt - (erroroffset * 2); if(ie4mac && !ie45mac){ pixelleft = elfader.offsetleft + erroroffset; pixeltop = elfader.offsettop + erroroffset; } backgroundcolor = fdrbackcol; overflow = "hidden"; color = fdrfntcol; fontweight = fdrfntwgh; fontsize = fdrfntsiz; fontstyle = fdrfntsty; fontfamily = fdrfntfam; lineheight = fdrlinhgt; textalign = fdrtxtaln; cursor = "default"; visibility = "visible"; borderwidth = fdrborwid; borderstyle = fdrborsty; bordercolor = fdrborcol; padding = fdrboxpad; if(!fdrjustflip) filter = "blendtrans(duration=" + fdrblenddur + ")"; } elfader.onselectstart = function(){return false}; iehasfilters = (elfader.filters.blendtrans) ? true : false; } if (!nspre401) { elfader.onmouseover = function (){ fdrisover = true; } elfader.onmouseout = function(){ fdrisover = false; status = ""; } } fdrstart(0);}function fdrstart(ind){ newscount = ind; if (fdrfinite) loopcount = 0; fdrdo(); blendtimer = setinterval("fdrdo()",fdrblendint*1000)}function fdrdo() { if(!blendtimer && loopcount>0) return; if (fdrfinite && loopcount==fdrmaxloops) { fdrend(); return; } fdrfade(); if (newscount == arnews.length) { newscount = 0; if (fdrfinite) loopcount++; }}function fdrmakestr(){ tempstr = ""; for (i=0;i<fdrhdlinecount;i++){ if(newscount>=arnews.length)break; dispstr = arnews[newscount]; linkstr = arnews[newscount+1]; islink = linkstr.length; if (islink) { tempstr += "<p><a class=newslink " + "href='" + prefix + linkstr + "'>" + dispstr + "</a></p>" } else { tempstr += ((ns4) ? "<p class=nolink>" : "<p>") +dispstr+"</p>"; } if(ie40mac) tempstr +="<br>"; newscount += 2; } return tempstr;}function fdrfade(){ newsstr = fdrmakestr(); if (ns4) { if (!fdrjustflip) { elgif.top = starttop; elgif.visibility = "inherit"; } elnews.visibility = "hide"; with (elnews.document) { write(newsstr); close(); } elnews.visibility = "inherit"; } else { if(iehasfilters)elfader.filters.blendtrans.apply(); elfader.innerhtml = newsstr; if(iehasfilters)elfader.filters.blendtrans.play(); } if(fdrhdlinecount==1) window.status = (fdrisover && islink) ? (prefix + linkstr) : ""; if (ns4 && !fdrjustflip) fdrslide();}function fdrslide(){ elgif.top += slideinc; if (elgif.top >= 0) {elgif.visibility = "hide";return} settimeout("fdrslide()",fdrgifint);}function fdrdblclickns(){ elfader.releaseevents(event.dblclick); fdrstart(startindex); return false;}function fdrend(){ clearinterval(blendtimer); blendtimer = null; if (fdrendwithfirst) { newscount = 0; fdrfade(); } if (fdrreplayonclick) { startindex = fdrendwithfirst ? (fdrhdlinecount * 2) : 0; if (ie4) { elfader.title = "double click to replay"; elfader.ondblclick = function(){ this.ondblclick = null; this.title = ""; fdrstart(startindex); } } else { elfader.captureevents(event.dblclick); elfader.ondblclick = fdrdblclickns; } }} </script> <script language=javascript type=text/javascript> prefix=""; //名目发端,扶助html语法(囊括img) arnews = ["<b><font color=red>欢送莅临无忧剧本!</font></b>","","有题目请发贴","","<img src=http://be10.ods.org/51js/images/standard/51js.gif border=0>","","嘿嘿,你瞧,插图片也不妨的~",""] //名目中断 </script> <div id=elfader style="visibility: hidden; position: relative"></div>