Apr
11th

JavaScript onClick Image Swap

Today, I will teach you how to write JavaScript and HTML so that when visitors come to your site click on the image button, then the image button will change to a new image button. When the visitor clicks on the other image button, the original image button will reappear.

Here’s the code for creating an onclick image swap effect, just follow it step by step:

(more…)

Apr
3rd

Marquee & Blink Tag

Files under HTML & CSS | Leave a Comment

<MARQUEE> and <BLINK> are 2 browser specific tags. However, these tags are displayed only by certain browsers only.

<BLINK>: Mozilla Firefox

<MARQUEE>: Internet Explorer

BLINK Tag

This tag can be supppored only by Netscape. IE ignores this tag. So if you are using Internet Explorer you wouldn’t see the blinking text below.

<BLINK>Blinking Text</BLINK>

Advantage: It is a standard HTML tag which is actually easiest way to grab visitors attention to something you think that is important in your page.

(more…)

Mar
20th

Difference Between http:// and https://

Today, I will share with you about the very basic and general information for the differences between http:// and https://. HTTP stands for HyperText Transport Protocol, which is for information to be passed back and forth between web servers and clients.

Difference Between http and https

http_https

As in known, HTTPS session normally runs on TCP port 443, but HTTP which runs on port 80.

(more…)

Mar
6th

COLSPAN and ROWSPAN Tutorial

Files under HTML & CSS | Leave a Comment

Every webmaster also know that table cells can be spanned more than one column or row. The attribute of ROWSPAN is used to make cell span multiple rows. If let say ROWSPAN=”3″ it will only span a column vertically across three rows.

<table border=”1″ cellspacing=”2″ cellpadding=”2″ width=”200px”>
<tbody>
<tr>

<td>Codebasic.net</td>
<td rowspan=”2″>spanned</td>
<td>myLengLui.com</td>
</tr>
<tr>
<td>
imDavidLee.com</td>
<td>LifeTechie.com</td>
</tr>
<tr>

<td>LimPek.com</td>
<td>innoDesigner.com</td>
<td>PenangBlogger.com</td>
</tr>
</tbody></table>
Codebasic.net spanned myLengLui.com
imDavidLee.com LifeTechie.com
LimPek.com innoDesigner.com PenangBlogger.com

The COLSPAN attribute is to make a cell span multiple columns. It spans the columns and will make your table cell span horizontally.

(more…)

Feb
5th

How To Find Length of String In Javascript?

Files under Javascript | Leave a Comment

While working with strings, most probably we will need to find a length of string, count of charachers and etc. In JavaScript we can make use of the string related function as the [variable].length

So, here we go!! I decided to share some really basic source code. Here’s the example shows in an alert dialog box with the length of the string “My Name is David”

var mystring = “My Name is David”;
alert( mystring.length );

(more…)