Useful Web Code 25 examples _ Application Tips

Source: Internet
Author: User
Useful web code for 25 cases
01. Download Flash My Three ways:
--View source files, find out the absolute path of flash, copy, in FlashGet (or ant) Midpoint task
, and then click New Download Task.
--in IE's temporary folder temporary Internet files to delete everything, and then
Refresh the flash you want to download the page, you can get the flash you want
--Use external software, recommend the use of Flash catcher, installed only in the flash you want to download the right button, save can.
02. Make your Web page unable to save as
<noscript><iframe src=*></iframe></noscript>
03. Transparent the background of documents within the IFRAME framework
<iframe src= "About:<body style= ' background:transparent ' >"
Allowtransparency></iframe>
04. No Right Key:
<body oncontextmenu= ' return false ' ondragstart= ' return false '
Onselectstart = "return false" onselect= "Document.selection.empty ()"
Oncopy= "Document.selection.empty ()" Onbeforecopy= "return
False "onmouseup=" Document.selection.empty () >
05. Automatically refresh immediately after entering the page?
<meta http-equiv= "Refresh"
Content= "120;url=http://www.cuiz.net" > 120 seconds News broadcast available
06. Open the window is maximized
<script language= "JavaScript" >
<!--Begin
Self.moveto (0,0)
Self.resizeto (Screen.availwidth,screen.availheight)
End-->
</script>
07. Can you hide the iframe scroll bar?
1. Set the IFRAME scrolling= "no"
2. Included page body application Overflow:hidden
3. The body tag containing the page plus scroll= "No"
08. Add Background music
<bgsound src= "Mid/windblue[1].mid" loop= "-1" > only applies to IE
<embed src= "Music.mid" autostart= "true" loop= "true" hidden= "true" >
For Netscape, IE all apply
09. Embed Web pages
<iframe name= "tt" src= "01a.html" width= "450" height= "287"
scrolling= "Auto" frameborder= "0" ></iframe>
10. Jump
<meta http-equiv= "Refresh" content= "3; Url=http://www.cuiz.net/bbs.asp ">
11. Rolling
<marquee direction=up height=146 Onmouseout=start ()
Onmouseover=stop ()
Scrollamount=4></marquee>
12. Thin Line Divider
13. Excessive mode (shutter effect)
<meta http-equiv= "Page-exit"
Content= "Revealtrans (duration=3,transition=5)" >
The duration value is the time, in seconds, for the dynamic transition of the Web page.
The transition is a transitional method with a value of 0 to 23, corresponding to 24 transition modes respectively. As shown in the following table:
0 box-shaped contraction 1-box-shaped radiation
2 Circular contraction 3 circular radiation
4 from bottom to top 5 from top down
6 from left to right 7 from right to left
8 Vertical Blinds 9 Horizontal Blinds
10 Horizontal Lattice Blinds 11 Vertical lattice Blinds
12 free dissolution 13 from the left and right ends to the middle spread
14 expand from middle to left, 15 from top to bottom
16 Expand from middle to bottom, 17 from upper right corner to lower left corner
18 from lower right corner expand 19 from upper left corner to lower right corner
20 expand from lower left corner to upper right corner 21 horizontal
22 Vertical Linear Expansion 23 randomly generating a transition mode
15. How to control the display of horizontal and vertical scroll bars?
<body style= "Overflow-y:hidden" > Remove x Axis
<body style= "Overflow-x:hidden" > Remove Y axis
<body scroll= "No" > not obvious
16. How to add Flash animation in FrontPage2000?
In FrontPage2000, click [Insert]->[Advanced]->[plugin], in the pop-up window, set
The size of the Flash file and other information, OK.
17. The format for adding annotations is:
!--[annotation content ...] ]--〉
18. How to add e-mail links to the Web page and display the intended theme?
〈a href=mailto:jian08@126.com?subject= good, yes. Haha 〉......〈/a〉
19. Define this page keyword, you can add the following code in 〈head〉〈/head〉:
〈meta name= "Keywords" content= "China,enterprise,business,net"
Content contains keywords that you can set yourself.
Here's a technique where you can repeat a word so you can improve your site's ranking, such as:
〈meta name= "Keywords" content= "China,china,china,china"
20.ie5.0 part of the shortcut key:
A: Turn on find function: ctrl+f
Close browser window: ctrl+w
Open the Address bar drop-down list box: F4
Refresh: F5
Save the current Web page to your Favorites list: Ctrl+d
Open a copy of the current IE window: CTRL + N
Stop downloading the current page: ESC
The cursor moves quickly to the beginning of the page: Home
The cursor moves quickly to the end of the page:
Open a new Address type window: Ctrl+o
Open Favorites: Ctrl+i
Open History folder: Ctrl+h
Open the default home page for browser settings: Alt+home
21. Add to Favorites:
〈a href=window.external.addfavorite (' http://link ', ' Description
');" Add to Favorites 〈/a〉
22. Set as homepage:
〈a href=#
Onclick=this.style.behavior= ' url (#default #homepage) '; this.sethomepage
('
23. Customize the browser address bar before the small icon:
A: Add the following statement between the 〈head〉〈/head〉 of the page: 〈link rel= "Shortcuticon"
href= "Http://.../icon.ico" can be. Where Icon.ico is the icon file for 16x16,
Do not color more than 16 colors.
24. Place the scroll bar on the left side of the browser window
A: Add Dir=rtl in <body>, that is, <body dir=rtl>.
25. Let the background picture not scroll
IE browser supports a Body property bgproperties, which allows the background to not scroll:
〈body background= "picture file" bgproperties= "fixed"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.