Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the tips of html and javascript

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces how html and javascript tips are, the content is very detailed, interested friends can refer to, hope to be helpful to you.

one. Ignore the right button

Words or pictures

Parameter explanation:

Js script starts

Window.open command to pop up a new window

File path / file name the file name of the pop-up window

The name of the newwindow pop-up window (not the file name), which is optional and can be replaced by null

Width=400 window width

Height=300 window height

The pixel value of the top=0 window from the top of the screen

The pixel value of the left=0 window from the left side of the screen

Whether the toolbar is displayed by toolbar=no, or not by yes.

Menubar,scrollbars represents the menu bar and scroll bar.

Whether resizable=no is allowed to change the window size, yes is allowed.

Whether location=no displays the address bar. Yes is allowed.

Whether status=no displays the information in the status bar (usually the file is already open). Yes is allowed.

End of js script

four. Simple page encryption

five. The background image does not move when the page is pulled

Body {background-image:url (logo.gif)

Background-repeat:no-repeat;background-position:center}

six. Let the browser fail to save the page

seven. Randomly replace pictures

[xss_clean] (

The picture file is called 0.gif 1.gif 2.gif 3.gif 4.gif

eight. The window closes regularly.

First, put the following code into the area of the web page file:

Function closeit () {setTimeout ("self.close ()", 10000) / / Ms}

Then add in the bid, such as:

This window will automatically close after 10 seconds, and there will be no prompt.

ten. Automatic refresh of web page

Enter in the head section

Among them, 20 is automatically refreshed after 20 seconds, and you can change it to any value.

eleven. Automatic page turning of web pages

twelve. Keep layer at the front without being overwritten by Iframe and Object

Insert Iframe or Object into Layer to set z-Index value

# Front

# behind

Height=100% width=100% >

thirteen. Return to the previous page

"return to the previous page"

fourteen. Close the window

"close window"

fifteen. About the transparent background of iframe

16. "oncontextmenu=window.event.returnValue=false" will completely block the right mouse button

No can be used for Table

17.

Where to open the page

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report