ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "jQuery(function($){$('#ctl00_cphContent_cd_cep').mask('99999-999',{placeholder:' '});});", true);
Chamando Javascript via C#
ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "jQuery(function($){$('#ctl00_cphContent_cd_cep').mask('99999-999',{placeholder:' '});});", true);
Postado por ANDERSON BUENO Marcadores: c#, javascript às 21:55 0 comentários
C# executando Javascript in runtime
ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "motherfucking_JS_Function_here();", true);
Postado por ANDERSON BUENO Marcadores: c#, javascript às 12:07 0 comentários
Masked Input Plugin
First, include the jQuery and masked input javascript files.
jquery.maskedinput.js
Next, call the mask function for those items you wish to have masked.
$("#date").mask("99/99/9999");
$("#phone").mask("(999) 999-9999");
$("#tin").mask("99-9999999");
$("#ssn").mask("999-99-9999");
});
$("#product").mask("99/99/9999",{placeholder:" "});
});
$("#product").mask("99/99/9999",{completed:function(){alert("You typed the following: "+this.val());}});
});
$.mask.definitions['~']='[+-]';
$("#eyescript").mask("~9.99 ~9.99 999");
});
http://digitalbush.com/projects/masked-input-plugin/
Postado por ANDERSON BUENO Marcadores: javascript, jquery às 10:51 0 comentários
Propriedades CSS x JavaScript
| Propriedade - CSS | Referência - JavaScript |
|---|---|
| background | background |
| background-attachment | backgroundAttachment |
| background-color | backgroundColor |
| background-image | backgroundImage |
| background-position | backgroundPosition |
| background-repeat | backgroundRepeat |
| border | border |
| border-bottom | borderBottom |
| border-bottom-color | borderBottomColor |
| border-bottom-style | borderBottomStyle |
| border-bottom-width | borderBottomWidth |
| border-color | borderColor |
| border-left | borderLeft |
| border-left-color | borderLeftColor |
| border-left-style | borderLeftStyle |
| border-left-width | borderLeftWidth |
| border-right | borderRight |
| border-right-color | borderRightColor |
| border-right-style | borderRightStyle |
| border-right-width | borderRightWidth |
| border-style | borderStyle |
| border-top | borderTop |
| border-top-color | borderTopColor |
| border-top-style | borderTopStyle |
| border-top-width | borderTopWidth |
| border-width | borderWidth |
| clear | clear |
| clip | clip |
| color | color |
| cursor | cursor |
| display | display |
| filter | filter |
| font | font |
| font-family | fontFamily |
| font-size | fontSize |
| font-variant | fontVariant |
| font-weight | fontWeight |
| height | height |
| left | left |
| letter-spacing | letterSpacing |
| line-height | lineHeight |
| list-style | listStyle |
| list-style-image | listStyleImage |
| list-style-position | listStylePosition |
| list-style-type | listStyleType |
| margin | margin |
| margin-bottom | marginBottom |
| margin-left | marginLeft |
| margin-right | marginRight |
| margin-top | marginTop |
| overflow | overflow |
| padding | padding |
| padding-bottom | paddingBottom |
| padding-left | paddingLeft |
| padding-right | paddingRight |
| padding-top | paddingTop |
| page-break-after | pageBreakAfter |
| page-break-before | pageBreakBefore |
| position | position |
| float | styleFloat |
| text-align | textAlign |
| text-decoration | textDecoration |
| text-decoration: blink | textDecorationBlink |
| text-decoration: line-through | textDecorationLineThrough |
| text-decoration: none | textDecorationNone |
| text-decoration: overline | textDecorationOverline |
| text-decoration: underline | textDecorationUnderline |
| text-indent | textIndent |
| text-transform | textTransform |
| top | top |
| vertical-align | verticalAlign |
| visibility | visibility |
| width | width |
| z-index | zIndex |
Postado por ANDERSON BUENO Marcadores: css, javascript às 17:02 0 comentários
Plug Ins para sites
tag para adicionar no msn: <a target="_blank"
href="msnim:add?contact=CONTATO@MSN.COM">
tag para falar no skype: <a href="skype:LOGINDOSKYPE?call">
imagem de status do skype: http://mystatus.skype.com/balloon/andersonbueno81
Postado por ANDERSON BUENO Marcadores: javascript às 19:36 0 comentários