This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

Posts Tagged ‘Add new tag’


Page 1 of 11

Adding a draggable div along with the cursor using simple javascript

In this tutorial we can see how to add a draggable div along with the cursor using simple javascript. Only some simple javascript included and you can just copy and paste it in to a webpage you want the draggable content to... (Continue reading)

Tagged with:         

Expand and collapse toggle div using jquery

This is a very simple tutorial on how to show and hide a division tag or Expand and collapse toggle div using simple jquery. <script src=”http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js” type=”text/javascript”></script> <script type=”text/javascript”> $(document).ready(function(){ $(”#butShowHideSlow”).click(function () { $(”#divShowHideSlow”).toggle(”slow”); }); }); </script> <button id=”butShowHideSlow”>Click Me</button> <div style=”width:300px;height:47px; border: solid 1px black;background-color:white;text-align:center;” id=”divShowHideSlow”>Div that hide and show... (Continue reading)

Tagged with:         

Shell Scripts Part 2

Create a small shell script, testVar2.sh: testVar2.sh #!/bin/sh echo “testVar is: $testVar” testVar=”my shell script” echo “testVar is: $testVar” Now run the script: $ ./testVar2.sh testVar is: testVar is: my shell script testVar hasn’t been set to any value, so it’s blank. Then we give it a value, and it... (Continue reading)

Tagged with:         

Disabling right click menu using javascript Enhanced Version

This is an enhanced version of how to disable right click menu from a webpage. Simple just copy and paste this code <script LANGUAGE="JavaScript"> var message="Sorry this function is disabled." function clickIE4(){ if(event.button==2){ alert(message) return false}} function clickNS4(e){ if(document.layers||document.getElementById&&!document.all){ if(e.which==2||e.which==3){ alert(message) return false}}} function disableselect(e){ return false} function reEnable(){ return true} document.onselectstart=new Function("return false") if(window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable} if(document.layers){ document.captureEvents(Event.MOUSEDOWN) document.onmousedown=clickNS4} else if(document.all&&!document.getElementById){ document.onmousedown=clickIE4} document.oncontextmenu=new Function("alert(message);return false") </script> Enjoy!!!!!!!!!!!!! VN:F... (Continue reading)

Tagged with:         

Page 1 of 11