|
@@ -24,7 +24,17 @@
|
|
|
<script type="text/javascript" src="${resPath}/spdx.images/Lunbo.js"></script>
|
|
|
<!-- 首页 js-->
|
|
|
<script type="text/javascript" src="${resPath}/spdx.images/index.js"></script>
|
|
|
+
|
|
|
</head>
|
|
|
+
|
|
|
+<!--招生简章飘窗 -->
|
|
|
+<#cms_content_list siteId="${site.siteId}" categoryId="1178" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="1" titleLen="10" var="bean">
|
|
|
+ <a href="${frontPath}/${site.siteId}/1178/${bean.contentId!}.html">
|
|
|
+<!-- <img id="floating-window" class="floating-window" src="${bean.thumb!}" alt="" style="background-size: auto 100%;">-->
|
|
|
+ <img id="floating-window" class="floating-window" src="${bean.thumb!}" alt="" style="background-size: auto 100%;">
|
|
|
+ </a>
|
|
|
+</#cms_content_list>
|
|
|
+<!--招生简章飘窗 -->
|
|
|
<body>
|
|
|
|
|
|
<!-- 网页导航 -->
|
|
@@ -292,15 +302,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<ul class="xydt_list fr">
|
|
|
- <#cms_content_list siteId="${site.siteId}" categoryId="1175" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="25" var="bean">
|
|
|
+ <#cms_content_list siteId="${site.siteId}" categoryId="1175" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="8" titleLen="25" var="bean">
|
|
|
<li>
|
|
|
<div class="list_data fl">
|
|
|
<u> ${bean.inputdate,dateFormat="MM-dd"} </u>
|
|
|
- <i></i>
|
|
|
</div>
|
|
|
<a class="list_txt fl" href=${frontPath}/${site.siteId}/1175/${bean.contentId!}.html" >
|
|
|
<p>${bean.title!}</p>
|
|
|
- <span> ${strutil.length(bean.description) > 30 ? strutil.subStringTo(bean.description, 0, 30) + "..." : bean.description}</span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</#cms_content_list>
|
|
@@ -378,7 +386,7 @@
|
|
|
</div>
|
|
|
<div class="spkfdx_zsjx fl">
|
|
|
<div class="spkfdx_tit tab_tit2">
|
|
|
- <a class="on" href="${frontPath}/${site.siteId}/1178.html">招生简章</a>
|
|
|
+<!-- <a class="on" href="${frontPath}/${site.siteId}/1178.html">招生简章</a>-->
|
|
|
<a href="${frontPath}/${site.siteId}/1185.html" >教学活动 </a>
|
|
|
</div>
|
|
|
<div class="zsjz_div tab_list2" >
|
|
@@ -392,13 +400,21 @@
|
|
|
</#cms_content_list>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="sj_zsjz">
|
|
|
- <#cms_content_list siteId="${site.siteId}" categoryId="1178" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="5" titleLen="10" var="bean">
|
|
|
+<!-- <div class="sj_zsjz">-->
|
|
|
+<!-- <#cms_content_list siteId="${site.siteId}" categoryId="1178" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="5" titleLen="10" var="bean">-->
|
|
|
+<!-- <a class="silder-main-img" href="${frontPath}/${site.siteId}/1178/${bean.contentId!}.html" >-->
|
|
|
+<!-- <img src="${bean.thumb!}" alt="">-->
|
|
|
+<!-- <p>${bean.title!}</p>-->
|
|
|
+<!-- </a>-->
|
|
|
+<!-- </#cms_content_list>-->
|
|
|
+<!-- </div>-->
|
|
|
+ <div class="zsjz_list_xf" id="content">
|
|
|
+ <#cms_content_list siteId="${site.siteId}" categoryId="1178" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="1" titleLen="10" var="bean">
|
|
|
<a class="silder-main-img" href="${frontPath}/${site.siteId}/1178/${bean.contentId!}.html" >
|
|
|
- <img src="${bean.thumb!}" alt="">
|
|
|
- <p>${bean.title!}</p>
|
|
|
+<!-- <img src="${bean.thumb!}" alt="">-->
|
|
|
+ <img src="/static/www/spdx.images/spkfdx_logo.png" alt="">
|
|
|
</a>
|
|
|
- </#cms_content_list>
|
|
|
+ </#cms_content_list>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="jxhd_div tab_list2">
|
|
@@ -449,7 +465,7 @@
|
|
|
<#cms_content_list siteId="${site.siteId}" categoryId="1208" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="5" titleLen="20" var="bean">
|
|
|
<div class="silder-main-img" >
|
|
|
<img src="${bean.thumb!}">
|
|
|
- <p><a href="${frontPath}/${site.siteId}/1208/${bean.contentId!}.html" >${bean.title!}</a></p>
|
|
|
+ <p>${bean.title!}</p>
|
|
|
</div>
|
|
|
</#cms_content_list>
|
|
|
</div>
|
|
@@ -482,12 +498,59 @@
|
|
|
@includeFileTemplate("/www/spdx/include/footer.html"){}
|
|
|
</div>
|
|
|
<!-- 底部结束 -->
|
|
|
+<script>
|
|
|
+ // 如果需要,你可以使用 JavaScript 动态处理飘窗的显示/隐藏、位置等行为
|
|
|
+ let windowElement = document.getElementById("floating-window");
|
|
|
+
|
|
|
+ let x = 20 // 初始水平位置
|
|
|
+ let y = 20 // 初始垂直位置
|
|
|
+ const speed = 2 // 飘窗移动速度(每个定时器周期移动的距离)
|
|
|
+
|
|
|
+ let directionX = Math.random() < 0.5 ? -1 : 1 // 水平方向(-1表示向左移动,1表示向右移动)
|
|
|
+ let directionY = Math.random() < 0.5 ? -1 : 1 // 垂直方向(-1表示向上移动,1表示向下移动)
|
|
|
+
|
|
|
+ function moveFloatingWindow () {
|
|
|
+ const windowWidth = window.innerWidth
|
|
|
+ const windowHeight = window.innerHeight
|
|
|
+
|
|
|
+ // 更新位置
|
|
|
+ x += speed * directionX
|
|
|
+ y += speed * directionY
|
|
|
+
|
|
|
+ // 边界检测
|
|
|
+ if (x <= 0 || x + windowElement.offsetWidth >= windowWidth) {
|
|
|
+ directionX = -directionX // 反向移动
|
|
|
+ }
|
|
|
+ if (y <= 0 || y + windowElement.offsetHeight >= windowHeight) {
|
|
|
+ directionY = -directionY // 反向移动
|
|
|
+ }
|
|
|
+
|
|
|
+ // 移动飘窗
|
|
|
+ windowElement.style.transform = 'translate('+x+'px, '+y+'px)';
|
|
|
+ }
|
|
|
+
|
|
|
+ // 每10毫秒调用moveFloatingWindow()函数一次,实现定时更新位置
|
|
|
+ let timer = setInterval(moveFloatingWindow, 20);
|
|
|
+
|
|
|
+ windowElement.addEventListener('mouseover', () => {
|
|
|
+ clearInterval(timer)
|
|
|
+ })
|
|
|
+ windowElement.addEventListener('mouseleave', () => {
|
|
|
+ timer = setInterval(moveFloatingWindow, 20);
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</script>
|
|
|
<!-- 层叠图片轮播-->
|
|
|
<script type="text/javascript" src="${resPath}/spdx.images/slider.js">
|
|
|
function toFirstCategory(_this){
|
|
|
let href = $(_this).next().children(":first").attr("href");
|
|
|
location.href = href;
|
|
|
}
|
|
|
+
|
|
|
</script>
|
|
|
+
|
|
|
</body>
|
|
|
</html>
|