Tip: you can modify some code before running
<p>Create a border for a no1 or 1 pixel table<br /><br />There are many methods, and the effects of different methods are not exactly the same.<br /><br />1. Use cellspacing and background color<br /><br /><Table border = "0" width = "200" cellspacing = "1" cellpadding = "0" bgcolor = "#000000"><br /><Tr bgcolor = "# FFFFFF"><br /><Td bgcolor = "# FFFFFF"> </td><br /><Td bgcolor = "# FFFFFF"> </td><br /></Tr><br /><Tr bgcolor = "# FFFFFF"><br /><Td bgcolor = "# FFFFFF"> </td><br /><Td bgcolor = "# FFFFFF"> </td><br /></Tr><br /></Table><br /><br />2. Use CSS<br /><br /><Table border = "1" width = "200" cellspacing = "0" cellpadding = "0" style = "border-collapse: collapse;"><br /><Tr><br /><Td> </td><br /><Td> </td><br /></Tr><br /><Tr><br /><Td> </td><br /><Td> </td><br /></Tr><br /></Table><br /><br />3. Use a 1-pixel table.<br /><br />You can insert a 1-pixel table into a cell and set the cell height to 1. It is better to use this method when creating dotted lines.<br />2. * page * Related issues<br /><br />No1. The page is completely centered<br /><br /><Table width = 100% height = 100%><br /><Tr><br /><Td align = "center" valign = "middle"><br /><Table width = 776 height = 445 bgcolor = "# EEEEEE"><br /><Tr> <td> Here is the second table </td> </tr><br /></Table><br /></Td><br /></Tr><br /></Table><br /><br /><br />No2: Disable page content selection<br /><br /><Body onselectstart = 'return false' oncopy = 'return false; 'oncut = 'return false; '><br /><br /><br />3. Add a sound to the webpage<br /><br /><Bgsound src = "URL" loop = "-1"><br /><br />Loop is set to-1, which indicates loop playback ..<br /><br />You can use FLASH to control more freedom ..<br /><br /><br />No4. js controls playing and stopping background music<br /><br /><A href = "#" onMouseOver = "document.all.music.src?'{.wav '"> play </a><br /><A href = "#" onMouseOver = "document. all. music. src ='' "> stop </a><br /><Bgsound src = "#" id = music><br /><br />3. * layer * Problems<br /><br />No1. layer is displayed on the top of flash<br /><br /><Param name = "wmode" value = "transparent"> FLASH will be transparent<br /><Param name = "wmode" value = "Opaque"> FLASH will remain Opaque<br />* Common JS functions *<br /><br />No1. custom pop-up window<br /><br /><HEAD><br /><SCRIPT language = "javascript"><br />Function cusWin (url, w, h ){<br />Window. open (url, 'newwin', 'width = '+ w +', height = '+ h)<br />}<br /></SCRIPT><br /></HEAD><br /><BODY><br /><A href = "###" onClick = "cusWin ('www .ccdiy.com ', 200,200)"> dialog box </a><br /></BODY><br /><br />The Script in <pead> </pead> defines a cusWin function, including the address and window size.<br />In <body> </body>, <a> uses the onClick event to trigger the cusWin function.<br />There are three parameters, the first represents the address, the second represents the width, and the third represents the height.<br /><br />No2. add to favorites<br /><br />Window. external. addFavorite ('URL', 'sitename ')<br /><br />Here, the URL should be changed to your URL, and the siteName should be changed to the name to be displayed in the Favorites folder.<br /><br />Set no3. as Homepage<br /><br />This. style. behavior = 'URL (# default # homepage) '; this. setHomePage ('URL ')<br /><br />Set the URL as the homepage URL.<br /><br /><br />No4. scroll without interrupting<br /><br /><Span id = "_ TV _box" style = "width: 150; height: 60; overflow: hidden" onMouseOver = "_ TV _start = false" onMouseOut = "_ TV _start = true"><br /><Span id = "_ TV _item" style = "position: relative; top: 0"><br /><Font color = red> Hello! Friend </font> <br><br />1. Welcome to dev-club <br><br />2. <a href = "http://www.dev-club.com/club/bbs/bbsView.asp? Boardid = 31 "> Go to php programming </a> <br><br />3. Go to joy asp. <br><br />4. Enter script <br><br />5. You will receive the best help in dev-club. <br><br /></Span><br /></Span><br /><br /><Script><br />Var _ TV _moveSpeed = 50; // speed control. The interval between two moves is ms.<br />Var _ TV _movestep = 1; // speed control, px of each movement<br />Var _ TV _post = 0; // working variable, current offset<br />Var _ TV _tvheight = 0; // working variable, moving the total height of the area<br />Var _ TV _start = true; // working variable, motion state control<br />/**<br />* Mobile Control<br />* Parameters are required for the first call.<br />*/<br />Function TV _item_move (v ){<br />If (v) {// enter for the first time<br />_ TV _item.innerHTML + = _ TV _item.innerHTML; // copy the content of the moving area, which is the key of this algorithm.<br />_ TV _tvheight = _ TV _item.offsetHeight; // obtain the total height of the moving area.<br />} <br />If (_ TV _start) {// is in the moving status<br />_ TV _post-= _ TV _movestep; // calculates the offset.<br />If (_ TV _post + _ TV _tvheight <_ TV _box.offsetHeight) // if it is moved, the bottom is exposed.<br />_ TV _post + = _ TV _tvheight/2; // increase the offset to a specified value.<br />_ TV _item.style.pixelTop = _ TV _post; // sets the offset.<br />} <br />SetTimeout ('TV _ item_move ()', _ TV _moveSpeed); // start the timer<br />} <br />/*** Start vertical scrolling ***/<br />TV _item_move (1 );<br /></Script><br /><br />* Link * related questions<br /><br /><br />No1. how to implement multiple link styles on the same page<br /><br />For example, when the mouse over some links, it shows 9PT, the word is red, the other is 10, the word is blue, and so on.<br /><br />A: a. sty1: link, a. sty1: visited {font-size: 12px; color: #333333}<br />A. sty1: hover {color: #666666}<br />A. sty2: link, a. sty2: visited {font-size: 14px; color: # cc0000}<br />A. sty2: link, a. sty2: visited {color: # CC3333}<br /><br />Two styles are defined here. The first is sty1, and the second is sty2. They are separated by this name, you only need to add this repentance in the <a> label. As shown below:<br /><br /><A href = # class = "sty1"> style 1 </a><br /><A href = # class = "sty2"> Style 2 </a><br /><br />* ASP * Problems<br /><br /><br />No1. search results highlighted<br /><br /><% = Replace (rs ("content"), keyword, "<B> <font color = red>" & keyword & "</font> </B> ") %><br /><br /><br />* Dreamweaver * related questions<br /><br />No1. font disorder<br /><br /><br />You can solve the problem by following the steps below.<br /><br />Edit & rarr; select the parameter (Ctrl + U).<br /><br />Then, find the font. Here we have the font setting options for the detailed View area and code area.<br /><br />It is generally set to.<br /><br />No2: Chinese character garbled characters in DW pages<br /><br />The following statement can be added between <pead> and </pead> to solve the problem.<br /><br /><META http-equiv = "Content-Type" content = "text/html; charset = gb2312"><br /><br />* Form * related questions<br /><br />No1. there are white edges on and off the form element<br /><br /><Table><br /><Tr><br /><Form><br /><Td> </td><br /></Form><br /></Tr><br /></Table><br /><br />As long as they are arranged in this way, there will be no problem.</p>
Tip: you can modify some code before running