]; 5. Texture [ ]; 5. Texture [
Home >Web Front-end >HTML Tutorial >What are the special effects codes for html web pages?
html Web page special effects codes include: 1. Bold font [a4b561c25d9afb9ac8dc4d70affff419xx0d36329ec37a2cc24d42c7229b69747a]; 2. Italic font [5a8028ccc7a7e27417bff9f05adf5932xx72ac96585ae54b6ae11f849d2649d9e6]; 3. Font size control [4a249f0d628e2318394fd9b75b4636b1xx473f0a7621bec819994bb5020d29372a]; 4. Change the post background [c1d9b3d4cc1ca05dc671c4db9d97b184]; 5. Texture [97e49b0fb09fffb9558c3a67e65f3a6a
17) Paragraph:
<p>段落</p>18) Original text style:
<pre class="brush:php;toolbar:false">正文19) Change post background:
<body background="背景图片地址">20) Fixed post background not scrolling with the scroll bar :
<body background="背景图片地址" body bgproperties=fixed>21) Customize post background color: 59b579696c7a2f3c3e700a3fcba80aba (see value 10)
22) Post background music: 8dda213a9261f6ac3dc436fc9e3923fb
23) Post the web page: 5df4c8a3f5762e48cfce5a6bc164e62e065276f04003e4622c4fe6b64f465b88
HTML special effects code 1. Ignore the right click
<body oncontextmenu="return false">or
<body style="overflow-y:hidden">2. Add background music
IE:<bgsound src="*.mid" loop=infinite> NS:<embed src="*.mid" autostart=true hidden=true loop=true> </embed> *.mid你的背景音乐的midi格式文件3. Simple window.open method
<a href="#" onclick="javascript :window.open(文件路径/文件名,newwindow, toolbar=no,scrollbars=yes,resizable=no,top=0,left=0, width=400,height=300);">文字或图片</a>Parameter explanation:
0df24357f4a395f29351d2fd9f7c0aaa js script starts;
window.open command to pop up a new window;
File path/file name The file name of the pop-up window;
Newwindow The name of the pop-up window (not the file name), optional, can be replaced by blank;
width=400 window width;
height=300 window height;
top=0 window distance Pixel value at the top of the screen;
left=0 Pixel value from the left side of the screen from the window;
toolbar=no Whether to display the tool bar, yes means display;
menubar, scrollbars represent menu bar and scroll bar.
resizable=no Whether to allow changing the window size, yes is allowed;
location=no Whether to display the address bar, yes is allowed;
Status=no Whether to display the information in the status bar (usually the file has been opened), yes is allowed;
db271416853c42fd247a57c1a2c29eb6 End of js script
4. Simple page encryption
<script LANGUAGE="javascript"> <!-- function loopy(){ var sWord =""; while(sWord!="login"){sWord=prompt("请输入你的登陆密码");} alert("登陆成功!"); } loopy() //--> </script>5. The background image does not move when the page is pulled
<style> body{background-image:url(logo.gif); background-repeat:no-repeat;background-position:center} </style>6. Let the browser Failed to save when saving the page
<NOSCRIPT><iframe src="*.html"></iframe></NOSCRIPT>7. Randomly replace pictures
<script> document.write(<img src="img/+parseInt(Math.random()*(5)) +.gif"height="40" width="50"> </script>The picture file name is 0.gif 1.gif 2.gif 3.gif 4.gif
8 . The window is closed regularly
First add the following code to the area of the web page file:
<script language="javascript"> function closeit() { setTimeout("self.close()",10000) //毫秒 } </script>Then add within the 6c04bd5ca3fcae76e30b72ad730ca86d tag such as: f02d302aa7c088ff5f01b399f60ecee8
9. The webpage automatically closes
<html> <head> <object id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> <param name="Command" value="Close"> </object> </head> <body onload="window.setTimeout(closes.Click(),10000)"> 这个窗口会在10秒过后自动关闭,而且不会出现提示. </body> </html>10. The webpage automatically refreshes
Enter
<META HTTP-EQUIV="Refresh" content="20">in the head section, where 20 means automatic refresh after 20 seconds. You can change it to any value.
11. Automatic page rotation
<META HTTP-EQUIV="Refresh" CONTENT="时间(秒);URL=地址">12. Keep layer at the front and not covered by Iframe or Object
Insert Iframe or Object settings in Layer z-Index value
<div z-Index:2><object xxx></object> # 前面 <div z-Index:1><object xxx></object> # 后面 <div id="Layer2" style="position:absolute; top:40;width:400px; height:95px;z-index:2"> height=100% width=100%> <iframe width=0 height=0></iframe> </div> <div id="Layer1" style="position:absolute; top:50;width:200px; height:115px;z-index:1"> <iframe height=100% width=100%></iframe> </div>13. Return to the previous page
<a href=javascript :history.back(1)>『返回上一页』</a>14. Close the window
<a href=javascript :self.close()>『关闭窗口』</a>15. About the transparent background of iframe
<IFRAME ID="iFrame1" SRC="iframe.htm" allowTransparency="true" style="</IFRAME>16 . oncontextmenu="window.event.returnValue=false" will completely block the right mouse button
<table border oncontextmenu=return(false)><td>no</table>Can be used in Table
17.
<body onselectstart="return false">Cancel selection and prevent copying
18.
onpaste="return false"No pasting
19.
oncopy="return false;" oncut="return false;"Prevent copying
Related learning recommendations: html tutorial
The above is the detailed content of What are the special effects codes for html web pages?. For more information, please follow other related articles on the PHP Chinese website!