1. Make the browser window never show a scroll bar.
<Body style = "overflow-x: hidden; overflow-y: hidden"> or <body style = "overflow: hidden"> or <body scroll = no> 〉
2. No horizontal scroll bar
<Body style = "overflow-x: hidden"> "〉
3. No vertical scroll bar
<Body style = "overflow-y: hidden"> "〉
2. How to shake the image.
<SCRIPT language = javascript1.2> 〉
<〈! --
Var rector = 2
Var stopit = 0
Var a = 1
Var count = 0
Function init (which ){
Stopit = 0
Shake = which
Shake. style. left = 0
Shake. style. top = 0
}
Function rattleimage (){
If ((! Document. all &&! Document. getElementById) | stopit = 1 | count = 100)
Return
Count ++
If (a = 1 ){
Shake. style. top = parseInt (shake. style. top) + rector
}
Else if (a = 2 ){
Shake. style. left = parseInt (shake. style. left) + rector
}
Else if (a = 3 ){
Shake. style. top = parseInt (shake. style. top)-rector
}
Else {
Shake. style. left = parseInt (shake. style. left)-rector
}
If (a <4)
A ++
Else
A = 1
SetTimeout ("rattleimage ()", 50)
}
Function stoprattle (which ){
Stopit = 1
Count = 0
Which. style. left = 0
Which. style. top = 0
}
// --> //--〉
</SCRIPT> 〉
<Style >. shakeimage {POSITION: relative}
</Style> 〉
〉
4. How to add colors to the horizontal line in DW.
This setting is not available in DW. You can only add the code in HTML:
5. How can I enable full-screen flash playback on a webpage?
You only need to set the WIDTH and HEIGHT parameters to 100% in the HTML of the swf File. Of course, you can also set them in the settings of the HTML File exported from Flash by opening the File menu; select Publish Settings to bring up the export Settings dialog box. In the Dimensions option under the HTML Tag, select Percent (percentage) from the drop-down list, and enter 100 in the WIDTH and HEIGHT boxes. that's all.
6. Why can't I find the Flash animation I inserted in DW!
Restart and restart the computer. Now IE6 has bound this program.
7. In Flash, if the right mouse button is blocked? What do FS commands mean?
Fscommand ("fullscreen", "true/false"); (full screen setting, TRUE on, FALSE off)
Fscommand ("showmenu", "true/false"); (right-click menu settings, TRUE display, FALSE Do Not Display)
Fscommand ("allowscale", "true/false)
Fscommand ("trapallkeys", "true/false"); (shortcut key setting, TRUE shortcut key on, FALSE shortcut key off)
Fscommand ("exec"); (called by the EXE program)
Fscommand ("quit"); (exit to close the window)
8. What is an invisible button in Flash.
Use the hit frame in the button to create a button that is completely transparent only in the sensing area.
9. How to link Flash animation.
Dreamweaver cannot create a link for Flash. You can only add a link with geturl () in Flash, and then insert it into Dreamweaver.
10. layer skills in DW.
Layers can be nested. I personally give you a tip. In the layer panel, press CTRL and drag and drop the layer to where you want to become its child layer, I think this is the simplest and most intuitive method.
11. How can I change the shape of the mouse?
CSS style panel in Dreamweaver4:
Press CTR + SHIFT + E -- In the displayed style sheet dialog box, click NEW, And the edit dialog box appears. In the last extensions-cursor on the left, select the pointer format you want to change, apply the style sheet where you want to change it. If the whole page is added to "body bgcolor =" #003063 "text =" # ffffff "id = all.
<Span style = "cursor: x'> example </span> 〉
Here (text) is selected as the object, and you can change it to another one, such as link.
X can be equal to = hand, crosshair (Cross), text (text cursor), wait (as the name suggests), default (default effect), help (question mark) e-size (right arrow), ne-resize (right arrow), nw-resize (left arrow), w-resize (left arrow) sw-resize, s-resize, se-resize, and auto ).
12. Use CSS as a stamp. Check it out!
<Input type = button value = do I look like a stamp? Style = "height: 80px; border: 2px dashed # cccccc"> "〉
13. Friends who frequently access the Internet may have visited such websites. when they enter the home page, a window will pop up immediately. How can this problem be solved!
This javascript code can be used to extract the blue forum.
[1. The most basic pop-up window Code]
In fact, the code is very simple:
<Script language = "javascript"> "〉
<〈! --
Window. open ('page.html ')
--> --〉
</SCRIPT> 〉
Because it is a piece of javascripts code, should they be put? Lt; script language = "javascript"> between the tag and </script>. <〈! -- And --> are used for some earlier browsers. The code in the labels is not displayed as text in these old browsers. This is a good habit.
Window. open ('page.html ') is used to control the pop-up window page.html. If page.html is not in the same path as the main window, the path, absolute path (http: //), and relative path (../) should be specified before. You can use single quotes and double quotes, but do not mix them.
This piece of code can be added to any location of HTML, between head and head, <body bgcolor = "#003063" text = "# ffffff" id = all> </body> can also be executed earlier, especially when the Page code is long, and try to bring the page up early.
[2. After setting, the pop-up window is displayed]
Let's talk about the settings in the pop-up window. You just need to add something to the code above.
We will customize the appearance, size, and position of the pop-up window to adapt to the specific situation of the page.
<Script language = "javascript"> "〉
<〈! --
Window. open ('page.html ', 'newwindow', 'height = 100, width = 400, top = 0, left = 0, toolbar = no, menubar = no, scrollbars = no, resizable = no, location = no, status = no ')
// Write a row
--> --〉
</SCRIPT> 〉
Parameter description:
<Script language = "javascript"> the js SCRIPT starts;
Window. open command to pop up a new window;
'Page.html 'name of the pop-up window;
'Newwindow' indicates the name of the pop-up window (not the file name). It is optional and can be replaced by null;
Height = 100 window height;
Width = 400 window width;
Top = the pixel value between the 0 window and the top of the screen;
Left = 0 the pixel value between the window and the left of the screen;
Toolbar = no indicates whether to display the toolbar. yes indicates display;
Menubar and scrollbars indicate the menu bar and scroll bar.
Resizable = no: whether to change the window size. yes: yes;
Location = no indicates whether the address bar is displayed. yes indicates yes;
Status = no whether to display the information in the status bar (usually the file has been opened), yes is allowed;
</SCRIPT> end of js SCRIPT
[3. Function Control pop-up window]
The following is a complete code.
<Html> 〉
<Head> 〉
<Script LANGUAGE = "javascript"> "〉
<〈! --
Function openwin () {window. open ("page.html", "newwindow", "height = 100, width = 400, toolbar =
No, menubar = no, scrollbars = no, resizable = no, location = no, status = no ")
// Write a row
}
// --> //--〉
</Script> 〉
</Head> 〉
<Body onload = "openwin ()"> ()"〉
... Any page content...
</Body> 〉
</Html> 〉
A function openwin () is defined here, and the function content is to open a window. There is no purpose before calling it.
How to call it?
Method 1: The window pops up when the browser reads the page;
Method 2: The window pops up when the browser leaves the page;
Method 3: call with a connection:
<A href = "#" onclick = "openwin ()"> open a window </a> 〉
Note: "#" is a virtual connection.
Method 4: call with a button:
<Input type = "button" onclick = "openwin ()" value = "open window"> "〉
14. No table is used for writing. Let's take a look. Nothing.
<Html> 〉
<Head> 〉
<Title> Jiangnan Lotus fan surface </title> 〉
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"> "〉
<Style type = "text/css"> "〉
<〈! --
. Font1 {font-size: 12px; color: #999999; text-decoration: none}
A {font-size: 12px; color: #999999; text-decoration: none}
A: hover {font-size: 12px; color: #000000; text-decoration: none}
--> --〉
</Style> 〉
</Head> 〉
<Body bgcolor = "# FFFFFF" text = "#000000"> "〉
<Div class = "font1" style = "writing-mode = tb-rl; height: 200px" width = 300> 〉
<P> Shang Tao in midsummer
<P> <a href = "index.htm"> one-night dew mark, yellow powder, Yuan yunfu </a> 〉
<P> Yao Chi Wang Jinling, Xin Liang, last night
<P> A white lotus flower opens Wu guannan at will
<P> Xin Yu, Ying Qiu, Xiang Tang, Qi Xinmin
<P> 10 Li
<P> Qinglian, Lu shile
</Div> 〉
</Body> 〉
</Html> 〉
15. IE6 supports custom cursor!
Syntax format: cursor: url (icon) // cur or ani file.
Cur is a cursor file in WINDOWS. The cursor file and the ICON file are the same except that the file header has a different position value.
Ani is an animated cursor (icon) file in WINDOWS.
<Style type = "text/css"> "〉
<〈! --
. Unnamed1 {cursor: url (arrow2c. cur )}
--> --〉
</Style> 〉
16. Scroll Subtitles Made with marquee. I just saw a friend on the forum asking.
Syntax:
Align = # | top | middle | bottom // alignment mode)
BEHAVIOR = ALTERNATE | SCROLL | SLIDE // method of moving
BGCOLOR = color // background color
DIRECTION = DOWN | LEFT | RIGHT | UP // DIRECTION of movement
Loop = n // number of cycles (more than one Loop by default)
Scrolldelay = milliseconds // latency
Height = # width = # // Area
Hspace = # vspace = # // blank area
Scrollamount = # // speed of movement
<Marquee align = top behavior = alternate bgcolor = #000000 height = 60 width = 433 scrollamount = 5> </marquee> 〉
17. Some fonts also exist in Flash 5. Why is the split? Is there a solution.
This is a common problem! It may be poor for font support! I made a transparent GIF image format and then poured it into it.
18. How can I achieve the "add to Favorites" function in the flash webpage?
Add getUrl ("java script: window. external. addFavorite (http://www.webjx.com ', 'web tutorial net')") in ')")
19. Differences between dynamic attributes of text and input attributes in Flash.
The value of input text can be changed by the user or program at runtime.
Ynamic text can only be modified by the program.
20. How to call Dreamweaver in IE for editing.
I believe that many friends who are using WinME or Window2000 will encounter this problem. It's easy to open our notebook program and save it as a *. reg file. Double-click it to add the information to the Registry.
REGEDIT4
[HKEY_CLASSES_ROOT.htm OpenWithListDreamweaver]
Export hkey_classes_root.htm OpenWithListDreamweavershell]
Export hkey_classes_root.htm OpenWithListDreamweavershelledit]
Export hkey_classes_root.htm OpenWithListDreamweavershelleditcommand]
@ = "" C: Program FilesMacromediaDreamweaver 4dreamweaver.exe "" % 1 ""
21. Set the table dotted line.
Method 1: Create a 1X2 graph. Black and white, and then use the form as a line.
Method 2: Set in css to ie5. 5.
Style = "BORDER-LEFT: #000000 1PX DASHED; BORDER-RIGHT: #000000 1PX DASHED; BORDER-TOP: #000000 1PX DASHED; BORDER-BOTTOM: #000000 1PX DASHED"
22. Check the effect of calling the HHCtrl control on the webpage.
The Code is as follows:
<Object id = "HHC" type = "application/x-oleobject" classid = "clsid: adb880a6-d8ff-11cf-9377-00aa003b7a11"> </object> <script> HHC. textPopup ("Haha, Hello everyone, I am a dream! "," ", 51); </script> 〉
22. How to make an image fade from shortest to deep.
<SCRIPT language = javascript1.2> 〉
<〈! --
Function high (which2 ){
Theobject = which2
Highlighting = setInterval ("highlightit (theobject)", 50)
}
Function low (which2 ){
ClearInterval (highlighting)
Which2.filters. alpha. opacity = 40
}
Function highlightit (cur2 ){
If (cur2.filters. alpha. opacity <100)
Cur2.filters. alpha. opacity + = 10
Else if (window. highlighting)
ClearInterval (highlighting)
}
</Script> 〉
"〉
23. Double-click the left mouse button to scroll the background and click STOP.
<SCRIPT language = javascript> 〉
Var currentpos, timer;
Function initialize ()
{
Timer = setInterval ("scrollwindow ()", 16 );
}
Function SC (){
ClearInterval (timer );
}
Function scrollwindow ()
{
Currentpos = document. body. scrollTop;
Window. scroll (0, ++ currentpos );
If (currentpos! = Document. body. scrollTop)
SC ();
}
Document. onmousedown = SC
Document. ondblclick = initialize
</SCRIPT> 〉
24. How to set different text link effects on the same page.
The Code is as follows:
<HTML> <HEAD> <TITLE> how to set styles for different text links on the same page </TITLE> 〉
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"> "〉
<Style type = "text/css"> "〉
<〈! --
A: hover {font-size: 9pt; color: # FF0000; text-decoration: underline}
A: link {font-size: 9pt; color: #006699; text-decoration: underline}
A: visited {font-size: 9pt; color: #006699; text-decoration: underline}
A: active {font-size: 9pt; color: # FF0000; text-decoration: none}
A. r1: hover {font-size: 9pt; color: # FF0000; text-decoration: underline overline}
A. r1: link {font-size: 9pt; color: #000000; text-decoration: underline overline}
A. r1: visited {font-size: 9pt; color: #99CC00; text-decoration: underline overline}
A. r1: active {font-size: 9pt; color: #000000; text-decoration: underline overline}
--> --〉
</Style> 〉
</Head> 〉
<Body bgcolor = "# FFFFFF" text = "#000000"> "〉
<A href = "#"> underline link </a> 〉
<P> </p> 〉
<A href = "#" class = "r1"> double-underline link </a> 〉
</BODY> 〉
</HTML> 〉
Note:
A: hover indicates an outdated mouse style.
A: link indicates the link style.
A: active indicates the style of the current active connection.
A: visited indicates the connection style that has been accessed.
25. Add the shadow effect and text Stroke Effect to the text with CSS.
. 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 the shadow effect
Note:
To achieve the effect, these two filters must be added to <td class = glow or shadow> <div> xxxxxxxxx </div> </td>.
And leave enough space to show the shadow or stroke. Otherwise, the shadow or stroke may occur.
26. How to Make a color drop-down menu.
<Select style = "FONT-SIZE: 10px; COLOR: # ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: # ff6600;" size = 1> 〉
<Option selected >:: Dreamweaver4 ::</option> 〉
<Option >:: Flash5 ::</option> 〉
<Option >:: Firewoks4 ::</option> 〉
</Select> 〉
27. About the bright and dark borders in the DW4 table.
In the table panel of DW4, there is no attribute setting for the highlighted border and the hidden border, because NC does not support it, only you have added it in the code.
Bordercolorlight = "#999999" bordercolordark = "#000000"
You can also define a class with Css. For example:
<Style> 〉
. Bordercolor {bordercolorlight: #999999; bordercolordark: #000000}
</Style> 〉
Then add it to the table for adding results? Lt; table class = "bordercolor"> "〉
28. The last update date of the home page is automatically displayed.
<Script> 〉
Document. write ("Last Updated Date:" + document. lastModified + "")
</Script> 〉
29. How to Make the scroll bar appear on the left?
I think someone posted this code on the Forum. It is very interesting. It does take care of some left-handed people!
<Html dir = "rtl"> "〉
<Body bgcolor = "#000000" text = "# FFFFFF"> "〉
<Table height = 18 width = 212 align = center bgcolor = # FFFFFF dir = "ltr" cellspacing = "1" cellpadding = "0"> "〉
<Tr> 〉
<Td bgcolor = "# FF0000"> is your scroll bar on the left? </td> 〉
</Tr> 〉
</Table> 〉
</Body> 〉
</Html> 〉
30. How do I add a small icon in front of the website?
First, you must understand that the so-called Icon is a special graphic file format, which uses. ico as the extension. You can find a production icon software on the Internet. It has a unique specification: The Icon size is 16*16 (in pixels), and the color cannot exceed 16 colors. Add the following content to the header of the webpage file: <link rel = "shortcut icon" HREF = "http://www.webjx.com/graphic name"> and put it in the root directory of the webpage.
31. On the 800*600 display, how can I prevent the scroll bar from appearing horizontally on the webpage!
Set "body leftmargin =" 0 "topmargin =" 0 "> to 778 in width.
32. About <〈! DOTYPE> description.
On the webpage, you will often see <〈! Doctype html public '-// W3C // dtd html 4.01 // en'> declares the version information of the HTML file.
33. Use an image to close the form.
<A href = "java script: window. close () "> </A> 〉
Additional instructions: How to Use ACTIVEX !, No longer warning window?
<Html> 〉
<Head> 〉
<Object id = closes type = "application/x-oleobject"
Classid = "clsid: adb880a6-d8ff-11cf-9377-00aa003b7a11"> "〉
<Param name = "Command" value = "Close"> </object> 〉
</Head> 〉
<Body bgcolor = "#003063" text = "# ffffff" id = all> <a href = "#" onclick = "closes. click (); "> No prompt for closing the window </a> 〉
</Body> 〉
</Html> 〉
34. Do not right-click to view the source code of the webpage.
<SCRIPT language = javascript> 〉
Function click ()
{If (event. button = 2) {alert ('hello, welcome! ')}}
Document. onmousedown = click
</SCRIPT> 〉
Note:
The mouse is completely blocked, which can block the right mouse and webpage text.
<Body oncontextmenu = "return false" ondragstart = "return false" onselectstart = "return false"> "〉
35. click the button to view the source code of the webpage.
<Input type = "BUTTON" value = "view source code" onClick = 'window. location = "view-source:" + window. location. href 'name = "BUTTON"> "〉
36. How can I use a text link to implement the button's SUBMIT function?
<A href = "#" onclick = "formname. submit ()"> OK </a> 〉
This text should be placed in form. Formname is the name to be written in form. <form name = form111> it should be form111.submit ()
37. How do I create an empty link?
Add #
38. Use IFRAME to insert a webpage into the webpage.
I often see another webpage on many web pages. I thought it was a framework. Otherwise, I used IFRAME, which is only applicable to IE, NS does not support <IFRAME>, but the surrounding words are displayed only when the browser does not support iframe marking. For example, you can add some reminder words.
Attention! Next, let me learn how to use it.
Analysis Code: <iframe src = "iframe.html" name = "test" align = "MIDDLE" width = "300" height = "100" marginwidth = "1" marginheight = "1" frameborder =" 1 "scrolling =" Yes "> </iframe> 〉
Src = "iframe.html"
Used to display the webpage source in IFRAME. A relative or absolute path must be added.
Name = "test"
This is required by the target parameter of the link tag.
Align = "MIDDLE"
Optional values: left, right, top, middle, and bottom.
Width = "300" height = "100"
The width and length of the frame window, in pixels.
Marginwidth = "1" marginheight = "1"
The space reserved by the inserted file and the border.
Frameborder = "1"
1 indicates the display border, and 0 indicates the display. (Yes or no)
Scrolling = "Yes"
If Yes is used, the volume is allowed (inner). If No is used, the volume is not allowed.
39. What is the usage of <tbody>?
The tbody usage is said to enhance table control. For example:
<Table> <tbody> 〉........ </Tbody> </table> 〉
If the tbody code is not manually written, you can only save it
The tbody code is generated for the saved file in the table. (Even if your table does not have
Tbody code, which will also be generated when IE5 is saved ).
40. Alt and Title are prompt language labels. Note the differences between them.
When we browse a webpage, when you move your cursor over an image object or text link, a prompt box is displayed in the lower right corner of the mouse. Comment on the target. In some cases, its role is very important.
Alt is used to prompt the image. Title is used to prompt link text or common text.
The usage is as follows:
<P Title = "prompt for link text"> text </p> 〉
<A href = "#" Title = "link text prompt"> text </a> 〉
"〉
Additional knowledge: <TITLE> <ALT> how to wrap multiple lines? Press Enter in the source code.
<A href = "#" Title = "resume
Name: Zhang Pei
Network Name: I am a transient dream
Gender: male, not female.
Hobbies: creating web pages and developing software "> resume </a> 〉
Example: Resume
41. use javascript code to implement the blinking button.
<Body> 〉
<Form method = "POST" action = "-- WEBBOT-SELF --"> --"〉
<Input type = "button" name = SUB value = "blinking" id = flashit style = "BORDER: 1px solid; BACKGROUND-COLOR: # FFFFFF"> "〉
</Form> 〉
<Script> 〉
If (document. all & document. all. flashit)
{
Var flashelement = document. all. flashit
If (flashelement. length = null)
Flashelement [0] = document. all. flashit
Function changecolor (which)
{
If (flashelement [which]. style. color = '#800000 ')
Flashelement [which]. style. color = "#0063A4"
Else
Flashelement [which]. style. color = "#800000"
}
If (flashelement. length = null)
SetInterval ("changecolor (0)", 1000)
Else
For (I = 0; I <flashelement. length; I ++)
{
Var tempvariable = 'setinterval ("changecolor ('+ I +')", '+' 1000 )'
Eval (tempvariable)
}
}
</Script> 〉
</Body> 〉
42. CSS defines the color border for the image.
Img {border: 1px solid red}
43. How to Make the inserted FLASH transparent in DW.
Method 1: Select swf and open the original code window. Before </object>, enter <param name = "wmode" value = "transparent"> "〉
Method 2: Choose Flie> Publist Settings> HTML> Window Mode in Flash and select transparent.
44. In DW editing text, how do I enter a space?
The question of entering spaces seems to have become a common issue in DW. You can avoid this by adjusting the Input Method to the full-width mode. This document uses artificial intelligence ABC as an example. Shift + Space to switch to the full-angle state.
45. Why is the image display in my DW abnormal.
First, it may be because you define and are using a site, and your HTML file or image is not included in this site. Therefore, dreamweaver uses the file Protocol
It is a pity that IE does not support the file protocol in src, so the image cannot be displayed.
Second, it may be that the folder or image name of the image is Chinese or cannot be displayed on the webpage.
46. How can I test the loading of a flash video on a local machine?
I think this may be the question that many people are asking. In fact, it is very simple. In Test, select View-> Show Streaming.
47. There are several ways to create a vertical line on the webpage.
Method 1: Use a pixel chart!
If you use the Edit → Preferences… of Dreamwever... → Spacer Image in Layout View creates a pixel Image file named spacer.gif by default.
Code:
<Table border = "0" cellspacing = "0" cellpadding = "0"> "〉
<Tr> 〉
<Td bgcolor = "# FF0000" height = "200"> </td> 〉
</Tr> 〉
</Table> 〉
Method 2: Use the form to fill in the color! Delete the content in <td> </td>.
<Table border = "0" cellspacing = "0" cellpadding = "0"> "〉
<Tr> 〉
<Td bgcolor = "# FF0000" height = "200" width = "1"> </td> 〉
</Tr> 〉
</Table> 〉
Method 3: Use a horizontal bar.
<Hr color = "red" width = "1" size = "100%"> "〉
48. Move the mouse to change the layer size. -- Look at Microsoft's practices.
<Script> 〉
Document.exe cCommand ("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 Connect text to add to favorites.
<A href = "java script: window. external. AddFavorite (http://www.webjx.com, Web Explorer)"> click to add to favorites </a> 〉
50. Excessive
<Meta http-equiv = "Page-Exit" content = "revealTrans (Duration = 3, Transition = 5)">
The Duration value is the dynamic transition time of the webpage, in seconds.
Transition is a transitional mode. Its value ranges from 0 to 23, corresponding to 24 Transition modes respectively. See the following table:
0-box contraction 1-box radiation
2 circular contraction 3 circular radiation
4 From bottom up 5 from top down
6 from left to right 7 from right to left
8 vertical blinds 9 horizontal blinds
10 horizontal blinds 11 vertical blinds
12 dissolve at will 13 expand from left and right ends to the middle
14 expand from the center to the left and right sides 15 expand from the up and down ends to the middle
16. expand from the middle to the bottom. 17. expand from the top right to the bottom left.
18 expand from bottom right to top left 19 from top left to bottom right
20. Expand the 21 horizontal lines from the lower left corner to the upper right corner.