Web/common/UBBCode_Gecko.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//|===========================|
//| UBB编辑器JS代码 1.0 |
//| 作者:舜子(PuterJam) |
//| 版权所有 2006 |
//| For Mozilla |
//|===========================|
function showUBB(UBB_Content){
document.getElementById("editorbody").style.display="";
document.getElementById("editorHead").innerHTML=ubbTools;
var me=document.getElementById("editMask")
me.parentNode.removeChild(me);
UBBTextArea=document.getElementsByName(UBB_Content)
UBBTextArea[0].focus();
}
function initUBB(UBB_Content){
UBBTextArea=document.getElementsByName(UBB_Content)
}
function AddText(str){
UBBTextArea[0].value+=str
UBBTextArea[0].focus()
}
function UBB_about(){
alert("UBB编辑器 For PL-Blog2 1.0\n作者: 舜子(PuterJam)\n版权所有 2005\n浏览器: "+window.navigator.appName+"\n其他信息: "+window.navigator.appVersion)
}
function UBB_bold(){
if (EditMethod=="normal")
{
var PopText
if (PopText=window.prompt(bold_normal,"")) {
AddText("[b]"+PopText+"[/b]")
}
}
if (EditMethod=="expert")
{
AddText("[b][/b]")
}
}
function UBB_italic(){
if (EditMethod=="normal")
{
var PopText
if (PopText=window.prompt(italic_normal,"")) {
AddText("[i]"+PopText+"[/i]")
}
}
if (EditMethod=="expert")
{
AddText("[i][/i]")
}
}
function UBB_underline(){
if (EditMethod=="normal")
{
后面还有 365 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
