newmatchmaker.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <html>
  2. <head>
  3. <title>{:$sitetitle}</title>
  4. </head>
  5. <body onLoad="creat()">
  6. <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
  7. <script type="text/javascript" src="js/jquery.qrcode.js"></script>
  8. <script type="text/javascript" src="js/qrcode.js"></script>
  9. <style type="text/css">
  10. *{margin:0;padding:0;list-style-type:none;}
  11. a,img{border:0;text-decoration:none;}
  12. a:hover{text-decoration:underline;}
  13. body{font:12px/180% Arial, Helvetica, sans-serif , "新宋体";}
  14. .demo{width:200px;margin:40px auto;}
  15. .demo h2{font-size:18px;height:50px;text-align:center;}
  16. .demo input{width:198px;outline:medium;border:1px solid #336699;}
  17. .demo a{width:200px;height:24px;line-height:24px;text-align:center;letter-spacing:4px;background:#336699;color:#fff;font-weight:bold;display:block;margin:5px 0;}
  18. </style>
  19. <div class="demo">
  20. <input type="hidden" id="url" value="{:$_sys[siteurl]}{:HOME_PAGE}?c=home&ruid={:$uid}"/>
  21. <div id="qrcodeTable" style=" margin-left:-200px; margin-top:200px;"></div>
  22. </div>
  23. <script type="text/javascript">
  24. function creat(){
  25. $("#qrcodeTable").html("");
  26. var url=$("#url").val();
  27. $("#qrcodeTable").qrcode({
  28. render : "table",
  29. text : url,
  30. width:"600",
  31. height:"600"
  32. });
  33. }
  34. $(document).ready(function(){
  35. $("#qrcodeTable").qrcode({
  36. render : "table",
  37. text : "http://www.lyfz.net",
  38. width:"600",
  39. height:"600"
  40. });
  41. });
  42. </script>
  43. </body>
  44. </html>