link


Insert/Modify Link window.resizeTo(400, 200); I18N = window.opener.HTMLArea.I18N.dialogs; function i18n(str) { return (I18N[str] || str); }; function onTargetChanged() { var f = document.getElementById("f_other_target"); if (this.value == "_other") { f.style.visibility = "visible"; f.select(); f.focus(); } else f.style.visibility = "hidden"; }; function Init() { __dlg_translate(I18N); __dlg_init(); var param = window.dialogArguments; var target_select = document.getElementById("f_target"); if (param) { document.getElementById("f_href").value = param["f_href"]; document.getElementById("f_title").value = param["f_title"]; comboSelectValue(target_select, param["f_target"]); if (target_select.value != param.f_target) { var opt = document.createElement("option"); opt.value = param.f_target; opt.innerHTML = opt.value; target_select.appendChild(opt); opt.selected = true; } } var opt = document.createElement("option"); opt.value = "_other"; opt.innerHTML = i18n("Other"); target_select.appendChild(opt); target_select.onchange = onTargetChanged; document.getElementById("f_href").focus(); document.getElementById("f_href").select(); }; function onOK() { var required = { "f_href": i18n("You must enter the URL where this link points to") }; for (var i in required) { var el = document.getElementById(i); if (!el.value) { alert(required[i]); el.focus(); return false; } } // pass data back to the calling window var fields = ["f_href", "f_title", "f_target" ]; var param = new Object(); for (var i in fields) { var id = fields[i]; var el = document.getElementById(id); param[id] = el.value; } if (param.f_target == "_other") param.f_target = document.getElementById("f_other_target").value; __dlg_close(param); return false; }; function onCancel() { __dlg_close(null); return false; }; html, body { background: ButtonFace; color: ButtonText; font: 11px Tahoma,Verdana,sans-serif; margin: 0px; padding: 0px; } body { padding: 5px; } table { font: 11px Tahoma,Verdana,sans-serif; } select, input, button { font: 11px Tahoma,Verdana,sans-serif; } button { width: 70px; } table .label { text-align: right; width: 8em; } .title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; border-bottom: 1px solid black; letter-spacing: 2px; } #buttons { margin-top: 1em; border-top: 1px solid #999; padding: 2px; text-align: right; } Insert/Modify Link URL: Title (tooltip): Target: None (use implicit) New window (_blank) Same frame (_self) Top frame (_top) OK Cancel

Wyszukiwarka

Podobne podstrony:
link
link
link
link DYM efekty video z dymem
40 97 Lower guide link remove & install
floating link
link (11)

więcej podobnych podstron