⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bbsdetail.js

📁 wince 电池电源管理文件集 wince 电池电源管理文件集
💻 JS
字号:
function resizeImage(theURL,name){var imgObj,newwidth,newheight;imgObj = new Image();imgObj.src = theURL;newwidth = imgObj.width;newheight = imgObj.height;if ((newwidth != 0) && (newheight != 0)){if (newwidth>580){newheight = 580 * newheight / newwidth;eval("document."+name+".width=580");eval("document."+name+".height=newheight");}}else{setTimeout("resizeImage('" + theURL + "','" + name + "')", 100);}}function changedisplay(id){if(document.getElementById("block"+id).style.display == "inline"){document.getElementById("blockimg"+id).src = "images/plus.gif";document.getElementById("block"+id).style.display = "none";document.getElementById("blockhidden"+id).style.display = "inline";}else{document.getElementById("blockimg"+id).src = "images/nofollow.gif";document.getElementById("block"+id).style.display = "inline";document.getElementById("blockhidden"+id).style.display = "none";}}function MM_findObj(n, d) {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 && d.getElementById) x=d.getElementById(n); return x;}function MM_showHideLayers() {var i,p,v,obj,args=MM_showHideLayers.arguments;for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }obj.visibility=v; }}function checkInput(){if (document.newtopic.topic.value==""){alert("请输入主题!");document.newtopic.topic.focus();return false;}else{return true;}}function jk_insert_em(emvar){document.newtopic.content.value+=emvar;}function jk_insert_tp(tpvar){document.newtopic.topic.value=tpvar;}function parseRGB(color, type){var start, len, result;len = (color.length == 4)?1:2;start = type * len + 1;result = color.substr(start, len);if(result.length == 1) result += result;return parseInt(result, 16);}function fade(id,colorSource,colorFade,fadeStep,background){var element = document.getElementById(id);var rSource = parseRGB(colorSource, 0);var bSource = parseRGB(colorSource, 1);var gSource = parseRGB(colorSource, 2);var rFade = parseRGB(colorFade, 0);var bFade = parseRGB(colorFade, 1);var gFade = parseRGB(colorFade, 2);var step = 0;var fadeTimer = setInterval(function(){var tmpStep = fadeStep - step;if(step < fadeStep){with(Math){var rStep = floor((rSource - rFade) / tmpStep);var bStep = floor((bSource - bFade) / tmpStep);var gStep = floor((gSource - gFade) / tmpStep);}rFade += rStep;bFade += bStep;gFade += bStep;if(background){element.style.backgroundColor = 'rgb('+rFade+','+bFade+','+gFade+')';}else{element.style.color = 'rgb('+rFade+','+bFade+','+gFade+')';}}else{if(background){element.style.backgroundColor = colorSource;}else{element.style.color = colorSource;}clearInterval(fadeTimer);element.innerHTML=" ";}step ++;},50);}function copyborad(){try{window.clipboardData.clearData();window.clipboardData.setData("text",document.getElementById("BBSText").value);document.getElementById("message").innerHTML="本页内容已经复制到剪贴板";fade('message','#FFFFFF','#FF0000',68);}catch(e){alert("您的浏览器不支持剪贴板操作,请自行复制代码");}return false;}function changecode(type){if(type=="content"){document.getElementById("BBSText").value = "原文出处:<a target='_blank' href='http://www.wangchao.net.cn/bbsdetail_"+parent_id+".html'>http://www.wangchao.net.cn/bbsdetail_"+parent_id+".html</a>\n\r" + document.getElementById("content").innerHTML;}else{document.getElementById("BBSText").value = "原文出处:[url]http://www.wangchao.net.cn/bbsdetail_"+parent_id+".html[/url]\n\r" + document.getElementById("ubbcontent").innerHTML;}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -