Some time you need to set a image as background of a HTML table The below HTML code will show you how you can set an image as a background of a table.
We can contain image backgrounds, colored backgrounds, borders of different sizes, and an unlimited number of rows and columns.
change the code acording to your need.
We can contain image backgrounds, colored backgrounds, borders of different sizes, and an unlimited number of rows and columns.
<TABLE BORDER="0" CELLPADDING="4" ALIGN="Center" WIDTH="50%">
<TR>
<TD BACKGROUND="yourbgimagepath.gif" WIDTH="50%"></TD>
<TD BGCOLOR="#ffffffff"></TD>
</TR>
</TABLE>
<TR>
<TD BACKGROUND="yourbgimagepath.gif" WIDTH="50%"></TD>
<TD BGCOLOR="#ffffffff"></TD>
</TR>
</TABLE>
change the code acording to your need.
If you want to redirect your visitors to a new page, then by using this HTML redirect code you can do that.
By Placing the following HTML redirect code between the <HEAD> and </HEAD> tags of your HTML code you can redirect visitors to a new page.
<meta HTTP-EQUIV="REFRESH"
content="0;
url=http://www.yourdomain.com/index.html">
Note: don't forget to replace yourdomain.com with your domain name.
In this tip i will tell you a way to open a new window when someone leave a web page, this code may be what you're looking for.We can use <body> Tag onUnload event for this .
This below HTML code will open the web page which you specify as soon as you leave the original web page.
This below HTML code will open the web page which you specify as soon as you leave the original web page.
<body onUnload=”window.open('http://www.domain.com'); self.blur();”>
Copy paste this code in body tag of your page and replace www.usetricks.com with your desire page url.
onUnload=”window.open('http://www.usetricks.com');
self.blur();”