RSS

Category Archives: Others

All about others

How to Disable Text Selection on Your Website- Restrict Users from Copying Your WEB Content

So the question is, how to disable text selection ? So lets learn about some different scenarios of preventing pages from being copied on your websites and blogs-

Few reasons i can think of restricting people from copying your content-
  • Fist and foremost benefit, prevent copying text
  • You can prevent downloading of images on your blog or website
  • Restrict people from viewing your source code via right click menu
  • Restricts saving pages and post via right click feature

 

  1. Disable Right Click Menu on Your Website-

This is the very simple procedure that helps you in securing your text from being copied, the problem with this feature is, it disables right menu on the other hand the same menu help’s you in featuring many other things on your site, this right click menu allowing your visitors to easily access your blog. This feature can be very useful on some pages like privacy policy, about us or on pages where your don’t need to use right click menu, mmmm……. funny! but true people on web also copying these pages from your site because the are not creative the way you are, so here you should have a disabled right click feature on some pages.

Note-  Disabling right click menu does not guarantee you to beat these content scrappers cause they still have alternative options to do same things with your pages. even though right click menu is the most common way of copying your content in this scenario, Implement this feature on sensitive area of your site only cause a disabled menu going to be a annoying experience for your visitors. So if you are implementing this feature on sensitive pages only than its going to be fruitful for you.

 

How it Works?-
This is possible using an easy process of implementing a script that allows you to disable right click feature on your blog. This script blocks right click menu when your visitors on these pages try to use it, a user friendly message shows (You can customize your message)
Steps to implement the script-
You are require to install an easy script in body tag of your website or on specific posts or pages where you want privacy and security. This script go just right before </body> tag on your website.
Go to HTML of your website and add the script just before the closing body tag </body>
<script type=”text/javascript”>
var message=”Right Click Menu is Not Allowed!“;
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&amp;&amp;!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&amp;&amp;!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function(“alert(message);return false&quot;)
</script>
||| – Customize Message
Here you can make changes with your message to your visitor by replacing “Right Click Menu is Not Allowed!
Credits-  The credits of serving this utility “The right click disabled menu” goes to designers at DynamicDrive.com
How to Implement the script on Specific pages And URLs- Read This

2. Disable Text Selection –

The above given way of disabling right click menu could harm reputation of website, cause its going to be an irritating and annoying experience for your visitors, implementing the feature some pages helps you in taking care of sensitive content from content scrappers however its not a best choice if you are planning to implement this on your whole-

How to disable Text Selection

Your blog should not be irritating and buggy experience for you visitors, this is the reason am popped up for the another scenario of saving you content from being copied, so here is the best alternative choice available for you “Disable Text Selection

Steps-

Go to HTML body of your site via template from edit layout option-

and paste the code just before the </head> given below-

<script type=”text/javascript”>

