修改 JS Confirme alerta 提示框文字的简单实例
<! Docttype html> <html> <head lang = "en"> <meta charset = "utf-8"> <style> *{padding: 0; margem: 0;} html {altura: 100%; } corpo {font-size: 16px; Fonte-família: "Microsoft Yahei"; Altura: 100%; } H1, H2, H3 {Fonte-peso: mais leve; } a {decoração de texto: nenhum; } #selfwinsow {width: 60%; margem: 0 20%; Antecedentes: #FFF; Posição: fixo; topo: 35%; borda: 1px sólido #ccc; preenchimento: 0 2% 2% 2%; } #slefclose {width: 25px; Altura: 25px; Posição: Absoluto; direita: 1Rem; TOP: 0.4REM; Z-Index: 9999; Cursor: Ponteiro; } #slefclose :: após {posição: absoluto; Largura: 30px; Altura: 30px; Conteúdo: "×"; Size da fonte: 2.5rem; altura de linha: 30px; } #selfwinsow H2 {font-size: 1Rem; fundo de borda: 1px sólido #ccc; altura da linha: 100%; preenchimento: 1Rem 0; } #selinfo {font-size: 0.95remm; altura da linha: 2.1Rem; preenchimento: 0.5REM; } #SelfbtBox {Padding: 1Rem; margem: 0px automático; borda: 1px sólido #ccc; estouro: oculto; } .Selfbt {preenchimento: 0.8Rem 2%; Antecedentes: #323434; Cor: #FFF; flutuar: esquerda; altura da linha: 100%; Alinhamento de texto: centro; Cursor: Ponteiro; } .SelfbtDouble {Width: 46%; } .selfbtsingle {color: #fff; largura: 100%; preenchimento: 0.8Rem 0; } #SELHOK {Background: #323434; } .selftalkno {float: esquerda; Posição: relativa; topo: -5px; preenchimento: 4px 10px; Exibição: bloco embutido; margem-esquerda: 5px; Cor: #000; } .selftalkok {float: certo; Posição: relativa; topo: -5px; Exibição: bloco embutido; Margem-direita: 5px; preenchimento: 4px 10px; Cor: #FFF; } #Selfno, #linkTO2 {Background: #eeeeee; Cor: #555555} #Selfback {Width: 100%; Antecedentes: RGBA (0,0,0, .6); } #selfInput {Display: Block; largura: 100%; preenchimento: 0.5rem 0; borda: 1px sólido #eee; Radio de fronteira: 3px; Margin-Bottom: 1Rem; TEXT-INDENT: 0.6REM} #SelfInput: Focus {Border: 1px Solid #087690; } </style> <title> </title> <script src = "http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"> </script> <!-<script type = "text/javascript" src = "SelfWindow.js"> <n-<script type = "text/javascript" src = "SelfWindow.js"> <! /**selfWindow组建,主要是用于模拟移动网站的alert(),confirm()窗口点解某一按钮跳转到某一个页面的效果,*因为给予移动web,所以没有兼容低版本ie*调用方法:var win = new SelfWinsow({* types : "confirm",//这里可以选择的参数有,alert,confirm,confirm2,link* slefTitle : "香送网温馨提示",//弹窗标题* selfInfo : "Are you really to remove this tool?",//弹窗信息* selfOk : "Sim", // 自定义确定按钮文字* selfno: "não", // 自定义否认按钮文字* retorno de chamada: fn, // 当 Tipos 为 Confirmar, confirmar2 或者是 Talk 时的回调函数 , Confirm SFORTES DE SINGRAÇÃO DO TIPO: == NULL) {this.Selfalert (); this.SelfMobileTalk (); id = 'Sleftitle'> "+_ this.opts.sleftitle+" <// h2> <p id = 'Selinfo'> "+_ this.opts.selfinfo+" <// p> <div id = 'selfok' class = 'selfbt Selftouble'> "+_ this.opts.Selfok" " selfbtdouble '> "+_ this.opts.selfno+" <// div> <// div> "; this.createmask (html); this.selfEvents ();}, // alerta 窗口 selfalert: function () {var _this = ton; var html =" <dd idan =''winswins '{var _this = ton; id = 'Sleftitle'> "+_ this.opts.sleftitle+" <// h2> <p id = 'selinfo'> "+_ this.opts.selfinfo+" <// p> <div id = 'selfok' class = 'selfbtsingle'> "+_ this.opts.Selfok; this.createmask (html); id = 'Selinfo'> "+_ this.opts.selfinfo+" <// p> <div id = 'selfok' class = 'selfbt selfbtsingle'> "+_ this.opts.selfok+" <// div> <// div> "; this.createmask (html); thelevents (); var html = "<div id = 'selfwinsow'> <div id = 'sLefclose'> <// div> <h2 id = 'sleftitle'>"+_ this.opts.sleftitle+"<// h2> <p id = 'selinfo'>" _i.Optts.Selfinfo+" href = '' "+_ this.opts.linkto1+" 'class =' selfbt selfbtDouble '> "+_ this.opts.selfok+" <// a> <a id =' linkto2 'href =' "+_ this.opts.linkTO2+" 'Class =' SelfBt Autobtdouble '> "+_ this.opts.selfno+" <// div> <// div> "; this.createmask (html); this.selfEvents ();}, selfMobileTalk: function () {var _this = ton; var html =" <div id =' selfwinsw ' estilo = 'largura: 100%; margem: 0px; topo: 0; esquerda: 0; preenchimento: 0; class = 'selftalkno'> "+_ this.opts.selfno+" <// span> "+_ this.opts.sleftitle+" <b id = 'selfok' style = 'background: #fff; cor:#ff0028; cursor: ponte; Estilo = Largura: 90%; Selfback.style.backgroundcolor = "Eee" TRUE; _This.SelfRemoveback (); Document.RemoveEventListe ('Click', Selfokfun, False); = "Selfback"; }, // 关闭按钮事件 slefclose: function () {var _This = this; função () {}; if (el.id == "SelfNo" || el.TagName == "img") {if (_this.opts.callback) {_This.Opts.Callback = function () {}; tente {var selfback = document.getElementById ('selfback') document.body.removechild (selfback); } </script> <Script> window.onload = function () {var ORD1 = Document.getElementById ("rd1"); function (objText) { /*if (navegador == 'Netscape') {if (objText.Indexof ("texttarea")> -1) {return objText.value; objtext.Value; // alerta (autoconfiança); função (e, tipo, destino) {e = e || window.e; Configurações: "Seja incorreto, e você continuará? 'Btn') {var text = getText (Target); Callback: function () {}}); if (E.ID == 'RD1') {Target.inneriext = ''; SelfWinsow (Sleftitle: "Dicas de opção para o usuário", Tipos: "Alerta", Selfinfo: Tipo de Configurações == "String"? 'Clique', otext); id = "rd2" form = "btn" type = "radio" value = "22222" name = "radio"> oferta (s) alternativa (s): </section> <seção style = "float: esquerda; margem: 10px 10px"> <textacea id = "text" form = "btn" cols = "30" 3s) <"7" 7 "7" 7 "7. <Footer style = "Limpar: ambos; float: direita; margem-direita: 10%;"> <input id = "btn" name = "btn" type = "submit" value = "next"> </do Footer> </body> </html>以上这篇修改 JS Confirme alerta 提示框文字的简单实例就是小编分享给大家的全部内容了 , 希望能给大家一个参考 , 也希望大家多多支持武林网。