6hz7vif 发表于 2024-6-29 12:31:25

html网页的代码大全(二HTML特效代码)


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1。<span style="color: black;">忽略</span>右键</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;body oncontextmenu="return false"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  或</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;body style="overflow-y:hidden"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2。加入背景音乐</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  IE:&lt;bgsound src="*.mid" loop=infinite&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">NS:&lt;embed src="*.mid" autostart=true hidden=true loop=true&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/embed&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  *.mid你的背景音乐的midi格式文件</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3。简单的window.open<span style="color: black;">办法</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;a href="#"</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  onclick="javascript :window.open(文件路径/文件名,newwindow,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">toolbar=no,scrollbars=yes,resizable=no,top=0,left=0,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  width=400,height=300);"&gt;文字或<span style="color: black;">照片</span>&lt;/a&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  参数解释:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;SCRIPT LANGUAGE="javascript"&gt; js脚本<span style="color: black;">起始</span>;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  window.open 弹出新窗口的命令;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">文件路径/文件名 弹出窗口的文件名;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  newwindow 弹出窗口的名字(不是文件名),非<span style="color: black;">必要</span>,可用空代替;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  width=400 窗口宽度;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  height=300 窗口高度;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  top=0 窗口距离屏幕上方的象素值;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  left=0 窗口距离屏幕左侧的象素值;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  toolbar=no <span style="color: black;">是不是</span><span style="color: black;">表示</span><span style="color: black;">工具</span>栏,yes为<span style="color: black;">表示</span>;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">menubar,scrollbars <span style="color: black;">暗示</span>菜单栏和滚动栏。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  resizable=no <span style="color: black;">是不是</span><span style="color: black;">准许</span>改变窗口<span style="color: black;">体积</span>,yes为<span style="color: black;">准许</span>;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  location=no <span style="color: black;">是不是</span><span style="color: black;">表示</span><span style="color: black;">位置</span>栏,yes为<span style="color: black;">准许</span>;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  status=no <span style="color: black;">是不是</span><span style="color: black;">表示</span>状态栏内的信息(<span style="color: black;">一般</span>是文件<span style="color: black;">已然</span>打开),yes为<span style="color: black;">准许</span>;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/SCRIPT&gt; js脚本结束</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4。简单的页面加密</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;script LANGUAGE="javascript"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;!--</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  function loopy(){</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">   var sWord ="";</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">   while(sWord!="login"){sWord=prompt("请输入你的登陆<span style="color: black;">暗码</span>");}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">   alert("登陆成功!");</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  }</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  loopy()</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  //--&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/script&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5。拉动页面时背景图不动</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;style&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  body{bac<span style="color: black;">公斤</span>round-image:url(logo.gif);</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  bac<span style="color: black;">公斤</span>round-repeat:no-repeat;bac<span style="color: black;">公斤</span>round-position:center}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/style&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">6。让浏览器在<span style="color: black;">保留</span>页面时<span style="color: black;">保留</span>失败</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;NOSCRIPT&gt;&lt;iframe src="*.html"&gt;&lt;/iframe&gt;&lt;/NOSCRIPT&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">7。随机替换<span style="color: black;">照片</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;script&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  document.write(&lt;img src="img/+parseInt(Math.random()*(5))</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  +.gif"height="40" width="50"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/script&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">照片</span>文件名为0.gif 1.gif 2.gif 3.gif 4.gif</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">8。窗口<span style="color: black;">按时</span>关闭</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  先将如下代码网页文件的区:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;script language="javascript"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  function closeit() { setTimeout("self.close()",10000) //毫秒 }</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/script&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>再在&lt;body&gt;标内加入如:&lt;body onload="closeit()"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">9。网页自动关闭</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;html&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;head&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;object id=closes type="application/x-oleobject"</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;param name="Command" value="Close"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/object&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/head&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;body onload="window.setTimeout(closes.Click(),10000)"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  这个窗口会在10秒过后自动关闭,<span style="color: black;">况且</span>不会<span style="color: black;">显现</span>提示.</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">  &lt;/body&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;/ht</p>




明月几时有 发表于 2024-9-9 21:02:16

一看到楼主的气势,我就觉得楼主同在社区里灌水。

m5k1umn 发表于 2024-9-27 08:59:30

回顾历史,我们不难发现:无数先辈用鲜血和生命铺就了中华民族复兴的康庄大道。

7wu1wm0 发表于 2024-9-30 05:15:46

期待更新、坐等、迫不及待等。

b1gc8v 发表于 2024-10-11 12:02:25

“BS”(鄙视的缩写)‌

nykek5i 发表于 2024-11-6 11:06:44

你的话深深触动了我,仿佛说出了我心里的声音。
页: [1]
查看完整版本: html网页的代码大全(二HTML特效代码)