阅:33 | 回:14 | 日常编码常识 |
鱼鱼 | 发表于 2024-12-23 9:27:29 |
![]()
|
文字超链接: <a href="https://cy0575.cn" >正在进入页面请稍等</a> <a href="TJ.asp"target="_blank">微空间价格表</a> 图片链接 <a href="http://bbs.cy0575.cn"target="_blank"> <img src="ad/logo-logo.png" width="300" vspace="0" hspace="0" border="0" height="300"></a> <p align="center"> <img src="ad/cesu.png" width="720" vspace="0" hspace="0" border="0" height="500"></a> <div style="text-align: center;"> 名称:源码空间设计梦想站 </div> <center>这是要居中的文本</center> asp 调用只能是同一空间主机 <!--#include file="foot.asp"--> 忘记密码调出内容: <a href="javascript:alert('找回密码,请联系教务处 ')" class="top-font-2">忘记密码</a> 字体颜色: <font color=red>支付红包</font> [ color=#8E236B] ★褐红★ 在HTML中设置文字颜色可以通过以下几种方式实现:? 使用颜色名称:?HTML支持一系列预定义的颜色名称,?如red、?green、?blue、?black等。 ?例如,?要将文字颜色设置为红色,?可以使用以下代码:? <p style="color:red;">这是红色的文字</p> 使用十六进制颜色码:?每种颜色都可以由一个唯一的六位十六进制颜色码表示, ?前两位代表红色强度,?中间两位代表绿色强度,?最后两位代表蓝色强度。?例如,?红色的十六进制颜色码为#FF0000。?设置颜色的代码示例:? <p style="color:#FF0000;">这是红色的文字</p> 使用RGB颜色值:?RGB颜色值由三个数字组成,?分别代表红色、?绿色和蓝色的强度,?取值范围为0-255。? 例如,?红色的RGB颜色值为rgb(255, 0, 0)。?设置颜色的代码示例:? <p style="color:rgb(255, 0, 0);">这是红色的文字</p> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:28:20 |
![]()
|
背景图设置及跳转 <script type="text/javascript"> if(window.screen.width==0){window.location.replace("http://my.cy0575.cn/")}; var system={win:false,mac:false,xll:false}; var p = navigator.platform; system.win=p.indexOf("Win")==0; system.mac=p.indexOf("Mac")==0; system.x11=(p=="X11") || (p.indexOf("Linux")==0); if(system.win||system.mac||system.xll) { location.replace("https://cy0575.cn/0tg"); } </script> <div><p align="center"> <img src="20241111.png" width="980" vspace="0" hspace="0" border="0" height="150"></a> </div> 背景 <style> body{ background-color:#2F2F2F} #stage{ margin-left: auto; margin-right: auto; display: block; margin-top: 50px; } </style> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:29:48 |
![]()
|
单密码加密访问教程 <SCRIPT language=javascript> function password() { var testV = 1; var pass1 = prompt('请输入密码:',''); while (testV < 3) { if (!pass1) history.go(-1); if (pass1 == "cy0575") { alert('密码正确!'); break; } testV+=-1; var pass1 = prompt('你好密码错误!请重新输入:'); } if (pass1!="password" & testV ==3) history.go(-1); return " "; } document.write(password()); </SCRIPT> ``` 只需要把此代码放入到〈/head〉标签前即可"/ 挺不错的分享给大家。 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:30:38 |
![]()
|
1、 <SCRIPT language=javascript> function password() { var testV = 1; var pass1 = prompt('请输入密码:',''); while (testV < 3) { if (!pass1) history.go(-1); if (pass1 == "cy0575") { alert('密码正确!'); break; } testV+=-1; var pass1 = prompt('你好密码错误!请重新输入,联系微信QQ:80561642:'); } if (pass1!="password" & testV ==3) history.go(-1); return " "; } document.write(password()); </SCRIPT> ``` 只需要把此代码放入到〈/head〉标签前即可"/ 挺不错的分享给大家。 3、html网页密码访问 <html lang="en"> <head> <meta charset="UTF-8"> <title>Password Access</title> <script> function checkPassword() { var password = document.getElementById('password').value; // 假设正确的密码是 "1234" if (password === "1234") { alert("正确的密码!"); // 密码正确后的操作,比如跳转页面 // window.location.href = 'your_secure_page.html'; } else { alert("错误的密码!"); } } </script> </head> <body> <div> <input type="password" id="password" placeholder="请输入密码"> <button onclick="checkPassword()">确认</button> </div> </body> </html> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:31:15 |
![]()
|
<head><script type="text/javascript"> document.oncontextmenu = function() { return false; }; // 禁用右键菜单 </script></head> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:33:16 |
![]()
|
手机电脑平板分类跳转 <%@ LANGUAGE="VBScript" %> <% Function IsMobileDevice() Dim userAgent Dim mobileKeywords Dim i userAgent = Request.ServerVariables("HTTP_USER_AGENT") mobileKeywords = Array("Android", "webOS", "iPhone", "iPad", "iPod", "BlackBerry", "Windows Phone", "Opera Mini", "IEMobile") For i = 0 To UBound(mobileKeywords) If InStr(userAgent, mobileKeywords(i)) > 0 Then IsMobileDevice = True Exit Function End If Next IsMobileDevice = False End Function ' 调用IsMobileDevice函数来检测设备类型 If IsMobileDevice() Then ' 如果是移动设备,重定向到移动版页面 Response.Redirect "index_mobile.asp" Else ' 如果是桌面设备,继续显示当前页面或重定向到桌面版页面 ' 如果不需要重定向,可以省略这行代码 Response.Redirect "index_pc.asp" End If %> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:33:55 |
![]()
|
手机本访问-PC跳转或不能访问 <script type="text/javascript"> if(window.screen.width==0){window.location.replace("https://my.cy0575.cn/")}; var system={win:false,mac:false,xll:false}; var p = navigator.platform; system.win=p.indexOf("Win")==0; system.mac=p.indexOf("Mac")==0; system.x11=(p=="X11") || (p.indexOf("Linux")==0); if(system.win||system.mac||system.xll) { location.replace("https://cy0575.cn/0tg"); } </script> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:34:33 |
![]()
|
手机版直接跳转 <script type="text/javascript"> var mobileUrl="https://cy0575.cn/wap", mobile = (/mmp|symbian|smartphone|midp|wap|phone|xoom|iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase())); if (mobile) { window.location = mobileUrl; } </script> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:35:12 |
![]()
|
电脑版跳转: <META HTTP-EQUIV="REFRESH" CONTENT="20;URL=http://cy0575.cn/3"> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:36:21 |
![]()
|
无浏览器网页跳转 <div title="MySSL 安全签章" id="myssl_seal" onclick="window.open('https://myssl.com/seal/detail?domain=ymhost.cn','MySSL安全签章',' height=800,width=470,top=0,right=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')" style="text-align: center"> <img src="/images/seal.png" alt="MySSL 安全签章"style="width: 100px; height: auto; cursor: pointer"></div> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:51:04 |
![]()
|
文字 图片居中显示源代码 <p style="text-align: center"> 图片地址或图片超链接 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:51:35 |
![]()
|
图片超链接源代码限定图片长宽额度<a href="http://bbs.cy0575.cn/forum.php?mod=viewthread&tid=2021" target="_blank"> <img src="http://cy0575.cn/ad011.GIF" width="600" height="300" border="0"></a> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:52:10 |
![]()
|
文字新窗口打开超链接源代码 <p><p style="text-align: center"> <a href="http://cy0575.cn" target="_blank">返回首页</a> | <a href="http://bbs.cy0575.cn" target="_blank">源码论坛</a> | <a href="https://jinyufish.taobao.com/" target="_blank">淘宝店1</a> | <a href="https://weidian.com/?userid=771195562" target="_blank">微店1</a></p> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:53:44 |
![]()
|
禁用网站右键菜单操作源码,将以下源码放置于首页的最前面即可。 <head><script type="text/javascript"> document.oncontextmenu = function() { return false; }; // 禁用右键菜单 </script></head> 以萌养阵,方可长命百岁。 ![]() |
鱼鱼 | 发表于 2024-12-23 9:54:29 |
![]()
|
网页外新窗口打开新网址链接程序码<a href="/" target='_blank'>XXXXXXXXXXXXX</a> 以萌养阵,方可长命百岁。 ![]() |
14/ 1 1
|