FTB_FreeTextBox.prototype.InsertDiv = function() {
var div = window.document.createElement("div");
div.style.width = "200px";
div.style.height = "200px";
div.style.border = "dotted 1px gray";
this.InsertElement(div);
};
FTB_FreeTextBox.prototype.EditStyle = function() {
// custom implimentation of GetParentElement() and GetSelection() and GetRange()
el = this.GetParentElement();
this.EditElementStyle(el);
};
FTB_FreeTextBox.prototype.EditElementStyle = function(el) {
var styleWin = window.open("","propWin","width=530,height=420,status=0,toolbars=0");
if (styleWin) {
styleWin.focus();
} else {
alert("Please turn off your PopUp blocking software");
return;
}
//return;
html = FTB_StyleEditorHtml;
styleWin.document.body.innerHTML = '';
styleWin.document.open();
styleWin.document.write( html );
styleWin.document.close();
launchParameters = new Object();
launchParameters['ftb'] = this;
launchParameters['element'] = el;
styleWin.launchParameters = launchParameters;
styleWin.load();
};
/* START: Table Functions
These functions are derived from HTMLAREA who
gave permission for them to be used in FreeTextBox
- Thanks HTMLAREA!!
----------------------------------------------- */
FTB_FreeTextBox.prototype.InsertTableColumnBefore = function() {
this.InsertTableColumn(false);
};
FTB_FreeTextBox.prototype.InsertTableColumnAfter = function() {
this.InsertTableColumn(true);
};
FTB_FreeTextBox.prototype.InsertTableColumn = function(after) {
var td = this.GetNearest("td");
if (!td) {
return;
}
var rows = td.parentNode.parentNode.rows;
var index = td.cellIndex;
for (var i = rows.length; --i >= 0;) {
var tr = rows[i];
var otd = this.designEditor.document.createElement("td");
otd.innerHTML = (FTB_Browser.isIE) ? "" : "<br />";
//if last column and insert column after is select append child
if (index==tr.cells.length-1 && after) {
tr.appendChild(otd);
} else {
var ref = tr.cells[index + ((after) ? 1 : 0)]; // 0
tr.insertBefore(otd, ref);
}
}
};
FTB_FreeTextBox.prototype.InsertTableRowBefore = function() {
this.InsertTableRow(false);
};
FTB_FreeTextBox.prototype.InsertTableRowAfter = function() {
this.InsertTableRow(true);
};
FTB_FreeTextBox.prototype.InsertTableRow = function(after) {
var tr = this.GetNearest("tr");
if (!tr) return;
var otr = tr.cloneNode(true);
this.ClearRow(otr);
tr.parentNode.insertBefore(otr, ((after) ? tr.nextSibling : tr));
};
FTB_FreeTextBox.prototype.DeleteTableColumn = function() {
var td = this.GetNearest("td");
if (!td) {
return;
}
var index = td.cellIndex;
if (td.parentNode.cells.length == 1) {
return;
}
// set the caret first to a position that doesn't disappear
this.SelectNextNode(td);
var rows = td.parentNode.parentNode.rows;
for (var i = rows.length; --i >= 0;) {
var tr = rows[i];
tr.removeChild(tr.cells[index]);
}
};
FTB_FreeTextBox.prototype.DeleteTableRow = function() {
var tr = this.GetNearest("tr");
if (!tr) {
return;
}
var par = tr.parentNode;
if (par.rows.length == 1) {
return;
}
// set the caret first to a position that doesn't disappear.
this.SelectNextNode(tr);
par.removeChild(tr);
};
// helper table
FTB_FreeTextBox.prototype.ClearRow = function(tr) {
var tds = tr.getElementsByTagName("td");
for (var i = tds.length; --i >= 0;) {
var td = tds[i];
td.rowSpan = 1;
td.innerHTML = (FTB_Browser.isIE) ? "" : "<br />";
}
};
FTB_FreeTextBox.prototype.SplitRow = function(td) {
var n = parseInt("" + td.rowSpan);
var nc = parseInt("" + td.colSpan);
td.rowSpan = 1;
tr = td.parentNode;
var itr = tr.rowIndex;
var trs = tr.parentNode.rows;
var index = td.cellIndex;
while (--n > 0) {
tr = trs[++itr];
var otd = editor._doc.createElement("td");
otd.colSpan = td.colSpan;
otd.innerHTML = mozbr;
tr.insertBefore(otd, tr.cells[index]);
}
};
FTB_FreeTextBox.prototype.SplitCol = function(td) {
var nc = parseInt("" + td.colSpan);
td.colSpan = 1;
tr = td.parentNode;
var ref = td.nextSibling;
while (--nc > 0) {
var otd = editor._doc.createElement("td");
otd.rowSpan = td.rowSpan;
otd.innerHTML = mozbr;
tr.insertBefore(otd, ref);
}
}
FTB_FreeTextBox.prototype.SplitCell = function(td) {
var nc = parseInt("" + td.colSpan);
splitCol(td);
var items = td.parentNode.cells;
var index = td.cellIndex;
while (nc-- > 0) {
this.SplitRow(items[index++]);
}
};
/* FORM Functions
-------------------------------------- */
FTB_FreeTextBox.prototype.IsInForm = function() {
return (this.GetNearest("form")) ? true : false ;
};
FTB_FreeTextBox.prototype.InsertForm = function() {
var form = window.document.createElement("form");
this.InsertElement(form);
};
FTB_FreeTextBox.prototype.InsertCheckBox = function() {
this.InsertInputElement("","checkbox");
};
FTB_FreeTextBox.prototype.InsertTextBox = function() {
this.InsertInputElement("","text");
};
FTB_FreeTextBox.prototype.InsertRadioButton = function() {
this.InsertInputElement("","radio");
};
FTB_FreeTextBox.prototype.InsertButton = function() {
this.InsertInputElement("","button");
};
FTB_FreeTextBox.prototype.InsertDropDownList = function() {
var select = window.document.createElement("select");
this.InsertElement(select);
};
FTB_FreeTextBox.prototype.InsertTextArea = function() {
var textarea = window.document.createElement("textarea");
this.InsertElement(textarea);
};
FTB_FreeTextBox.prototype.InsertInputElement = function(id,type) {
var input = window.document.createElement("input");
input.id = id;
input.type = type;
this.InsertElement(input);
}
/* Color picker Functions
-------------------------------------- */
FTB_FreeTextBox.prototype.FontForeColorPicker = function() {
this.LaunchColorPickerWindow('forecolor');
};
FTB_FreeTextBox.prototype.FontBackColorPicker = function() {
this.LaunchColorPickerWindow('backcolor');
};
FTB_FreeTextBox.prototype.LaunchColorPickerWindow = function(commandName, startValue) {
var pickerWin = window.open("","colorPickerWin","width=290,height=180");
if (pickerWin) {
pickerWin.focus();
} else {
alert("Please turn off your PopUp blocking software");
return;
}
pickerWin.document.body.innerHTML = '';
pickerWin.document.open();
pickerWin.document.write(FTB_ColorPickerHtml);
pickerWin.document.close();
launchParameters = new Object();
launchParameters['ftb'] = this;
launchParameters['commandName'] = commandName;
pickerWin.launchParameters = launchParameters;
pickerWin.load();
};
FTB_FreeTextBox.prototype.InsertImage = function() {
var imageWin = window.open("","imageWin","width=500,height=310");
if (imageWin) {
imageWin.focus();
} else {
alert("Please turn off your PopUp blocking software");
return;
}
//imageWin.document.body.innerHTML = '';
imageWin.document.open();
imageWin.document.write(FTB_ImagePopUpHtml);
imageWin.document.close();
launchParameters = new Object();
launchParameters['ftb'] = this;
imageWin.launchParameters = launchParameters;
imageWin.load();
};
/* Misc Pro features
--------------------------------------- */
FTB_FreeTextBox.prototype.WordClean = function() {
var text = this.designEditor.document.body.innerHTML;
text=text.replace(/<FONT[^>]*>/gi,"");
text=text.replace(/<\/FONT>/gi,"");
text=text.replace(/<U>/gi,"");
text=text.replace(/<\/U>/gi,"");
text=text.replace(/<H[^>]*>/gi,"");
text=text.replace(/<\/H[^>]*>/gi,"");
// Change these tags.
text=text.replace(/<B[^>]*>/gi,"&bold");
text=text.replace(/<\/B[^>]*>/gi,"&cbold");
text=text.replace(/<STRONG[^>]*>/gi,"&bold");
text=text.replace(/<\/STRONG[^>]*>/gi,"&cbold");
text=text.replace(/<I[^>]*>/gi,"&ital");
text=text.replace(/<\/I[^>]*>/gi,"&cital");
text=tex
没有合适的资源?快使用搜索试试~ 我知道了~
BBS.rar_Asp BBS_BBS mysql ASP.NET_csharp开发bbs_简易 BBS
共771个文件
gif:610个
jpg:44个
cs:30个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 108 浏览量
2022-09-24
02:58:14
上传
评论 1
收藏 1.71MB RAR 举报
温馨提示
简易实现asp.net BBS论坛 基本功能实现 前台后台 内附数据库 附带了说明书。
资源推荐
资源详情
资源评论
收起资源包目录
BBS.rar_Asp BBS_BBS mysql ASP.NET_csharp开发bbs_简易 BBS (771个子文件)
de-de.xml.2005-03-22.10-39-30.0156 4KB
Languages.xml.2005-03-17.21-30-04.5156 815B
Languages.xml.2005-03-22.10-39-19.7187 1KB
Header.ascx 10KB
Footer.ascx 654B
AddHost.aspx 10KB
Register.aspx 10KB
ModifyInfo.aspx 10KB
CardInfo.aspx 7KB
Card.aspx 5KB
ImageManage.aspx 5KB
ModuleInfo.aspx 5KB
DeliverCard.aspx 5KB
RevertCard.aspx 4KB
AdminInfo.aspx 4KB
RegPro.aspx 4KB
HostManage.aspx 3KB
ModuleManage.aspx 3KB
CardManage.aspx 3KB
UserManage.aspx 3KB
AddModule.aspx 3KB
Login.aspx 2KB
Default.aspx 1KB
LimitPop.aspx 1KB
checkcode.aspx 447B
Web.Config 2KB
HostManage.cs 10KB
UserManage.cs 9KB
ModifyInfo.aspx.cs 7KB
RevertManage.cs 7KB
DataBase.cs 7KB
CardInfo.aspx.cs 7KB
CardManage.cs 6KB
AddHost.aspx.cs 5KB
ImageManage.aspx.cs 5KB
Register.aspx.cs 5KB
ModuleManage.cs 5KB
DeliverCard.aspx.cs 4KB
HostManage.aspx.cs 4KB
Login.aspx.cs 4KB
CardManage.aspx.cs 4KB
RevertCard.aspx.cs 4KB
ImageManage.cs 3KB
ModuleManage.aspx.cs 3KB
UserManage.aspx.cs 3KB
checkcode.aspx.cs 3KB
Card.aspx.cs 3KB
ModuleInfo.aspx.cs 3KB
AdminManage.cs 3KB
Header.ascx.cs 2KB
AddModule.aspx.cs 2KB
AdminInfo.aspx.cs 1KB
RegPro.aspx.cs 711B
Footer.ascx.cs 421B
LimitPop.aspx.cs 416B
Default.aspx.cs 383B
StyleSheet.css 767B
Thumbs.db 122KB
Thumbs.db 70KB
Thumbs.db 66KB
Thumbs.db 61KB
Thumbs.db 58KB
Thumbs.db 33KB
Thumbs.db 19KB
Thumbs.db 9KB
Thumbs.db 9KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 7KB
Thumbs.db 7KB
Thumbs.db 6KB
Thumbs.db 6KB
FreetextBox.dll 724KB
App_Licenses.dll 3KB
使用说明书.doc 218KB
buttons.gif 7KB
normal.gif 6KB
3.gif 5KB
1.gif 5KB
normal.gif 3KB
folder.big.gif 2KB
edittable.gif 1KB
wordclean.gif 1KB
insertimagefromgallery.gif 1024B
editstyle.gif 1010B
mode.design.gif 1001B
toolbarbuttoncss.off.over.gif 997B
edittablerow.gif 977B
unlink.gif 964B
insertbutton.gif 960B
selectall.gif 951B
insertdate.gif 943B
insertradiobutton.gif 934B
insertimagefromgallery.gif 933B
insertimage.gif 933B
insertimagefromgallery.gif 933B
insertimage.gif 933B
insertdate.gif 932B
insertdate.gif 932B
wordcount.gif 925B
共 771 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
APei
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功