บทความ


Disable Do Not Allow Copy Data On Page with Javascript

รูปภาพ
➤ Javascript   <script> $(document).ready(function(){          disableSelection(document.body);     });     function disableSelection(target){         $(function() {              $(this).bind("contextmenu", function(e) {                  e.preventDefault();              });          });          if (typeof target.onselectstart!="undefined") //For IE               target.onselectstart=function(){return false}          else if (typeof target.style.MozUserSelect!="undefined") //For Firefox               target.style.MozUserSelect="none"          else //All other route (For Opera)               target.onmousedown=function(){return false}          target.style.cursor = "default"; </script>

วิธีใส่ HTML เลขยกกำลัง Superscripts และตัวห้อย Subscripts สูตรทางคณิตศาสตร์

รูปภาพ
➤ HTML Coding ตัวเลขยกกำลัง (Superscripts) เช่น 2 2 HTML Code: 2<sup>2</sup>  ตัวห้อย (Subscripts ) เช่น 2 2 HTML Code: 2 < sub > 2 < / sub >

CSS Cursor Property for HTML Coding

รูปภาพ
alias all-scroll auto cell context-menu col-resize copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize ns-resize nw-resize nwse-resize no-drop none not-allowed pointer progress row-resize s-resize se-resize sw-resize text url w-resize wait zoom-in zoom-out ➤ CSS <style> .alias {cursor: alias;} .all-scroll {cursor: all-scroll;} .auto {cursor: auto;} .cell {cursor: cell;} .context-menu {cursor: context-menu;} .col-resize {cursor: col-resize;} .copy {cursor: copy;} .crosshair {cursor: crosshair;} .default {cursor: default;} .e-resize {cursor: e-resize;} .ew-resize {cursor: ew-resize;} .grab {cursor: -webkit-grab; cursor: grab;} .grabbing {cursor: -webkit-grabbing; cursor: grabbing;} .help {cursor: help;} .move {cursor: move;} .n-resize {cursor: n-resize;} .ne-resize {cursor: ne-resize;} .nesw-resize {cursor: nesw-resize;} .ns-resize {cursor: ns-resize;} .nw-resize {cursor: nw-resize;} .nwse-resi

Disable Right Mouse Click HTML Code with Javascript

รูปภาพ
➤ Javascript <!-- Ref: Disable right mouse click html code --> <script type='text/javascript' src='http://code.jquery.com/jquery-1.4.4.min.js'></script> <script> <!-- Function: Disable right mouse click html code --> $(function() {         $(this).bind("contextmenu", function(e) {             e.preventDefault();         });     }); </script> ➤ HTML Coding <html> <head> <!-- Ref: Disable right mouse click html code --> <script type='text/javascript' src='http://code.jquery.com/jquery-1.4.4.min.js'></script> <script> <!-- Function: Disable right mouse click html code --> $(function() {         $(this).bind("contextmenu", function(e) {             e.preventDefault();         });     }); </script>   <body> </body> </html>

Iframe Embed Youtube Playlist Autoplay

รูปภาพ
➤ HTML Coding   <iframe allowfullscreen='' frameborder='0' height='255' src='//www.youtube.com/embed/DTFOvTPIYGs?rel=0&amp;autoplay=1&amp;loop=1&amp;playlist=DTFOvTPIYGs' width='400'></iframe>