Unelectable HTML Text on browser

The following CSS can turn simple text which is selected by double clicking or dragging on it to unselectable text.


.test {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}

Advertisements

Jquery set Cookie and Check

In this we set the cookie and then check it available or not. If available then what we want to do next to that.  By this we check the users comes again or not. On the basis of that we have several option to what to show them.

Requirement:

–       Jquery

–       Jquery Cookie Function

Code: 

// global variable to check form hide or show
var opt;
// function that create the cookie on form submission when it is shown
show = function(){
// create the cookie name opt with value show1 and expire after 7 days
opt = jQuery.cookie("opt", "show1", { expire: 7, path: '/' });
}
// function that checks the cookie is set or not
function getCookie(opt) {
// set the opt value to variable
var nameEQ = opt + "=";
// split cookies
var ca = document.cookie.split(';');
// check all cookies one by one
for(var i=0;i < ca.length;i++) {
var c = ca[i];
// check the cookie value is not null
while (c.charAt(0)==' '){
c = c.substring(1,c.length);
// find the cookie with the condition we sets
if (c=='opt=show1'){
// after finding cookie what we want to do we set here, here we get the div and set to null
document.getElementById('WFItem96692').innerHTML="";
// then set the value what we want to show
document.getElementById('WFItem96692').innerHTML="new text";
}
}
// return data
if (c.indexOf(nameEQ) == 0)
return c.substring(nameEQ.length,nameEQ.length + 4);
}
}

Windows 8 (System Requirement)

Windows 8 slowly is progressing towards its final release. Windows 8 Developer Preview is already available for download and I will try it soon. Those who were anxiously waiting for Windows 8 can now test it on their systems and I am one of them. But the question is; what is Windows 8 minimum system requirement?

Windows-8 hardware requirement

Well this has been into discussion for a long time whether Windows 8 would be compatible for currently Windows 7 running machines? Or, even more what will be specific hardware requirement for Windows 8. If you think you have to upgrade to run Windows 8 then you are wrong. If you have the following minimum hardware then you can easily run Windows 8 on your system.

Windows 8 System Requirement

  • 1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
  • 1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)
  • 16 GB available hard disk space (32-bit) or 20 GB (64-bit)
  • DirectX 9 graphics device with WDDM 1.0 or higher driver (Not absolutely necessary; only required for Aero)
  • Multi-touch display for using the touch based functions

So, if you have the above mentioned hardware then you can smoothly run Windows 8 on your system.

Via ItechMag