Home » » Code lấy Avatar của nick Yahoo

Code lấy Avatar của nick Yahoo

Written By 1 on Thứ Sáu, 17 tháng 10, 2008 | 20:08

image
Bạn copy đoạn code này vào notepad , lưu lại với phần đuôi mở rộng là html . Sau đó up lên một host nào đó rồi chèn iframe vào blog của mình .
<center><script> function grab() { id = document.getElementById("yahoo_id").value; document.getElementById("result").innerHTML = "<img src='http://img.msg.yahoo.com/avatar.php?yids=" + id + "&format=png'>"; return false; } </script> <h1>Lấy Avatar </h1><div><form onSubmit="return grab()">Yahoo! ID : <input id='yahoo_id' type="text"> <input type=submit value="Lấy Avatar"></form></div><div id="result"></div></center>

Lưu ý : nếu bạn không thích làm như vậy thì hãy dùng đoạn code này và dán vào blog

<center><iframe src="http://ngoisaoxanh2605.googlepages.com/lay_avatar.html" frameborder="0" width="300" height="450"></iframe></center>

Ngoài ra còn một cách để lấy trực tiếp avatar của bạn chat là bạn dán dòng này vào trình duyệt http://img.msg.yahoo.com/avatar.php?yids=nickyahoo, trong đó nickyahoo là nick mà bạn muốn lấy avatar

0 nhận xét:

Đăng nhận xét