Tạo text hình trái tim đẹp cho SMS, Facebook, Blog
Chủ Nhật, 19 tháng 1, 2014
function createHeart(sourceId, resultId) {
objSource = window.document.getElementById(sourceId);
objResult = window.document.getElementById(resultId);
if(objSource.value.length == 0) {
alert("Bạn chưa nhập đoạn text cần tạo hình trái tim vào ô trống!");
return false;
}
string = objSource.value;
heart = "";
heart += "_________" + partString(string, 8) + "____________" + partString(string,
Tags:
Thủ thuật
Comments[ 0 ]
Đăng nhận xét