banner.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <meta http-equiv="Content-Style-Type" content="text/css" />
  5. <meta name="generator" content="Aspose.Words for .NET 15.1.0.0" />
  6. <meta name="viewport"
  7. content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  8. <title></title>
  9. <style>
  10. body {
  11. margin: 0px;
  12. padding: 0px;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div id="dvImg" />
  18. </body>
  19. <script>
  20. function getQueryString(name) {
  21. const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
  22. const r = window.location.search.substr(1).match(reg);
  23. if (r != null) return decodeURIComponent(r[2]);
  24. return null;
  25. }
  26. var title = getQueryString('t')
  27. var bannerUrl = getQueryString('u')
  28. if (title) {
  29. document.title = title
  30. }
  31. if (bannerUrl) {
  32. document.getElementById("dvImg").innerHTML = '<img id="banner" alt="活动海报" style="width: 100%; height: auto;" src="' + bannerUrl + '" />'
  33. }
  34. </script>
  35. </html>