If you ever visited my blog on the day it’s reaching a big view (24000 , 25000) you will get a javascript alert saying you are the 24000th visitor like this :
The above image shows that the blog alerted when the user was the 23000 visitor. It will also change the background to this. Want to have this feature on your blog ??? You are in the right place.
Requirements
One Stats Widget (Only one).
Add this code before if you haven’t yet added a script src of JqueryLibrary.
DEMO You might have seen a 404 page on different sites such as Google,Yahoo etc… You can make this on your website too if you are using Apache Server. The default 404 page will be like this :
It’s just simple plain HTML404 page and it’s ugly. To Change the default 404 page Do as below.
Go to your site’s folder.
Create a file named .htaccess (just .htaccess no name only file extension).
If you want to select a particular parent div. Then you should use parents() function. If you use parent() function It won’t work. For Example: index.html
Ever wanted to change the cursor in your web page ? Well you can change it in CSS. There is a way of doing that, the cursor propery. There is a way in CSS to change the cursor to pointer,cursor,resize,normal etc….. This table show what will be the cursor when the value of cursor propertychanges as following.
We have two files, index.html which contains the HTML code and texteditor.js which contains the jQuery code. You should include the texteditor.js in index.html.index.html
You might wanted to Show/Hide element based on the visibility of the element. If the visibility is block , hide the element and if visibility is none, show the element. You can do this without the if statement. You can do this in just a line of code. For example : if we want to toggle the visibility of a div with the id sh.
$("#sh").toggle();
If the div#sh is hidden the code above code will make it visible and if it is visible the code will hide the div #sh.
When you open your blog you will be redirected to the country based domain of your blog. This will affect your blog badly. For Example:
The social stats – or Facebook Likes, Google +1s and Tweet counts – for your blog stories may be diluted as the URLs for the same story become different from different visitors.
You will have a similar problem if you are using an external commenting platform like Disqus or Facebook Comments.
To prevent this you need to add this code to your Template. Go to Blogger -> Template -> EDIT HTML