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

📄 popup.js

📁 软件的主要特点: 1.专门针对有"验证码"要求的论坛. 2.可以完成如下功能: 自动发布新帖,自动回复指定帖,自动注册论坛帐号 (所有操作不能同时针对一个网站,因为有"验证码"要求的网站是每次打开一个
💻 JS
字号:
/** * popup으로 열렸을 경우 부모창의 위지윅에디터에 select된 멀티미디어 컴포넌트 코드를 체크하여 * 있으면 가져와서 원하는 곳에 삽입 **/var selected_node = null;function getCode() {    // 부모 위지윅 에디터에서 선택된 영역이 있는지 확인    if(typeof(opener)=='undefined') return;    // 부모창의 선택된 객체가 img가 아니면 pass~    var node = opener.editorPrevNode;    if(!node || node.nodeName != 'IMG') return;    selected_node = node;    // 이미 정의되어 있는 변수에서 데이터를 구함    var ccl_use_mark = node.getAttribute('ccl_use_mark');    var ccl_allow_commercial = node.getAttribute('ccl_allow_commercial');    var ccl_allow_modification = node.getAttribute('ccl_allow_modification');    // form문에 적용    var fo_obj = xGetElementById('fo');    if(ccl_use_mark == 'Y') fo_obj.ccl_use_mark.selectedIndex = 0;     else fo_obj.ccl_use_mark.selectedIndex = 1;    if(ccl_allow_commercial == 'Y') fo_obj.ccl_allow_commercial.selectedIndex = 0;     else fo_obj.ccl_allow_commercial.selectedIndex = 1;    if(ccl_allow_modification == 'Y') fo_obj.ccl_allow_modification.selectedIndex = 0;     else if(ccl_allow_modification== 'N')  fo_obj.ccl_allow_modification.selectedIndex = 1;    else fo_obj.ccl_allow_modification.selectedIndex = 2;}/* 추가 버튼 클릭시 부모창의 위지윅 에디터에 인용구 추가 */function insertCode() {    if(typeof(opener)=='undefined') return;    var fo_obj = xGetElementById('fo');    var ccl_use_mark = fo_obj.ccl_use_mark.options[fo_obj.ccl_use_mark.selectedIndex].value;    var ccl_allow_commercial = fo_obj.ccl_allow_commercial.options[fo_obj.ccl_allow_commercial.selectedIndex].value;    var ccl_allow_modification = fo_obj.ccl_allow_modification.options[fo_obj.ccl_allow_modification.selectedIndex].value;    var content = '';    var style = "width:90%; margin:20px auto 20px auto; height:50px; border:1px solid #c0c0c0; background: transparent url('./modules/editor/components/cc_license/ccl_logo.gif') no-repeat center center;";    var text = '<br /><img editor_component="cc_license" ccl_use_mark="'+ccl_use_mark+'" ccl_allow_commercial="'+ccl_allow_commercial+'" ccl_allow_modification="'+ccl_allow_modification+'" style="'+style+'" src="./common/tpl/images/blank.gif" alt="ccl" /><br />';    if(selected_node) {        selected_node.setAttribute('ccl_use_mark', ccl_use_mark);        selected_node.setAttribute('ccl_allow_commercial', ccl_allow_commercial);        selected_node.setAttribute('ccl_allow_modification', ccl_allow_modification);    } else {        opener.editorFocus(opener.editorPrevSrl);        var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)        opener.editorReplaceHTML(iframe_obj, text);    }    opener.editorFocus(opener.editorPrevSrl);    window.close();}xAddEventListener(window, 'load', getCode);

⌨️ 快捷键说明

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