33. Use pictures to close the form.
<A href="java script:()"><IMG height=20 width=20 alt="Close the window" src="" border=0></A>
Additional Instructions: How to use ACTIVEX! , no longer warning window?
<html>
<head>
<object id=closes type="application/x-oleobject"
class>
<param name="Command" value="Close"></object>
</head>
<body bgcolor="#003063" text="#ffffffff" id=all> <a href="#" onclick="();">Close the window without prompt</a>
</body>
</html>
34. Right-click to view the web page source code.
<SCRIPT language=javascript>
function click()
{if (==2) {alert(`Hello, welcome!`) }}
=click
</SCRIPT>
Additional Notes:
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. View the web page source code through the button.
<input type="BUTTON" value="View source code" onClick= ` = "view-source:" + ` name="BUTTON">
36. How to use text connection to implement the SUBMIT function of buttons?
<a href="#" onclick="()">OK</a>
This text should be placed in the form. formname is the name to be written in form here. <form name=form111>, then it should be ()
37. How to make an empty link?
add#
38. Use <IFRAME> to insert web pages into web pages.
Often I see another web page in many web pages, and I thought it was a framework. In fact, it was not. It was used. It was only applicable to IE. NS does not support <IFRAME>, but the words around will only be displayed when the browser does not support the iframe tag. For example, you can put some reminder words and sentences.
Pay attention! Please learn how it is used with me below.
Analysis code: <iframe src="" name="test" align="MIDDLE" width="300" height="100" marginwidth="1" marginheight="1" frameborder="1" scrolling="Yes"> </iframe>
src=""
Used to display the source of the web page in <IFRAME>, and it is necessary to add relative or absolute paths.
name="test"
This is what is required for the target parameter of the link marker.
align="MIDDLE"
The optional values are left, right, top, middle, bottom, and not very useful.
width="300" height="100"
The width and length of the frame window are in pixels.
marginwidth="1" marginheight="1"
The inserted file and the space reserved by the box edge.
frameborder="1"
Use 1 to display the border, and 0 to display it. (Can be yes or no)
scrolling="Yes"
Use Yes to allow scrolling (internal fixed), and No to allow scrolling.
39. What is the usage of <tbody>?
The usage of tbody is said to strengthen control over tables. For example:
<table><tbody>……..</tbody></table>
If the tbody code is not written by hand, you can only save it as if you open a web page in IE5 when you use IE5 to open it
Then, your saved as file will generate tbody code in the table. (Even if your form doesn't have it at all
tbody code, it will be generated for you when IE5 save as).
40, Alt and Title are both prompt language tags, please pay attention to the difference between them.
When we browse the web page, when the mouse stays on an image object or text link, a prompt message box sometimes appears in the lower right corner of the mouse. Make certain comments on the target. In some cases, its role is very important.
alt used to give a picture. Title is used to prompt link text or ordinary text.
The usage is as follows:
<p Title="Tip to link text">Text</p>
<a href="#" Title="Tip to link text">text</a>
<img src="Picture.gif" alt="Give Picture Tips">
Supplementary knowledge: How to break multiple lines in <TITLE><ALT>? Enter in the source code.
<a href="#" Title="Collection
Name: Zhang Pei
Net name: I am Shimeng
Gender: Male, not female.
Hobbies: Web page production, software development">CV</a>
For example: resume
41. Use javascript code to implement the flashing button.
<body>
<form method="POST" action="--WEBBOT-SELF--">
<input type="button" name=SUB value="flashing" id=flashit style="BORDER: 1px solid ;BACKGROUND-COLOR: #FFFFFF">
</form>
<script>
if (&&)
{
var flashelement=
if (==null)
flashelement[0]=
function changecolor(which)
{
if (flashelement[which].==`#800000`)
flashelement[which].="#0063A4"
else
flashelement[which].="#800000"
}
if (==null)
setInterval("changecolor(0)",1000)
else
for (i=0;i<;i++)
{
var tempvariable=`setInterval("changecolor(`+i+`)",`+`1000)`
eval(tempvariable)
}
}
</script>
</body>
42. CSS defines the color border for the picture.
img { border: 1px solid red}
43. How to make the inserted FLASH transparent in DW.
Method 1: Select swf, open the original code window, and enter: <param name="wmode" value="transparent"> before </object>
Method 2: Select transparent in Flie→Publish Settings→HTML→Window Mode
44. How to enter a space in DW editing text?
The issue of inputting spaces seems to have become a cliché in DW. It can be avoided by adjusting the input method to full-width mode. Take artificial intelligence ABC as an example. Press Shift+Space to switch to the full-width state.
45. Why is the graphics displayed in my DW not normal?
The first one: Maybe it's because you define and are using a site, and your HTML file or image is not within the area contained in this site, so dreamweaver uses the file protocol to
Describe the absolute path of the image. Unfortunately, IE does not support the use of file protocol in src, so the image cannot be displayed.
The second type: the folder or the name of the picture is in Chinese, and it cannot be displayed on the web page.
46. How to test the loading of flash videos on a local machine?
I think this may be a question that many people are asking. In fact, it is very simple. When testing, you can see it by selecting View->Show Streaming.
47. There are several ways to make a vertical line on a web page.
The first method: use a pixel map method!
If you use Spacer Image in Dreamwever's Edit→Preferences…→Layout View to create a pixel image file for you with the default name:.
In the code:
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FF0000" height="200" ><img src="" width="1" height="1"></td>
</tr>
</table>
The second method: the method of filling in the color with the form! Delete the in <td> </td>.
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FF0000" height="200" width="1"></td>
</tr>
</table>
The third method: use horizontal bars.
<hr color="red" width="1" size="100%">
48. About dragging the mouse, change the layer size. ──Look at what Microsoft does.
<script>
("2D-position",false,true);
</script>
<DIV contentEditable=true>
<DIV style="WIDTH: 300px; POSITION: absolute; HEIGHT: 100px; BACKGROUND-COLOR: red">Mobile layer</DIV>
</DIV>
49 , click to connect the text to add to your favorites.
<a href="java script:(`, `Web Teaching Network`)">Click to add to favorites</a>