Skip to main content

Here's what a VPN can't protect you from (but you need to use it)

The abbreviation " VPN " has slowly become established among average Internet users, which is certainly good, but the problem is that people have started to see VPN as the ultimate solution to all problems.

Change the background in Blogger by clicking on the link

Change the background in Blogger by clicking on the link

So, with the help of Jquery, we can create a very simple widget for blog visitors with which they can change the background.

In the picture on the left, I took ordinary links as an example and only 3 colors, you can insert thumbnails and as many colors as you want. But you will need a little coding for that.

Let's begin.

1. Go to Template and save the existing template

2. Check the box next to: "Expand widget templates"

3. Find (Ctrl + F) in the template line: ]]></b:skin>

4. Before this line, add this code:

.bg1 {background: url(BG IMAGE URL) repeat-x; background-color: #FFFFFF;}
.bg2 {background: url(BG IMAGE URL) repeat-x; background-color: #5A2A00;}
.bg3 {background: url(BG IMAGE URL) repeat-x; background-color: #00345B;}

In this code, you can only change the colors and these are the numbers at the end (#FFFFFF).

5. Find the following: </head>

6. Before this line, copy this code:

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function(){ 

        $(&quot;li.one&quot;).click( function(){ $
        (&quot;body&quot;).removeClass(&#39;bg2 , bg3&#39;).addClass(&quot;bg1&quot;);
    });

    $(&quot;li.two&quot;).click( function(){ $
        (&quot;body&quot;).removeClass(&quot;bg1 , bg3&quot;).addClass(&quot;bg2&quot;);
    });

    $(&quot;li.three&quot;).click( function(){ $
        (&quot;body&quot;).removeClass(&quot;bg1 , bg2&quot;).addClass(&quot;bg3&quot;);
    }); 

});
</script>

Don't change anything here.

7. Now add this simple HTML code to your Widget or in some post etc.

<ul>
<li class="one"><a href="#">Red</a></li>
<li class="two"><a href="#">Brown</a></li>
<li class="three"><a href="#">Blue</a></li>
</ul>

Here you change the word at the end of the line, that is, enter the name of the color you entered in the first code.

If you do not understand:

If we are e.g. in the first code in the first line enter the color #FFFFFF then we will type in the first line

<li><ahref=<"#">White</a></li>

Because code #FFFFFF gives white color.

Comments

Popular this month

Facebook is introducing another new service

Facebook is preparing another novelty for us. This is the  " Listen With Friends " application that will soon appear on chats , and with it, you will be able to listen to music with the person you are corresponding with.

Interesting gadgets for less than $5 [2. part]

Due to the great interest in the article in which I presented several interesting gadgets that cost less than $ 5 , I decided to compile another list. Note :  all the products I listed below can be purchased on various sites, but I posted links to Aliexpress because I have bought a lot there and have the most experience.

Android TV Box - a guide to buying up to 30 euros

What is Android TV Box? This is a great solution if you want to add a " Smart " function to an existing TV . With this device, you can watch live TV online for free (later on), play games, upload all kinds of files, watch movies (from USB, over the internet, phone…), listen to songs, surf the internet, use social networks… or everything you can on your Android phone. It is usually a cube-shaped device (but it doesn't have to be) and has various inputs and outputs. It connects to the TV via an HDMI cable , but some also have an AV output over 3.5mm that goes to the familiar 3 cinches, so you can also connect to an older TV (even to SCART if you have an adapter). It is also standard for these devices to have WiFi , LAN port (RJ45), IR Remote , at least 2 USB ports , support for high definition video formats (these cheap ones often have 4K support), and usually come with a remote .

Android ROOT - programs and applications

I have already written several posts on how to root an Android device, so I decided to make one in which I will unite everything.

Serbia will soon have the strongest supercomputer in the Balkans!

By upgrading the "Paradox" supercomputer, Serbia will receive in the next few months the most powerful supercomputer in the Balkans, worth around one million euros! Today, the " Paradox " supercomputer has 1,100 processors and operates at seven teraflops, which is 7,000 billion operations per second. With the upgrade, the computer will have 5,000 processors and will work at 40 teraflops, or 40,000 billion operations per second. It can currently store 60 terabytes (60,000 gigabytes) of data.