<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="pop.css">
<script type="text/javascript" language="javascript" src="img.js"></script>
<script type="text/javascript" language="javascript">
<!--
var sAction = "INSERT";
var sTitle = "插入";
var oControl;
var oSeletion;
var sRangeType;
var sFromUrl = "http://";
var sAlt = "";
var sBorder = "0";
var sBorderColor = "#000000";
var sFilter = "";
var sAlign = "";
var sWidth = "";
var sHeight = "";
var sVSpace = "";
var sHSpace = "";
var sCheckFlag = "url";
var oFilter, oAlign, oFromurl, oAlt, oBorder, oBordercolor, oBordercolor, oWidth, oHeight, oVspace, oHspace, oCheckfromfile;
var oCheckfromurl, oFile, oUpload, oOk, oProcessing;
var wbtbWin;
if (window.opener){
wbtbWin=launchParameters["wbtb"];
oSelection = wbtbWin.document.getElementById("WBTB_Composition").contentWindow.document.selection.createRange();
sRangeType = wbtbWin.document.getElementById("WBTB_Composition").contentWindow.document.selection.type;
}else{
wbtbWin=dialogArguments;
oSelection = wbtbWin.WBTB_Composition.document.selection.createRange();
sRangeType = wbtbWin.WBTB_Composition.document.selection.type;
}
//if (window.opener){
if (sRangeType == "Control") {
if (oSelection.item(0).tagName == "IMG"){
sAction = "MODI";
sTitle = "修改";
sCheckFlag = "url";
oControl = oSelection.item(0);
sFromUrl = oControl.src;
sAlt = oControl.alt;
sBorder = oControl.border;
sBorderColor = oControl.style.borderColor;
sFilter = oControl.style.filter;
sAlign = oControl.align;
sWidth = oControl.width;
sHeight = oControl.height;
sVSpace = oControl.vspace;
sHSpace = oControl.hspace;
}
}
//}
document.write("<title>" + sTitle + "图片</title>");
// 初始值
function InitDocument(){
oFromurl=document.getElementById("d_fromurl");
oAlt=document.getElementById("d_alt");
oBorder=document.getElementById("d_border");
oBordercolor=document.getElementById("d_bordercolor");
oWidth=document.getElementById("d_width");
oHeight=document.getElementById("d_height");
oVspace=document.getElementById("d_vspace");
oHspace=document.getElementById("d_hspace");
oCheckfromfile=document.getElementById("d_checkfromfile");
oCheckfromurl=document.getElementById("d_checkfromurl");
oFile=document.getElementById("d_file").contentWindow;
oFilter=document.getElementById("d_filter");
oAlign=document.getElementById("d_align");
oProcessing=document.getElementById("divProcessing");
oOk=document.getElementById("Ok");
SearchSelectValue(oFilter, sFilter);
SearchSelectValue(oAlign, sAlign.toLowerCase());
oFromurl.value = sFromUrl;
oAlt.value = sAlt;
oBorder.value = sBorder;
oBordercolor.value = sBorderColor;
document.getElementById("s_bordercolor").style.backgroundColor = sBorderColor;
oWidth.value = sWidth;
oHeight.value = sHeight;
oVspace.value = sVSpace;
oHspace.value = sHSpace;
}
// 图片来源单选点击事件
function RadioClick(what){
oUpload=oFile.oUpload;
if (what=="url"){
oCheckfromfile.checked=false;
oFromurl.disabled=false;
oCheckfromurl.checked=true;
oUpload.disabled=true;
}else{
oCheckfromurl.checked=false;
oUpload.disabled=false;
oCheckfromfile.checked=true;
oFromurl.disabled=true;
}
}
// 改变窗口大小
var b_imgWin = false;
function WindowResize(ord,oInput)
{
if (ord)
{
if (window.opener){
//window.resizeTo("22em","20em");
}else{
window.dialogWidth = "22em";
}
document.getElementById("t_preview").style.display="none";
b_imgWin = false;
}else{
if (!b_imgWin)
{
if (window.opener){
//window.resizeTo("40em","20em");
}else{
window.dialogWidth = "40em";
window.dialogLeft = parseInt(window.dialogLeft) - 110;
}
document.getElementById("t_preview").style.display="";
b_imgWin = true;
}
document.getElementById("i_preview").src=oInput.value;
}
return true;
}
// 上传帧调入完成时执行
function UploadLoaded(){
// 初始radio
RadioClick(sCheckFlag);
}
// 上传错误
function UploadError(sErrDesc){
AbleItems();
RadioClick('file');
oProcessing.style.display="none";
try {
BaseAlert(oUpload,sErrDesc);
}
catch(e){}
}
// 文件上传完成时执行,带入上传文件名
function UploadSaved(sFileName){
oFromurl.value = GetHttpUrl(sFileName);
wbtbWin.AddUpload(sFileName);
ReturnValue();
}
// 本窗口返回值
function ReturnValue(){
sFromUrl = oFromurl.value;
sAlt = oAlt.value;
sBorder = oBorder.value;
sBorderColor = oBordercolor.value;
sFilter = oFilter.value;
sAlign = oAlign.value;
sWidth = oWidth.value;
sHeight = oHeight.value;
sVSpace = oVspace.value;
sHSpace = oHspace.value;
if (sFromUrl=="" || sFromUrl=="http://") {window.close();return;};
if (sAction == "MODI") {
oControl.src = sFromUrl;
oControl.alt = sAlt;
oControl.border = sBorder;
oControl.style.borderColor = sBorderColor;
oControl.style.filter = sFilter;
oControl.align = sAlign;
if (sWidth != "") {oControl.width = sWidth} else oControl.removeAttribute("width") ;
if (sHeight != "") {oControl.height = sHeight} else oControl.removeAttribute("height");
oControl.vspace = sVSpace;
oControl.hspace = sHSpace;
}else{
var sHTML = '<img src="'+sFromUrl+'" ';
if (sAlt != "") {
sHTML += ' alt="'+sAlt+'" ';
}
if (sBorder != "") {
sHTML+= ' border="'+sBorder+'" ';
}
if (sFilter != "" || sBorder != "0") {
sHTML += ' style="filter:'+sFilter+';border-color:'+sBorderColor+'" ';
}
if (sAlign != "") {
sHTML += ' align="'+sAlign+'"';
}
if (sWidth!=""){
sHTML=sHTML+' width="'+sWidth+'"';
}
if (sHeight!=""){
sHTML=sHTML+' height="'+sHeight+'"';
}
sHTML = sHTML+' vspace="'+sVSpace+'" hspace="'+sHSpace+'">';
wbtbWin.WBTB_InsertHtml(sHTML);
}
// window.returnValue = null;
window.close();
}
// 点确定时执行
function ok(){
// 数字型输入的有效性
oBorder.value = ToInt(oBorder.value);
oWidth.value = ToInt(oWidth.value);
oHeight.value = ToInt(oHeight.value);
oVspace.value = ToInt(oVspace.value);
oHspace.value = ToInt(oHspace.value);
if (oCheckfromurl.checked){
// 返回值
ReturnValue();
}else{
// 无值返回
if (oUpload.value=="") {window.close(); return;};
// 上传文件判断
if (!oFile.CheckUploadForm()) return false;
// 使各输入框无效
DisableItems();
// 显示正在上传图片
oProcessing.style.display="";
if (!document.all){
oProcessing.innerHTML="<center>上传中请等待...</center>";
oProcessing.style.backgroundColor="infobackground";
}
// 上传表单提交
oFile.oForm.submit();
}
}
// 使所有输入框无效
function DisableItems(){
oCheckfromfile.disabled=true;
oCheckfromurl.disabled=true;
oFromurl.disabled=true;
oAlt.disabled=true;
oBorder.disabled=true;
oBordercolor.disabled=true;
oFilter.disabled=true;
oAlign.disabled=true;
oWidth.disabled=true;
oHeight.disabled=true;
oVspace.disabled=true;
oHspace.disabled=true;
oOk.disabled=true;
}
// 使所有输入框有效
function AbleItems(){
oCheckfromfile.disabled=false;
oCheckfromurl.disabled=false;
oFromurl.disabled=false;
oAlt.disabled=false;
oBorder.disabled=false;
oBordercolor.disabled=false;
oFilter.disabled=false;
oAlign.disabled=false;
oWidth.disabled=false;
oHeight.disabled=false;
oVspace.disabled=false;
oHspace.disabled=false;
oOk.disabled=false;
}
function colorchange(obj,oImg)
{
if (obj.value != "")
{
try {
oImg.style.backgroundColor = obj.value;
}
catch(e)
{
alert("你输入的不是颜色!");
obj.value = "";
oImg.style.backgroundColor = "";
}
}
}
-->
</script>
<BODY bgColor="menu" onload="InitDocument()" topmargin="10" leftmargin="15">
<table border="0" cellpadding="0" cellspacing="0" align="left" >
<tr style="padding:2 0">
<td>
<fieldse
没有合适的资源?快使用搜索试试~ 我知道了~
程序源码 动网新闻.Net(Dvnews.net) v4.3_dvnews43(ASP.NET源码).rar
共830个文件
gif:587个
aspx:108个
js:27个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 191 浏览量
2023-03-13
20:25:43
上传
评论
收藏 1.4MB RAR 举报
温馨提示
免责声明:资料部分来源于合法的互联网渠道收集和整理,部分自己学习积累成果,供大家学习参考与交流。收取的费用仅用于收集和整理资料耗费时间的酬劳。 本人尊重原创作者或出版方,资料版权归原作者或出版方所有,本人不对所涉及的版权问题或内容负法律责任。如有侵权,请举报或通知本人删除。
资源推荐
资源详情
资源评论
收起资源包目录
程序源码 动网新闻.Net(Dvnews.net) v4.3_dvnews43(ASP.NET源码).rar (830个子文件)
global.asa 592KB
global.asax 41B
admin_config.aspx 31KB
admin_style.aspx 15KB
admin_articleAdd.aspx 15KB
admin_articleEdit.aspx 15KB
index2.aspx 13KB
index1.aspx 13KB
admin_memberAdd.aspx 12KB
memberreg.aspx 12KB
memberNewsAdd.aspx 12KB
show2.aspx 12KB
admin_gatherRuleAdd.aspx 11KB
memberModify.aspx 11KB
show1.aspx 11KB
admin_getJs.aspx 11KB
admin_left.aspx 11KB
admin_classAdd.aspx 10KB
admin_upload.aspx 9KB
admin_gatherNews.aspx 9KB
admin_upload_pic.aspx 9KB
remark.aspx 7KB
admin_main.aspx 7KB
list2.aspx 7KB
admin_article.aspx 6KB
admin_member.aspx 6KB
topic1.aspx 6KB
admin_member_check.aspx 5KB
admin_top.aspx 5KB
admin_upfiles.aspx 5KB
list1.aspx 5KB
admin_remark.aspx 4KB
admin_check.aspx 4KB
admin_remark_check.aspx 4KB
memberProfile.aspx 4KB
admin_link.aspx 4KB
admin_TopicAdd.aspx 4KB
memberList.aspx 4KB
login.aspx 4KB
admin_template.aspx 4KB
admin_member_ncView.aspx 3KB
memberLostpass.aspx 3KB
admin_class.aspx 3KB
admin_bulletin.aspx 3KB
frm_login.aspx 3KB
admin_bulletinAdd.aspx 3KB
memberSignIns.aspx 3KB
links.aspx 3KB
admin_group.aspx 3KB
admin_sendMail.aspx 3KB
search.aspx 3KB
admin_signIn.aspx 3KB
admin_linkCheck.aspx 3KB
admin_makestatic.aspx 3KB
admin_groupAdd.aspx 3KB
hot.aspx 3KB
admin_linkAdd.aspx 3KB
topic2.aspx 3KB
admin_login.aspx 3KB
admin_keyAdd.aspx 3KB
admin_pollAdd.aspx 3KB
admin_backup.aspx 2KB
admin_Topic.aspx 2KB
admin_templateAdd.aspx 2KB
mail.aspx 2KB
memberActive.aspx 2KB
admin_key.aspx 2KB
admin_poll.aspx 2KB
js_code.aspx 2KB
admin_selTopic.aspx 2KB
admin_linkSort.aspx 2KB
admin_processState.aspx 2KB
topicList.aspx 2KB
admin_maintainNews.aspx 2KB
polls.aspx 2KB
imgList.aspx 2KB
bulletin.aspx 2KB
admin_maintain.aspx 2KB
admin_move.aspx 2KB
WBTB_upload.aspx 2KB
admin_selKey.aspx 2KB
admin_linkSortAdd.aspx 2KB
admin_evalSql.aspx 1KB
upgrade.aspx 1KB
pollView.aspx 1KB
admin_resetNum.aspx 1KB
sitemap.aspx 1KB
admin_fileEdit.aspx 1KB
admin_power.aspx 1KB
memberSignIn.aspx 1KB
admin_compactDb.aspx 989B
imgIndex.aspx 975B
chinese.aspx 950B
frm_hit.aspx 803B
trans.aspx 765B
navClass.aspx 554B
admin_logout.aspx 424B
topicnews.aspx 238B
show.aspx 237B
list.aspx 236B
共 830 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
大富大贵7
- 粉丝: 389
- 资源: 8868
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功