View Single Post
Old 10-11-2007, 12:21 PM   #5 (permalink)
meshi
The Contributor
Upcoming Programmer 
 
meshi's Avatar
 
Join Date: Oct 2007
Posts: 44
Thanks: 0
meshi is on a distinguished road
Default

i did ur advice but it has no display on email field..i change my JS.and what i did is this one
Code:
function addRow(con,pos,tel,email)
{
	var tbody=document.getElementById('contact').getElementsByTagName("TBODY")[0];
	var row = document.createElement("TR");
	var td1 = document.createElement("TD");td1.appendChild(document.createTextNode(con));
	var td2 = document.createElement("TD");td2.appendChild(document.createTextNode(pos));
	var td3 = document.createElement("TD");td3.appendChild (document.createTextNode(tel));
	var td4 = document.createElement("TD");td4.appendChild(document.createTextNode(email));
	row.appendChild(td1);row.appendChild(td2);row.appendChild(td3);row.appendChild(td4);tbody.appendChild(row);
}
function applystyle(id)
{
	if(document.getElementsByTagName)
{
	var table = document.getElementById(id);
	var col = table.getElementsByTagName("TD");
	for(i =4; i < col.length; i++)
	{
		if (((i+1)%4)==0)
			col[i].className = "table-list-entry1 notaction";
		else       
			col[i].className = "table-list-entry1";       
	}
}
}
my problem now is how to put mailto in the email field?forget the span thing i only want to put mailto..how would i do that?
meshi is offline  
Reply With Quote