Possible Duplicate:
Take a screenshot of a webpage with javascript?
I hope to export the content in DIV to a image programmatically? How can I do? which code can do that ,server code or client code? Thanks!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div id="a">
Content to export to image
</div>
<div id="b">
Normal text
</div>
</body>
</html>