通用跳转链接模版说明

在内容->视图模版->跳转模版

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <!--[if IE 8]><style>.ie8 .alert-circle,.ie8 .alert-footer{display:none}.ie8 .alert-box{padding-top:75px}.ie8 .alert-sec-text{top:45px}</style><![endif]-->
  6. <title>{$data.seotitle}</title>
  7. <!-- 以下方式定时转到其他页面,不需要倒计时3秒设置0 -->
  8. <meta http-equiv="refresh" content="3;url={$data.url}">
  9. <hdsyspage name="内容跳转模版" />
  10. <style>
  11. body {
  12. margin: 0;
  13. padding: 0;
  14. background: #E6EAEB;
  15. font-family: Arial, '微软雅黑', '宋体', sans-serif
  16. }
  17. .alert-box {
  18. display: none;
  19. position: relative;
  20. margin: 96px auto 0;
  21. padding: 180px 85px 22px;
  22. border-radius: 10px 10px 0 0;
  23. background: #FFF;
  24. box-shadow: 5px 9px 17px rgba(102, 102, 102, 0.75);
  25. width: 286px;
  26. color: #FFF;
  27. text-align: center
  28. }
  29. .alert-box p {
  30. margin: 0
  31. }
  32. .alert-circle {
  33. position: absolute;
  34. top: -50px;
  35. left: 111px
  36. }
  37. .alert-sec-circle {
  38. stroke-dashoffset: 0;
  39. stroke-dasharray: 735;
  40. transition: stroke-dashoffset 1s linear
  41. }
  42. .alert-sec-text {
  43. position: absolute;
  44. top: 11px;
  45. left: 190px;
  46. width: 76px;
  47. color: #000;
  48. font-size: 68px
  49. }
  50. .alert-sec-unit {
  51. font-size: 34px
  52. }
  53. .alert-body {
  54. margin: 35px 0
  55. }
  56. .alert-head {
  57. color: #242424;
  58. font-size: 28px
  59. }
  60. .alert-concent {
  61. margin: 25px 0 14px;
  62. color: #7B7B7B;
  63. font-size: 18px
  64. }
  65. .alert-concent p {
  66. line-height: 27px
  67. }
  68. .alert-btn {
  69. display: block;
  70. border-radius: 10px;
  71. background-color: #4AB0F7;
  72. height: 55px;
  73. line-height: 55px;
  74. width: 286px;
  75. color: #FFF;
  76. font-size: 20px;
  77. text-decoration: none;
  78. letter-spacing: 2px
  79. }
  80. .alert-btn:hover {
  81. background-color: #6BC2FF
  82. }
  83. .alert-footer {
  84. margin: 0 auto;
  85. height: 42px;
  86. width: 120px
  87. }
  88. .alert-footer-icon {
  89. float: left
  90. }
  91. .alert-footer-text {
  92. float: left;
  93. border-left: 2px solid #EEE;
  94. padding: 3px 0 0 5px;
  95. height: 40px;
  96. color: #0B85CC;
  97. font-size: 12px;
  98. text-align: left
  99. }
  100. .alert-footer-text p {
  101. color: #7A7A7A;
  102. font-size: 22px;
  103. line-height: 18px
  104. }
  105. </style>
  106. </head>
  107. <body class="ie8">
  108. <div id="js-alert-box" class="alert-box">
  109. <svg class="alert-circle" width="234" height="234">
  110. <circle cx="117" cy="117" r="108" fill="#FFF" stroke="#43AEFA" stroke-width="17"></circle>
  111. <circle id="js-sec-circle" class="alert-sec-circle" cx="117" cy="117" r="108" fill="transparent" stroke="#F4F1F1" stroke-width="18" transform="rotate(-90 117 117)"></circle>
  112. <text class="alert-sec-unit" x="82" y="172" fill="#BDBDBD"></text>
  113. </svg>
  114. <div id="js-sec-text" class="alert-sec-text"></div>
  115. <div class="alert-body">
  116. <div id="js-alert-head" class="alert-head">{$data.name}</div>
  117. <div class="alert-concent">
  118. <p>倒计时结束跳转新页面</p>
  119. </div>
  120. <a id="js-alert-btn" class="alert-btn" href="{$data.url}">点进进入</a>
  121. </div>
  122. <div class="alert-footer clearfix">
  123. <svg width="46px" height="42px" class="alert-footer-icon">
  124. <circle fill-rule="evenodd" clip-rule="evenodd" fill="#7B7B7B" stroke="#DEDFE0" stroke-width="2" stroke-miterlimit="10" cx="21.917" cy="21.25" r="17" />
  125. <path fill="#FFF" d="M22.907,27.83h-1.98l0.3-2.92c-0.37-0.22-0.61-0.63-0.61-1.1c0-0.71,0.58-1.29,1.3-1.29s1.3,0.58,1.3,1.29 c0,0.47-0.24,0.88-0.61,1.1L22.907,27.83z M18.327,17.51c0-1.98,1.61-3.59,3.59-3.59s3.59,1.61,3.59,3.59v2.59h-7.18V17.51z M27.687,20.1v-2.59c0-3.18-2.59-5.76-5.77-5.76s-5.76,2.58-5.76,5.76v2.59h-1.24v10.65h14V20.1H27.687z" />
  126. <circle fill-rule="evenodd" clip-rule="evenodd" fill="#FEFEFE" cx="35.417" cy="10.75" r="6.5" />
  127. <polygon fill="#7B7B7B" stroke="#7B7B7B" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="35.417,12.16 32.797,9.03 31.917,10.07 35.417,14.25 42.917,5.29 42.037,4.25 " />
  128. </svg>
  129. <div class="alert-footer-text">
  130. <p>secure</p>安全加密
  131. </div>
  132. </div>
  133. </div>
  134. <script type="text/javascript">
  135. function alertSet(e) {
  136. document.getElementById("js-alert-box").style.display = "block",
  137. document.getElementById("js-alert-head").innerHTML = e;
  138. var t = 3,
  139. n = document.getElementById("js-sec-circle");
  140. document.getElementById("js-sec-text").innerHTML = t,
  141. setInterval(function() {
  142. if (0 == t) {
  143. location.href = "{$data.url}";
  144. } else {
  145. t -= 1,
  146. document.getElementById("js-sec-text").innerHTML = t;
  147. var e = Math.round(t / 10 * 735);
  148. n.style.strokeDashoffset = e - 735
  149. }
  150. },
  151. 970);
  152. }
  153. </script>
  154. <script>
  155. alertSet('{$data.name}');
  156. </script>
  157. </body>
  158. </html>

这个模版是在当前自己设定目录创建模版即可简易跳转

content.jmp.hdsys.php
templates/xxxxx/content.jmp.hdsys.php

模版二简单直接

  1. <html>
  2. <head>
  3. <meta http-equiv="refresh" content="0;url={$data.url}">
  4. </head>
  5. </html>

更多方案

说明,跳转只是个案,可以在某一个字自定义参数加链接
内容->详情->自定属性1 填写跳转链接

在head协议头加上即可

  1. {if '$data.attribute1'!='' }
  2. <meta http-equiv="refresh" content="0;url={$data.attribute1}">
  3. {/if}

友情连接: 论文查重 SitemapXMlL BSPHP验证系统
Copyright cms 2024 HDSysCms免费企业建站系统 ·  HDSysCms免费企业建站系统 HdSysCms 网站地图 Tage标签