Summary of common tips for web coding_javascript skills
1. Let the browser window never have scroll bars.
2. No horizontal scroll bar
3. No vertical scroll bar
2. How to dither an image.
< p class="font1" style="writing-mode=tb-rl;height:200px" width=300>
Shengxia Shangtao
A night of exposed yellow powder fragrance Yuan Yunfu
Yaochi was newly cooled last night Wang Jinling
A white lotus bloomed at will Wu Guannan
New rain welcomes Autumn desire fills the pond and brings together the people. ;/html>
15. IE6 already supports custom cursor!
Syntax format cursor:url (icon) //cur or ani file.
cur is WINDOWS The cursor file in the cursor file is actually the same as the icon (ICON) file except that the value of one position in the file header is different.
ani is an animated cursor (icon) file in WINDOWS.
Underline link
< a href="#" class="r1">Double underline link
Additional explanation:
a:hover means The style when the mouse moves over.
a:link represents the style of the link.
a:active represents the style of the currently active link.
a:visited represents the style of the visited link.
25. Use CSS to add shadow effects and text stroke effects to text.
.glow{FONT-SIZE: 9pt; FILTER: Glow(Color=#000000, Strength=1)}
//Text stroke effect
.shadow {FONT-SIZE: 9pt; FILTER: DropShadow(OffX=1, OffY=1, DropShadow(OffX=1, OffY=1, color:#111111); COLOR: #ffffff; FONT-FAMILY: "宋体"}
//Add shadow effect
Additional instructions:
To achieve the effect, these two filters must be added to:
xxxxxxxxx
, and leave enough space to display shadow or stroke, otherwise there will be half shadow or stroke phenomenon.
26. How to make a colored drop-down menu.
27. Regarding the problem of bright and dark borders in DW4 tables.
There are no property settings for bright and dark borders in the table panel of DW4, because NC does not support them, so you can only add them in the code.
bordercolorlight="#999999" bordercolordark="#000000"
You can also use Css to define a class. For example:
Then add ?lt;table class= in the table where you want to add the effect "bordercolor">
28, automatically displays the last updated date of the homepage.
<script> <br>document.write("Last updated date: " document.lastModified "") <br></script>
29. How to make the scroll bar appear on the left?
I think someone actually posted this code in the forum. It's very interesting. It does take care of some lefties, haha!
Is your scroll bar on the left?< ;/td> |
icon?
First of all, you must understand that the so-called icon (Icon) is a special graphic file format with .ico as the extension. You can find an icon-making software on the Internet, which has unique specifications: the size of the icon is 16 * 16 (in pixels); the color must not exceed 16 colors. Add the following content to the HEAD section of the web page file: and place it in the root directory of the web page .
31. How to prevent horizontal scroll bars from appearing on the web page on an 800*600 display!
Set to , the table width in the web page is 778.
32. Explanation on .
In web pages, you often see , which is the version information that declares the HTML file.
33, Use pictures to close the form.

Additional explanation: How to use ACTIVEX! , no more warning windows?
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" >
Close the window without prompt
34. It is forbidden to right-click the mouse to view the source code of the web page.
Supplementary instructions:
The mouse is completely blocked, and the right mouse button and web page text can be blocked.
< body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
35. Use the button to view the source code of the web page.
36. How to use text links to implement the SUBMIT function of buttons?
OK
This text should be placed in the form. formname is the name to be written in the form here,

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

It is difficult to implement collection-like functions in the Go language, which is a problem that troubles many developers. Compared with other programming languages such as Python or Java, the Go language does not have built-in collection types, such as set, map, etc., which brings some challenges to developers when implementing collection functions. First, let's take a look at why it is difficult to implement collection-like functionality directly in the Go language. In the Go language, the most commonly used data structures are slice and map. They can complete collection-like functions, but

Java is a powerful programming language that is widely used in various types of software development. In Java development, scenarios that often involve sorting collections are involved. However, if performance optimization is not performed for collection sorting, the execution efficiency of the program may decrease. This article will explore how to optimize the performance of Java collection sorting. 1. Choose the appropriate collection class In Java, there are many collection classes that can be used for sorting, such as ArrayList, LinkedList, TreeSet, etc. Different collection classes are in

Common concurrent collections and thread safety issues in C# In C# programming, handling concurrent operations is a very common requirement. Thread safety issues arise when multiple threads access and modify the same data at the same time. In order to solve this problem, C# provides some concurrent collection and thread safety mechanisms. This article will introduce common concurrent collections in C# and how to deal with thread safety issues, and give specific code examples. Concurrent collection 1.1ConcurrentDictionaryConcurrentDictio

How to use the Where method in Laravel collection Laravel is a popular PHP framework that provides a wealth of functions and tools to facilitate developers to quickly build applications. Among them, Collection is a very practical and powerful data structure in Laravel. Developers can use collections to perform various operations on data, such as filtering, mapping, sorting, etc. In collections, the Where method is a commonly used method for filtering the collection based on specified conditions.

Use the addAll() method of the HashSet class to add all elements in a collection to another collection. HashSet is an implementation class in the Java collection framework. It inherits from AbstractSet and implements the Set interface. HashSet is an unordered set based on a hash table, which does not allow duplicate elements. It provides many commonly used methods to operate elements in the collection, one of which is the addAll() method. The function of the addAll() method is to add the specified

Practical Guide to Where Method in Laravel Collections During the development of the Laravel framework, collections are a very useful data structure that provide rich methods to manipulate data. Among them, the Where method is a commonly used filtering method that can filter elements in a collection based on specified conditions. This article will introduce the use of the Where method in Laravel collections and demonstrate its usage through specific code examples. 1. Basic usage of Where method

Iterator interface The Iterator interface is an interface used to traverse collections. It provides several methods, including hasNext(), next() and remove(). The hasNext() method returns a Boolean value indicating whether there is a next element in the collection. The next() method returns the next element in the collection and removes it from the collection. The remove() method removes the current element from the collection. The following code example demonstrates how to use the Iterator interface to iterate over a collection: Listnames=Arrays.asList("John","Mary","Bob");Iterator

The intersection and union of arrays can be calculated efficiently using the PHP collection class. The specific steps are as follows: Use the intersect() method to calculate the intersection: elements that appear in two arrays at the same time. Use the union() method to calculate the union: the elements that appear in any array. Practical case: Compare shopping cart contents to understand users’ overlapping products and unique products.
