Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

How to Make a Random Post on Blogger

How to make a random post on blogger. Tutorial blog this time will explain how I view the posts / articles randomly on Blogger.

This type of random post is called dynamic random post, because it looks like a slide. With a slide show, of course random post will also attract the attention of visitors.

For those of you who rarely update the blog, this widget may be quite useful. Because of all the articles in your blog will be displayed randomly using this widget.

That way, visitors who several times visited the blog, you can continue to read your articles the other, even if you have not added a new post though.

For those of you who want to try this dynamic random post, can directly follow the following tutorial.

Walking Text in Menu Bar

Maybe you have ever seen the text run which is on the menu bar.

This article is the answer to make walking text in blog. Well if you were interested to make the walking text, please read this article thoroughly.

Because the blogger template is divided into two: the classic and new template, then for how to make the text run will be different, so my discussion will be divided into two parts. However, I need to say, the example that I will give this result is not exactly like on this blog is the text runs from left-right direction, but I'll give an example text runs from left to right direction and there is a lag time between writing the tops with The second and subsequent writings.

Neon Lights Text

Creating text animation with effects of fluorescent light (Neon Lights Text)

This post is about the neon effect on text in which the text turns from left to right. So with the following script would look effects lit from left to right but only two or more of the characters are lit depend on your setting.

If interested in trying the effect of neon on this text, please copy the script below and then insert it into the html / javascript gadget or into the post,
Script can be seen below:

Circling Text Trail

How to make the circular text follow the mouse movement (Circling text trail)

How to make text follow a circular motion moving the mouse or known as "Circling text trail". The text is moving in a circle around the mouse pointer when the mouse is idle. Text to be displayed can be set as desired.

All you need do is to insert the script below into the gadget html / javascript.

Put Digg This Button in Your Blog

How to Put Digg This Button

This time we will discuss about a tutorial on how to install Digg This button on your website.

Digg has a tool where visitors can directly submit your articles to digg. This tool is called a Digg This Button.

Then how do I install this digg button on your website? Simply look at the script below.

There are 4 options that you can use.

Multiple Target Hyperlink

Link on a website or blog is generally used to provide a single link, whether it was an open target location or the target of open window.

Well, here we will modify hyperlink to open several new target window tabs in one link. So when users click the link it will open more than one tab with different address. I often see this technique in a website/blog with many advertisement.

Here is the code to make multiple target hyperlink:

Auto Hide Navbar Blogspot

What is meant Auto Hide Navbar here is the navbar congenital of Blogspot posted in every blog on blogspot.com with congenital standard template.

The function of this navbar to facilitate other bloggers to participate, share, reported abuse of the use of blogs (e.g. porn blogs, blogs that contain elements of rough, making a obscene, etc.) and search for the next blog, this means blog walking is recommended by Google.

Some of the blogs that we find by using a blog template from third parties, some of which remove congenital Blogger Navbar.

Make Random Text

How to make Random Text

How do I show random text? Here I will explain how to display random text by using JavaScript.

This script can be used for example to display the words of pearls or wise words to decorate your blog.

Just see the code below:

Refresh Menu for Blog

Creating a refresh menu on the blog

Refresh function is used to create a "refresher" page of blog or website. This refresh function similar to refresh the existing functionality in Internet browsers, the difference is that this function is made to work automatically, the user does not need to press the refresh button on the tool bar.
To make it enough to just put the code below:

HTML 5

About HTML 5 

HTML 5 that are now beginning to be implemented by some grade A browser will bring more than just a feature for page layout and format. Some of them are Canvas and Video.

Browser Detection

Browser Detection

Usually when we open a web page, there is a widget that shows information about web browsers we're using to open the page, complete with its version. Can we create the widget itself? Of course they can, by using a simple Javascript code, we can display information about the browser being used. Here is the code:

No Right Click


JavaScript Prevent Right Click

Add the following javascript code between the tags <head> and </ head> of your web page to disable right click. As an example see here.

Back and Forward Button


Creating Back and Forward with java script

On a web page we often see links navigation such as Back to return to the previous page and Forward to go to the page we've ever opened before.

You can create navigation links by using java script like the example below.

<a href="javascript:history.back(1)"> Back </ a>
<a href="javascript:history.forward(1)"> Forward </ a>

JavaScript Browser Vibration


JavaScript Browser Vibration

Want to make a surprise on your web visitors? Make the following HTML file. In this script there is javascript that works to make your website visitor's browser to vibrate.

Calling JavaScript Functions


Calling JavaScript Functions
To execute a function, we simply call upon the name of the function followed by an opening parenthesis, arguments (if any) and on the lid with a closing parenthesis.
Function_Name();

JavaScript Functions


JavaScript Functions

Function is a subprogram that allows us to run a group of instructions with a simple call to the function name of one or several parts in the body of a program. Subprogram form we call this function is very commonly used in many programming languages (of course with a slightly different way with each other). On the other way a function, also can call itself, is what we call the function recursively (but do not forget to put a special condition that the function can be stopped, if not endanger the sustainability of global programs).

JavaScript Event


JavaScript Event
Event is the action of the user who can produce interactivity, in fact events in JavaScript is a click of a mouse button (the only one action that can be set by the HTML). JavaScript allows to associate the event with some functions of methods such as passage of the mouse pointer over a particular zone, change the value, and so forth.

Bookmark With Link


How Make Bookmark with Link

You'll often find links like "Bookmark this site", which if we click the link it will directly go into the Favorites. By entering the site to your Favorites, then we no longer need to bother typing in the site name in Address Bar, but simply by clicking a website listed in your Favorites list.

To create a bookmark link, enter the following code between the tags <HEAD> and </ HEAD> on your web page:

JavaScript Parameters


Parameters of JavaScript Function

We can pass a parameter in a function, in the sense we give the value or variable name so that the function can be executed based on these parameters. At the moment we pass some parameters into the function, these parameters are separated by a comma, either at the time of declaration or at the time of the call.

See the example below: we will create a JavaScript program that displays a dialog box:

JavaScript Break Instruction


JavaScript Break Instruction

We can force the loop stops before it’s time for reasons that definite at the beginning of the loop. Break instruction allows to stop a loop (either for the for or while loop). How to use is such as continue instructions, namely the addition of conditional structure in order to stop the loop.