[[module ListUsers users="."]]
%%title%%
[[/module]]
- category="_default"
- 页面种类,例如nav admin _default。用逗号分隔。排除某种页面可用"-",例如-nav
- created_by="Xkong ggggg"
- separate="no"
- perPage="200"
- %%title_linked%%
- %%revisions%%
- %%created_at%%
- order="created_at"
- tags="-_a b"
[[html]]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="javascript" type="text/javascript">
var interval = 1000;
function ShowCountDown(year,month,day,divname)
{
var now = new Date();
var endDate = new Date(year, month-1, day);
var leftTime=endDate.getTime()-now.getTime(); //剩余毫秒
var leftsecond = parseInt(leftTime/1000);
var day1=Math.floor(leftsecond/(60*60*24)); //剩余天
var hour=Math.floor((leftsecond-day1*24*60*60)/3600); //剩余时
var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60); //剩余分
var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60); //剩余秒
var cc = document.getElementById(divname);
cc.innerHTML = "距离高考"+year+"年"+month+"月"+day+"日还有:"+day1+"天"+hour+"小时"+minute+"分"+second
+"秒"; //显示
}
window.setInterval(function(){ShowCountDown(2022,6,30,'divdown1');}, interval);
</script>
</head>
<body>
<div id="divdown1"></div>
</body>
</html>
[[/html]]
密码系统:
[[html]]
<head>
<script language="javascript">
function LogIn(){
loggedin=false;
password="";
password=prompt("口令:","");
password=password.toLowerCase();
// Add password-->
if (password=="密码") {
loggedin=true;
window.open('/要打开的页面名称');
}
// If login incorrect -->
if (loggedin==false) {
alert("这是不正确的口令。");
}
}
</script>
</head>
<body>
<form><input type=button value="输入访问口令" onClick="LogIn()"></form>
</body>
[[/html]]
[[html]]
<html>
<head>
<script type="text/javascript">
function setVar()
{
if (sessionStorage.read != 1)
{
sessionStorage.setItem('read', 1);
}
}
</script>
</head>
<body onLoad="setVar();">
</body>
</html>
[[/html]]
插入网易云音乐:
[[embedvideo]]
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=320 height=86 src="//music.163.com/outchain/player?type=2&id=000001&auto=1&height=66"></iframe>
[[/embedvideo]]
其中id=为歌曲ID
插入bilibili视频:
[[embedvideo]]
<iframe src="//player.bilibili.com/player.html?aid=415610932&bvid=xxxxx&cid=264152096&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
[[/embedvideo]]
其中bvid=为视频编号
CSS版式 实用片段
[[module CSS]]
div#extra-div-1 {
height: 140px;
width: 100%;
top: 0;
position: absolute;
background: url("图片链接");
background-size: cover;
background-position: 50% 50%;
}
[[/module]]
自定义顶栏图片,默认高度为常用的140px大小。