Slide HTML Title with JavaScript

Slide HTML Title with JavaScript

Slide HTML Title with JavaScript is a simple Javascript function that made for slide your HTML title. So, when your script opened by browser, the title will slide.

Slide HTML Title with JavaScript only need JavaScript code, it even dont need HTML title tag to be edited.

Slide HTML Title with JavaScript :

message = "Website Title Here";//set your title here
position = 0;
delay = 500;//in millisecond
function slide_title() {
	document.title = message.substring(position, message.length) + message.substring(0, position); position++;
	if (position > message.length) position = 0
}
window.setInterval("slide_title()",delay);

Just copy Slide HTML Title with JavaScript into your HTML page inside script tag, then the code should be working.

Hope this Slide HTML Title with JavaScript can be usefull for you

http://septiadi.com/2011/04/19/slide-html-title-with-javascript/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: