版权属于:路讯先生
本文链接:https://lxxs.xyz/archives/17/

加密

第一种

<script type="text/javascript">   
function password() {   
var testV = 1;   
var pass1 = prompt('请输入密码','');   
while (testV < 3) {   
if (!pass1)   
top.location='https://blog.lxxs.xyz';//为防止在新标签页产生问题的修改
if (pass1 == "123") {
alert('密码正确,');   
break;   
}   
testV+=1;   
var pass1 =   
prompt('emm,你这么想看??谔谔谔:');   
}   
if (pass1!="password" & testV ==3)   
top.location='https://blog.lxxs.xyz';//此为防止在新标签页产生问题的修改
return " ";   
}   
document.write(password());   
</script>  
<!--下面添加你要显示的内容或者代码-->
显示内容!

直接将以上内容放到文章最开始的地方

第二种

适合手动加密某个网页

<script type="text/javascript">   
loopy()   
function loopy() {   
var sWord =""  
while (sWord != "123") {//设置密码
sWord = prompt("输入正确密码才能登陆!")   
}   
alert("欢迎访问")   
}   
</script> 
<!--下面添加你要显示的内容或者代码-->
内容!

第三种

网页跳转

<script type="text/javascript">   
function password() {   
var testV = 1;   
var pass1 = prompt('请输入密码:','');   
while (testV < 3) {   
if (!pass1)    
history.go(-1);   
if (pass1 == "123") {//设置密码
alert('口令正确,进行跳转');   
window.location.href="http://xxinn.cn";//添加你要跳转的页面
break;   
}    
testV+=1;   
var pass1 =    
prompt('密码错误','');   
}   
if (pass1!="password" & testV ==3)    
history.go(-1);   
return " ";   
}    
document.write(password());   
</script>

插入Bilibili视频

<div style="position: relative; padding: 30% 45%;">
<iframe style="position: absolute; width: 100%; height: 100%; left: 0; top: 0;" src="https://player.bilibili.com/player.html?aid=70993038&cid=123009768&page=1&as_wide=1&high_quality=1&danmaku=0" frameborder="no" scrolling="no"></iframe>
</div>

图片排版

一行多张

<table>
    <tr>
        <td ><center><img src="link" >name</center></td>
        <td ><center><img src="link" >name</center></td>
        ·······
    </tr>

    <tr>
        <td><center><img src="link"  >name</center></td>
        <td ><center><img src="link" >name</center> </td>
        ·······
    </tr>

    <tr>
        <td><center><img src="link"  > name</center></td>
        <td><center><img src="link"  > name</center></td>
        ·······
    </tr>
    ········
</table>

一行一张

<table>
    <tr>
        <td>
        <center><img src="link" /></center>
        <center>name</center>
        </td> 
    <tr>
</table>

折叠显示

<details>

<summary>点击查看</summary>

内容
</details>

变色字体

<font color='red'>内容</font>