codefirst

http://www.codeproject.com/Articles/167763/Fun-with-HTML5-Canvas-WebSocket-JQuery-and-ASP-NET

http://ishare.iask.sina.com.cn/f/23145988.html

 

 http://www.codeproject.com/Articles/268774/Learn-HTML5-in-5-Minutes

   

 http://www.qianduan.net/abroad-100-free-high-quality-x-html-css-templates.html

https://github.com/filamentgroup/jQuery-File-Download

 

http://code.google.com/p/canvg/

 

<!DOCTYPE html>
<html>
<body>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190">
  <polygon points="100,10 40,180 190,60 10,60 160,180"
  style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" />
</svg>
</body>
</html>

 

 

 

 

function printCanvas(el)  
{  
   
var dataUrl = document.getElementById(el).toDataURL();//attempt to save base64 string to server using this var  
   
var windowContent ='<!DOCTYPE html>';
    windowContent
+='<html>'
    windowContent
+='<head><title>Print canvas</title></head>';
    windowContent
+='<body>'
    windowContent
+='<img src="'+ dataUrl +'">';
    windowContent
+='</body>';
    windowContent
+='</html>';
   
var printWin = window.open('','','width=340,height=260');
    printWin
.document.open();
    printWin
.document.write(windowContent);
    printWin
.document.close();
    printWin
.focus();
    printWin
.print();
    printWin
.close();
}

 

posted @ 2012-08-04 10:36  rayray2  阅读(243)  评论(0)    收藏  举报