/***********************************************
* Prevent Text Selection code- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function disableSelection(target){
if (typeof target.onselectstart!=”undefined”) //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!=”undefined”) //Firefox route
target.style.MozUserSelect=”none”
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = “default”
}

disableSelection(document.body)

</script>

||| – document.body = By customizing this code you can specify the elements for restriction, the default code will help you restricting users from copying your content site wide but if you wish to make it on specific location, portion or only some part of you content you can do this by customizing-

Here you need to replace this with

document.getElementById(“[Division Id]“)

[Division Id] give reference to div ID here

 

i.e: Assume, the div you want to select for restriction is

 

<div id=”Paragraph“>
<p>Put the text that you wish to disable here</p>
<img src=”DisableImage.jpg” alt=”Text Selection”/>
</div>

Reference would be-

document.getElementById(“Paragraph“)
Advertisements
 
27 Comments

Posted by on July 4, 2013 in Others

 

Tutorial: Make your laptop battery last longer in Windows 8

Tutorial: Make your laptop battery last longer in Windows 8

techradar |10 hrs ago |Posted By: Naman Bhati

Tutorial: Make your laptop battery last longer in Windows 8

Windows 8 is a perfect match for the new breed of touchscreen laptops thanks to its touch-friendly interface.

This means you’ll be using your mobile device for longer than ever, and needing to charge it more frequently too.

Improvements in internal design and advances in technology mean modern mobile devices are blessed with batteries that can last the length of a working day and beyond in moderate use, but if you’re still having to charge up more frequently than you’d like, Windows 8 has lots of settings and tools that can help make its power go further.

  • 50 Windows 8 tips, tricks and secrets

These options are easy to set up and configure, and you’ll see a big difference in how long your device lasts between charges.

Although we’re using Windows 8 here, there are similar settings available in Windows 7, Vista and XP as well, so you can use these tips to extend the life of an older laptop battery too. Let’s get started!

Step-by-step: Boost your battery life

1. Check your battery life

step 1

Windows 8 makes it easy to keep an eye on your battery, no matter which part of the OS you’re using. The first place to look is the Lock screen, which displays your remaining charge along with the time and date. If you’re using the Start screen, you can see the battery status by flicking the right-hand side of the screen to access the Charms bar. If you’re on the desktop, you can see it in the Taskbar.

2. Adjust screen brightness

step 2

The screens of mobile devices use a lot of power, so one quick way to prolong the life of your battery is to turn the brightness level of the screen down. To do this, bring up the Charms bar and select the ‘Settings’ charm. Click or touch ‘Screen’ and a draggable bar appears, where you can quickly adjust the brightness of the screen. This is also handy if you’re working in low light levels.

3. Adjust Center settings

step 3

Windows Mobility Center is designed to make it easy to change computer settings when travelling, and is a great tool for optimising Windows 8 devices. To get to it, type Mobility into the Start screen and select ‘Settings’. Click on ‘Windows Mobility Center’ to open up the program. From here you can change a number of settings that will help prolong your device’s battery life.

4. Mute the volume

step 4

It might not be the most obvious thing to do, but you can make a big difference to the battery life of your laptop or tablet if you lower – or, even better, completely mute – the volume of its speakers when you’re not listening to music or watching a video. This means that precious battery power won’t be used up powering the speaker and pumping out sounds when you don’t need it to.

5. Change the power settings

step 5

The Windows Mobility Center lets you change your laptop’s power settings quickly and easily. The default choices are ‘Balanced’, ‘Power saver’ and ‘High performance’. ‘Power saver’ tweaks the settings for a longer battery life, but at a slight price when it comes to your device’s performance. The ‘Balanced’ plan lowers performance only when you won’t notice the difference.

6. Advanced power settings

step 6

You can tweak the power settings by going to the Start screen and typing in power. Select ‘Settings’ and then ‘Choose a power plan’. Select the power plan you want to edit, then select ‘Change plan settings’. You can then alter various settings, such as how long it takes for the screen to dim when not in use, or how long it takes for the laptop to go to sleep.

7. Create your own power plan

step 7

From the Power Options window you opened in step 6, you can also create a new power plan to suit your specific needs. Select ‘Create a power plan’ on the left-hand side of the window, then select a power plan to use as the basis of your new one. Give your new plan a name, then select ‘Next’. Now you can adjust the settings to your liking. Once you’ve finished, click or tap ‘Create’.

8. More advanced settings

step 8

You can access even more advanced power settings if you’re confident drilling down further into Windows 8. From the Power Options window, click or tap ‘Change plan settings’ next to a plan, then select ‘Change advanced power settings’. From here you can change settings that determine when to turn off your hard drive, how USB ports are used and much more.

9. Turn off wireless

step 9

If you’re using your device away from a wireless network, you can turn Wi-Fi off to save your battery power – there’s no point in having your laptop hunt for a network that isn’t there. Bring up the Charms bar in Windows 8 by swiping from the right-hand side of the screen. Now click ‘Settings’, then ‘Change PC settings’. Click or tap ‘Wireless’ and then change ‘Wi-Fi’ to ‘Off’.

10. Enjoy a better battery life!

step 10

Now that you’ve followed these steps, you should see a noticeable improvement in your battery life. You don’t need to do each step to see a benefit, and be sensible with them; having your Wi-Fi switched off is inconvenient when you want to go online, and a pitch-black screen will mean fewer charges, but will lead to eye strain. Find the right balance and you’ll be happy

 
Leave a comment

Posted by on May 20, 2013 in Others

 

Tags: ,

My Brother

 
Comments Off on My Brother

Posted by on December 22, 2012 in Others

 

Tags: