Вы находитесь на странице: 1из 544

.

web-
32.988.027
681.324(075)
54

54 web-: / . . .:
, 2003. 544 .: .
ISBN 5-314-00033-4

32.988.027
681.324(075)

.
, , , .
, ,
, .

ISBN 5-314-00033-4 , 2003



14
ie
1. 19
2. 26
3. 56
4. Flash 86
5. . . ?
6. ,
7.
8.
9. 198
10. , 220
11. 238
12. 262
13. ?
14. 343
1.
2. HTML 4 355
3. JavaScript 408
4. Flash 443
5. ActionScript 477
6. Flash MX 519

537
539


is
16
17
18

1. 19
19
20
, 22
www.narod.ru 22
www.geocities.com 23
Web ' 23
HTML JavaScript 23
Flash 24
? 25
25

2. 26
www.narod.ru 26
27
28
31
31
36
41
www.geocities.com 48
48
50
52
52
www.spylog.runwww.hotlog.ru 53
www.thecounter.com 54
55

3. 56
HTML 56
57
58
58
59
65
66
68
83
84
84
85

4. Flash 86
Flash 87
Flash 87
- 90
91
91
93
94
95
96
97
97
98
ActionScript 99
Flash . 100
101
103
104
HTML- 105
106

5. ?
107
108
109
110
111

111
111
112
113
114

115

JavaScript 117
117
- 120
Fl?sh 123
131

6. ,
132
133
Outlook Express 133
Netscape 136
137
137
, 139

- 144
144
145
146
148
151
154

7. iss
155
157
161
162
. 164

172

175
176
179

182

8.
183
184
185
186
188
189
189
189
191
192
193
194
194
196

9. 198
198
198
200
203
204
204
205
206
207
210
211
212
:
212
214
JavaScript 214
217
218
8

10. , 220
220
220
Word 221
226
227
228
228
. . - . . 229
alt 233
233
234
Flash 235
Anti-aliasing 236
237

11. 238
238
239
239
- (Image map) 240
241
- 242
242
243
245
246
246
247
Flash 248
249
253
: 255
255
257
260
261

12. 262
262
263

Ter<FORM> 263
263
264
265
268
271
272
273
274
276
e-mail 277
277
277
279
279
279
. 280
Flash 281
281
289
298
web- e-mail 301
Flash JavaScript 303
307

13. ?
308
JavaScript 308
? 309
318
Flash 324
325
333
340
341
342

14. 343
343
344
345
10

HTML JavaScript 346


Flash 346
? 346

JavaScript 347
Flash 347
348

1.
350
352
, , , 353
Flash 353
HTML 354
JavaScript 354

2. HTML 4 355
355
HTML- 355
357
359
363
- 363
365
365
' 368
372
374
375
377
382
388
396
402
406

3. JavaScript 408
JavaScript, . . : 408
426
JavaScript 428
HTML 434
442
11

4. Flash 443
443
452
472

5. ActionScript 477
(Actions) 477
(Operators) 484
(Bitwise Operators) 487
(Compound Assignment) 488
(String Operators) 490
(Functions) 490
(String Function) 493
(Properties) 494
(Objects) 496
(Array) 496
(Boolean) 498
(1) 499
(Date) 499
(Key) 503
(Math) 505
(Mouse) 507
(MovieClip) 507
(Number) 509
(Object) 510
(Selection) 510
(Sound) 510
(String) 511
XML 513
XMLSocket 516
516

6. Flash MX 519
519
522
522
523
Properties () 523
525
Actions () 525
Reference () 527
12

Debugger () 527
Accessibility ( ) 527
ActionScript 528
FScrollBar 528
529

. 530
537
539




17


20 1.

21
22 1.

www.narod.ru
Web 23

. -
, -
.

www.geocities.com

Web

HTML JavaScript
24 1.

> ( HTML-
HTML) web-,
: HTML,
( ), ,
.
. - ,
, , .
, :
.

Flash
25

, Flash Flash MX.


6. -
, , -
, .

www.narod.ru
www.narod.ru 27

. 2.1. www.narod.ru


28 2.

Netscape Communicator .
, -
JavaScript -
. Internet Explorer , -
, .
www.narod.ru 29

! -
, .
( , ) .

(
), : -
.
30 2.

Jflndex; - Netscape
, -(

. 2.2.
www.narod.ru 31


32 2.

, .
: , .

.
www.narod.ru 33

' http://dtmvovich.narod.ru/'mdex.html - Microsoft Internet Explorer


Jri?

1,

. 2.3.

,
,
( ,
), . .
(
).


34 2.

, ,
, . ,

.
www.narod.ru 35

.
36 2.


persona.html

, ,
ref.html story.html

,
index.html
, ,
rabota.html family.html

, ,
hobby.html foto.html

. 2.4.
www.narod.ru 37

,
: ! -
,
.


, , ,





38 2.

,
-





, ,




www.narod.ru





, ,


-





40 2.




-1












www.narod.ru 41


42 2.

www.narod.ru 43

. 2.5.

. 2.6.
44 2.

<SCRIPT language=javascript
src-http://narod.yandex.ru/survey/surveyjs.xhtml ?1d=57854></SCRIPT>
</TD></TR></TABLE>
www.narod.ru 45

. 2.7.

100 % > 2

. 2.8.
2.

dimvovich * Netscape

. 2.9.
www.narod.ru 47

hal. h!ml?new.43086!,lKChak.896453621114500

. 2.10.
48 2.

www.geocities.com

2.1. www.geocities.com

Yahoo! ID , Yahoo! -
Yahoo!
Password
Re-type Password
Security Question , -
-
, -

Your Answer
-
,
, -

Birthday (Month, (, , )
Day, Year)
Alternate Email

First Name
Last Name
Language & Content ,
[other]
Zip/Postal Code
www.geocities.com


Gender Male ,
female
Industry
Title
Specialization
Send me special - -
offers from selected ,
Yahoo! partners Yahoo! Yahoo! -
through Yahoo!
Delivers
Interests (optional) ()
Entertainment
Home & Family
Health
Music
Business
Computers &
Technology
Personal Finance
Small Business
Shopping
Sports & Outdoors
Travel
Sweepstakes & Free
Stuff
Enter the word as it , , -
is shown in the box -
below . -
, ,
, -

2.2.

Alternative Lifestyle
Arts & Literature
Autos
Business & Finance


50 2.

2.2.

Celebrities
Computers & Internet
Family
Fashion & Beauty
Fitness
Food
Friends
Games
Health
Hobbies & Crafts
Home
Issues & Causes
Military
Movies
Music
Pets
Religion & Beliefs
Romance
Schools & Education
Science
Seniors
Sports
Teens
Travel
Television
Women


www.geocities.com


Welcome, dimvovich
Yahoo! GeoCities
>* Premium Web Site Packages - Get your own domain (www.my-own-name.com), matching
email addresses (me@my-own-name.com). an ad-free site, more space, password-protected pages &
more)

Build Your Own Web Site


Free Web Sit fEditl Creating web pages is easy with these popular
tools...
Service Announcements File Manager
A % Yahool PageWteafds - Subdirectories, HTML
/ Build a personal home page quickly with sediting...
this simple, step-by-step method. Try it! Easy Upload
To begin creating your Yahoo! PaaeBuilder Transfer files from your
site, choose one of the Up Design and customize pages easily with :omputer.
tools to the right. If you're this powerful and full-featured editor. j HTML Editor
new to building web Write, or cut & paste HTML
pages, try Yahool ^code.
PageWizards
1 Site Statistics
To find out more about
Member Pages Directory Analyze your site's traffic
Find interesting member sites, .1.....5.- ^reports.
GeoCities, take our tour.

Ady.an..d Web Site Add*o


: Enhance your web
Home Page Settings ipages...
Ad options, monthly Business & Finance Hobbies & Crafts i Counter
newsletter
Computers & i Guestbook
Sjte_P[pjTiotion Music
Get more exposure for your Internet
i ' Headlines
site. Cultures & Recreation &
i Stock Quotes
Content Retinas Community Sports
Get more information on i Weather
how you can rate your site ent&
Reqipnal

. 2.11.
52 2.

Yahoo! Maps ();

Yahoo! Search ().

53

www.spylog.ru www.hotlog.ru
www.thecounter.com

TheCounter com: The Full-Featured Web Counter with Graphic n


[.->

u/AwwthecounlereQm/ <Y/ 4 f o a i /?.

ATTENTION: New TheCounter.com Terms of Service 1


EFFECTIVE January 2, 2002 - TheCounter.com Terms of Service have been
revised. Please read the new Terms of Service.

TheCounter.com Free Version will track number of visitors (unique and . . . - . . .


total) with a visible counter, and will send you a weekly stats report. Find a Merchant Acct
Register here! Software Stop;

.W.sb..D.s.5.!gr>
Global Statistics Search the.Web
GloiaLSlaiiSiiCS offer you a peek at our mega-report, which combines E-Cooinerca Solutions
the traffic reports from our more than 1 million customers worldwide.
Find out how Internet users are viewing the Web.

Article Submissions
Have a tip to share with your fellow subscribers? Submit an article for
possible inclusion in TheCounter.com Professional Edition, by sending an
e-mail to submissionsiSinternet.com. Articles focused on topics relevant
to webmasters will be reviewed. (Only approved submissions will be
Included In TheCounter.com Professional Edition newsletter.) Check our
Windows Internet Tech
Linux/Open Source
Highlighted Articles Web Developer
Revenue Sharing 101
How To Identify Quality Affiliate Programs ISP Resources
Understanding Affiliate Commission Structure ASP Resources
C.Q.O.tmLS.8.!].S Wireless Internet
ved affiliate articles]

F i rrns. Atiemat .iaJaefraameoMLlnu


i
. 2.12. TheCounter.com
55

,
IP-,
.

:
, . -
, , .

...

HTML
HTML 57

8 -
.
. ,
.
58 3. ...

Word HTML-: -
Word.
HTML 59

, , ,
. : , . -
, ; , .
. -
. ( -
) Photoshop . , -
, ; .

. -
!
60 3. ...

^ ^. '
.
3.
?

: <! .

: .
h : 21 ,53
I' : 29,72
! : 1 00%
; ; : , 200 . /
; 1 : 1 1 <

4. | . . | ' 1

. 3.1. 4

(, ), -
( ) . -
, , dpi (dot per inch).
( ) . , -
, -
.
HTML 61

-'-
-
.-(5 .

. (256 !

; 11,7

. 3.2.

* '

:;-

: 11.7
:

. 3.3.
62 3. ...

-
.
,
.


HTML

Unsharp mask ( )

.
64 3. ...


HTML 65

3JJ - Microsoft Internet Explorer

. 3.4.
66 3. ...

- Microsoft Internet Explorer


i-File 'gar-View. Fevoiitae .Tools Help
I"""

. .5.


HTML 67

. 3.6.
68 3. ...

,
. , -
Fractional Width ( ) Character (-
) .

,
Flash. Movie Properties
( ), ,
Export Image ( -
) .

HTML

.
. ,
, -
, .

HTML . -
, , .
: <_1_2/_1/_2>.
, : <_1><_2><_2></_1>.
HTML , -
, , -
. <HTML>, <html> <htML>, .
,
, (Black, Red . .). -
, .




5
1
1 1

. 3.7.
70 3. ...

,
. ,
, , .


I j
;' ;

| Vj.;;

, 3.8.
HTML

, !

.;

. 3.9. <>
72 3. .

|||||&1' ;: J5
: -&-& -

(). V
JO .) . | ^ I I;. . . I -^:

1100 % :| |

. 3.10.

, , -
.
HTML

- URL : :
.,, !11||"'
'//D|/Books/My/Flash2/Rash/a

0
. :
Jin
'i

, |0 -

: . HTML

. 3.11.

-
, HTML-, ,
, . , -
.

3.1. HTML-, web-


<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<HTML>
<HEAD>
<META name="AUTHOR" 11="">
<META name="GENERATOR" content="Mozilla/4.7 [ru] (Win98: I) [Netscape]">
<META name="DESCRIPTION" cDntent="Co3flaHne ">
<META name="KEYWORDS" content-'' Flash ">
<> </>
</HEAD>
74 3. ...

<BODY text="#A58A38" bgco1or="#FFFFFF" link="#lFlB14" vlink="#009900" alink="#FF6600"


background="tile.jpg">
Snbsp;
<TABLE border=0 cellspacing=0 cellpadd1ng=0 width="100r height="100r>
<TR>

width="50" height="60" background="ramka_top.jpg"></TO>


<TD width="400" height="60">
<IMG src="logo.jpg" height="60" width="400">
</TD>
<TD width="50" height="60" background"ramka_top.jpg"></TD>
<TD width="40" height="60">
<IMG src="corner_rt.jpg" Height="60" w1dth="40">
</TD>
</TR>
<TR>
<TD width="40" background="ramka_l.jpg"></TD>
<TD></TD>
<TD height-" 100r>&nbsp:</TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD width="40" he1ght="60">
<IMG src-"corner_lb.jpg" height="60" width="40">
</TD>
<TD width="50r height="60" background="ramka_top.jpg"></TD>
<TD width="100" he1ght="60">
<IMG src="logo.jpg" height="60" width="400">
</TD>
<TD width="50r' he1ght="60" background="ramka_top.jpg"></TD>
<TD width="40" height="60">
<IMG src="corner_rb.jpg" height="60" width="40">
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">


HTML 4. -
. <!DOCTYPE> . 2.

, web-. -
, ... -
<TD> </TD>, . -
.
HTML 75

, , -
. ,
(
). , -
. -
:

<!DOCTYPE html public ' - / / w 3 c / / d t d html 4.0 transitional//en">


<HTML>
<HEAD>
<META name="AUTHOR" content-'' ">
<META name="DESCRIPTION" content="">
<META name="Keyworcs" content="">
<TITLE></TITLE>
</HEAO>
<BODY>

</BODY>
</HTML>

<!DOCTYPE html public "-//w3c//dtd html 4.0 transitional//en">


<HTML>
<HEAD>
<META name="AUTHOR" !="">
<META name="DESCRIPTION" content-"">
<META name="KEYWORDS" content="">
<TITI_EX/TITLE>
<SCRIPT language="JavaScript">
<!--
// ->
</SCRIPT>
</HEAD>
<BOOY>

</BODY>
</HTML>
76 3. ...

<IMG src="corner_lt.jpg" height=60 width=40 =" - ">

[]
:,-.-' ::
:
; : :
I jFlash-
' ' ' ' . ' . .

" : URL , : ... |

index_flash.html

( . ) ;: ; i :
^ ,-- : |
|
;:" ? 1 |

;;|.:}: i^i 'HTML-;:":; ;::;|:1;;];':

. 3.12.
HTML 77

3.2. HTML- (index.html)


<!DOCTYPE html public "-//w3c//dtd html 4.0 transitional//en">

<META name="AUTHOR" content="flMHTpnii">


<META name="DESCRIPTION" content="Co3flaHKe ">
<META name="KEYWORDS" content-'' Flash ">
<11> </11_>
</HEAD>

<BODY text="#A58A38" bgcolor="#FFFFFF" link="#lFlB14" vlink="f009900" alink="#FF6600"


background="image/tile.jpg"topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0
marginheight=0>

<TABLE border=0 cellspacing=0 cellpadding=0 width-'' height="100r>


<TR>
<TD width"40" height="60">
<IMG src="image/corner_lt.jpg" height=60 width=40>
</TD>
<TD width="50" height="60" background="i(nage/ramka_top.jpg">
&nbsp;
</TD>
<TD width="400" height="60">
<IMG src="image/logo.jpg" height=60 width=400>
</TD>
<TD width="50l" height="60" background="image/ramkaj:op.jpg">
&nbsp:
</TD>
<TD width-"40" height="60">
<IMG src="image/corner_rt.jpg" height60 width=40>
</TD>
</TR>
<TR>
<TD width="40" background="image/ramka_l.jpg">&nbsp:</TD>
<TD colspan="3" width="100^" height="100X" valign=top>
<CENTER>
<TABLE COLS=2 width="100r height="100X" cellpadding=20
78 3. ...

width=50>
<A href="index_flash.html">
<IMG src="image/leaf. jpg" height=50 width=-50

.
HTML

<IMG src="image/cornerjb.jpg" height=60 width=40>


</TD>
<TD width="50r height="60" background="image/ramka_top.jpg">
&nbsp:</TD>
<TD height=60 width=400>
<IMG src="image/logo.jpg" height=60 width=400>
</TD>
<TD width="50r height="60" background="image/ramka_top.jpg">

<IMG src="image/corner_rb.jpg" height=60 width=40>


</TD>
</TR>
</TABLE>
</80DY>
</HTML>

- Microsoft Internet Explorer

. 3.13.

3.13 HTML- :
.
80 3. ...

<SCRIPT language?"JavaScript">
var height2=screen.width;
van width2=screen.height:
function intro(URL)
{window.open('URL'.'name'. 'left-0. top=0, height=height2.width=width2,
status=no.1ocati on=no.toolbar=no.di rectori es=no.resi zable=yes.ful1screenno.menubar=n
o'); }
</SCRIPT>







1 1
I




. 3.14. :
HTML 81

3.3.
<!DOCTYPE html public "-//w3c//dtd html 4.0 transitiona1//en">
<HTML>
<HEAD>
<META name="DESCRIPTION" content="CoaflaHMe ">
<META name=" KEYWORDS" content="KHnra Flash ">
<> </>
</HEAD>

<BODY text="#A58A38" bgcolor="#FFFFFF" link-"#lFlB14" vlink="|009900" alink="#FF6600"


background="image/tile. jpg" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0
marginhe1ght=0>
<TABLE border=0 cellspadng=0 cellpadding=0 width="100r height="100r>
<TR>
<TD w1dth="40" height="60">
<IMG src="image/menu_photo.GIF" height=60 width=20
="" border=0>
</A>
</TD>
HTML 83

</TD>
<TD width=100*></TD>
</TR>
<TR height=l>
<TD width=100></TD>
<TD width=100 background-"image/pixel.6IF">
<IMG src="image/pixel.GIF" height=l width=l>
</TD>
<TD width=100 background="image/pixel.GIF">
<IMG src="image/pixel.GIF" height=l width=l>
</TO>
</TR>
<TR>
<TD co!span="3" width-"100r height-"100r>

</TD>
</TR>
</TABLE>
</TD>
<TD width="40" background-"1mage/ramka_r.jpg">&nbsp;</TD>
</TR>
<TR>
<TD height=60 width=40>
<IMG src-"image/corner_lb.jpg" height-60 width=40></TD>
<TD width="50r' height="60" background="image/ramka_top.jpg">
&nbSp;</TD>
<TD height=60 width-400>
<IMG src="image/1ogo.jpg" height-6'0 width=400>
</TD>
<TO width="50r' he1ght=-"60" background="image/ramka_top.jpg">
&nbsp;</TD>
<TO height=60 width-40?
<IMG src="image/corner_rb.jpg" height=60 width=40>
</TD>
</TR>
</TABLE>
</BOOY>
</HTML>

84 3. ...


85

, www.dimvovich.narod.ru.
- , -
.

Flash
Flash 87

Flash

Flash ,
. Flash, -
.

Flash 5, -

Flash MX. -
Flash.

Flash

Flash, ,
. , , -
.
,
. Flash -
, , , ,
.
. ,
.
88 4. Flash

. 4.1. Flash ,
Flash 89

-
, ,
Swatches ( ) Mixer ().
90 4. Flash

Undo (). Ctrl+Z,


.

-
91

, ActionScript,
Info (), Mixer (), Character () Instance () -
,
. Window ()
.
92 4. Flash

Align () -
(
Stage ( )). -
, Shift.
.

HTML, -
. , . ,
.
: Action-
Script.

, , .
. .
93

94 4. Flash

95

96 4. Flash

97


4. Flash

, "50 .. ;
;;. ; ;
;> r0i.0p*t-:r,tf

<

00*
JBi

. 4.2.

on (release) {
sky._x=_root._width/2;
sky._y=_root._height/2;
sky._wi dth=_root._wi dth;
sky._height=_root._height;
}
99

ActionScript

on (release) {

on (release) {
gotoAndPlay (_currentframe+l);
Pass="foto";
}

gotoAndPlay (Pass):
100 4. Flash

Flash
Flash 101


102 4. Flash

. 4.3.

. 4.4. ,
Flash

FlashS-fMoviell yjsj x
Control Window 'iielj; ,,!.^5.

. 4.5. ,


4. Flash

4.6. 1
HTML- 105

HTML-

<>
<>
<TITLE>index_flash</TITLE>
</HEAD>

<BODY bgcolor="#FFFFFF">
<!-- URL's used In the movie-->
<!-- text used in the movie-->
OBJECT classid="clsid:D27CDB6E-AE6D-llcf-9688-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5.
0,0.0"
width=100 height=100>
<PARAM name=movie value="index_flash.swf">
<PARAM name=menu value=false>
<PARAM name=quality value=high>
<PARAM name=wmode value=transparent>
<PARAM name=bgco1or value=#FFFFFF>
<EMBED src="index_flash.swf" menu=false quality=high
wmode-transparent bgcoloHfFFFFFF width=100 height=1003!
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?Pl_Prod_Version-Shoc
kwaveFlash">
</EMBED>
</OBJECT>
</BODY>
</HTML>
106 4. Flash

<SCRIPT language"JavaScript">
function Flash(URL){
var screen_height=600:
var screen_width=800;
if (self.screen) { // 4
screen_width = screen.width
screen_height = screen.height
}
else if (self.Java) { // 3 NN
var jkit = Java.awt.Toolkit.getDefaultToolkitO;
var scrsize = jkit.getScreenSizeO;
screen_width = scrsize.width;
screenjieight = scrsize.height;
}

< href="#" onclick="Intro('index_flash.html')">


<IMG src="image/leaf.GIF" height=50 width=50 =" ">
<FONT size=+l face="Times New Roman Cyr. serif">
Flash-
</FONT>


108 5.

-,
.
.

5.1.

URL
Alta Vista www.altavista. com
Yahoo! www.yahoo.com
Lycos www.lycos.com, www.lycos.ru
Excite www.excite.com
Go.com www.go.com
HotBot www.hotbot.com
AOL NetFind search.aol.com
Infoseek www.infoseek.com
LookSmart www.looksmart.com
www.rambler.ru
www.yandex.ru
www.aport.ru
www.eprst.ru
PUNTO www.punto.ru
AlterVista www.altervista.ru
Google.ru www.google.ru


110 5.

. , ,
<> ,
. -
.
. , . -
- ,
, .
, ,
,
.

</1_>
111

.
, , , ,
, . -
, , .


112 5.

< href="#" onclick="window.external .addFavoritet 'http://www.Baui_caiiT.ru/'.


'Description'); return false;"> </>

< href-"!" onclick='window.external.AddFavoriteClocation.href. document.title);return


false'>flo6aBMTb </>

< href="#" onclick="this.style.behavior='url(#default#homepage)':


this.setHomePage('http://www.Batii_caiT.ru/'); return false:">CflenaTb
</>


113

< href="http://Baui_URL"><IMG src=" _.1 ="_" border=0


w1dth=100 height=100></A>

border, width, height ,


-, -
. .
-
.

< href="nttp://Baiu_URU*Kopb"><IMG 5=" .gif" -"0_"


border=0 width=100 height=100></A>

< ="#"></>


114 5.

5.2.

( )

468x60

234x60
88x31

120x90

120x60

120x240

125x125
115

. 5.1.

116 5.

,
.

HTML-

5.1. HTML-,
<TABLE border=0 width=150 cenpadding=0 censpacing=0
align-left valign=top>
<TR><TD><A href="http://news.html ">
<IMG src="news.gif" =" "
border=0 width=150 height=31></A<@062></TD>
</TR>
<TR><TD><A href="http://history.html">
<IMG src="history.gif" =" "
border=0 width-150 height=31></A<@062></TD>
</TR>
<TR><TD><A href="http://discks.html">
<IMG src="discks.gif" =" "
border=0 width=150 height=31></A></TD>
</TR>
<TR><TD><A href="http://conductors.html">
<IMG src= "conductors.gif" =""
border=0 width=150 height=31></A<ia062></TD>
</TR>
<TR><TD><A href="http://soloists.html">
<IMG src-"soloists.gif" =""

border=0 width=150 height=31></A<@062></TD>


</TR>
<TR><TO><A href-"http://photo.html">
<IMG src="photo.gif" =""
JavaScript 117

border=0 width=150 height=31></A<(i>062></TD>


</TR>
<TR><TD><A href="http://contacts.html">
<IMG src="contacts.gif" =" "
border=0 width=150 height=31></A></TD>
</TR>
</TABLE>

JavaScript

, DOM (Document Object Model, -


), , , -
( ). HTML, -
DOM, dHTML. , , DOM HTML
JavaScript, .
118 5.

<SCRIPT language-"JavaScript">

function Displacement() {
setTimeoutCDisplacement)'. RATE);
TEXT = document.forml.fi eld.value;
document.forml.field.value -
TEXT.substring( CHARS ) + TEXT.substhngt 0. CHARS);

(<!-- //-->)
, JavaScript. ,
, , , JavaScript -
.
JavaScript 119

, , , setTimeout('Displace-
mentQ', RATE) setTimeout('Displacement()', 100). , -
, .
-
, .

setTimeoutQ,
,
. , -
, . -
, - , .

clearTimeoutQ , setTimeout().
: ClearTimeout (timeoutID), timeoutID ,
, clearTimeoutQ.

TEXT = document.forml.fi eld.value:

document.forml.field.value =
TEXT.substringC CHARS ) + TEXT.substringC 0. CHARS):
120 5.

Internet Explorer JavaScript.


<MARQUE>, . -
:

<1> </11>
</head>
<body bgcolor="#FFFFFF">
<><> CTpcmM</marquee></p>
</body>
</html>
Netscape Communicator .

-
JavaScript 121

(. 3),
, (DOM).

< href =" page. htm" onMouseover="functionOver(' image')"


onMouseout=" functionOut image ')">
<IMG src="imageOut.gif" name="image" border=0 width=100 height=100 ="
">


image imagel, image2, image3 . ., href HTML-
. ,
, .
, .
122 5.

<SCRIPT language="JavaSchpt">
<! --
Flash 123

< href="page.htm" onMouseOver="document.image.src='imageOver.gif'"


onMouseOut="document.image.src='imageOut.gif'">
<IMG src="imageOut.gif" border=0 name="image" width=100 height=100
"></>

Flash
5.

Flash , -
. , , -
, JavaScript.
, :
! ( Flash
, -
.) , , ,
.

|Movie Properti'

1
.iiiVtfo&frifol ;-;!

. 5.2.

Symbol Properties

,:: ';; |

5.3. -
Flash 125

!****, ~|

. 5.4. Character
5.

. 5.5. Info

B!

. 5.6. Transform
Flash

. 5.7.

, -
,
(, !), -
.
128 5.

, -
Snap to Object ( ) Snap to Guides
( ). View ().
.
Info ().

I+-V4I
I I
I I
(I I)
Flash 129

, , , -
!
130 5.

, 140 ,
. ,
. -

.

< href="Baui URL"><OBJECT class1d="clsid:D27CDB6E-AE60-llcf-96B8-444553540000"


codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swf1ash.cabfversi on
=5.0,0.0"

, Flash . Flash
-
Effect () Transform (), ,
( ).
,
. . Flash
.
,
. , 12 .
, 36 !
-
! , : -
, .

3 BanncrFI - Microsoft Internet Explorer


H Eiis Edit View Favorites Tools Help


. 5.8. HTML-

, ...


133

Outlook Express

1. (New Mail) -
(Select Stationery).
: (Message)
(New Massage Using)
(Select Stationery) (Create New).
2. (Stationery Setup Wizard)
(Next).
. , ...

..-

&

ii

!'

. 6.1. , Outlook Express


Select Stationery

Chess.htm New Boby Announcement.htm


Chicken Soup.htm J Party lnvitation.htm
For Sale.htm Postcard! .html
ormal Announcementhtm Running Birthday.htm
i>) Fun Bus.htm .
Holiday Letter.htm eTechnical.htm
i Lounge.htm

:"ML Files Chtrrfhtml)

. 6.2.

FiontPage Expiesx - [C:\ProQfam FilesVCommon f i)es\Micios


1-

. 6.3. FrontPage Express


136 6. , ...

Netscape


. , web- Netscape -
, . -
, .

;
;;
''":""""~";":"





( .)

*;'! i;

"
jiile:///C|/Flash/Ch5/npo6Ka.JPG
:
...... " :'::: : ..... "::-: '
:

: ; "
: :

. 6.4.


138 6. , ...

Shift,
, , .
, , , 45.
.

.

. 6.5. !

,
140 6. , ...

, . -
: .
. ,
. ,
.

Flash 5 - [Postcard! .:

. 6.6. , , ...
142 6. , ...

(, ,
-) -
.
, .
, , , .
, , , -
.

, SWF- 11 .
- , Flash . -
Flash
Web.
, Flash, .

BasiqActiors
Go
Ray
Stop
Toggle High Quality

. 6.7.

. 6.8. Flash
6. , ...

Trace Bitmap Ixjl


Foo Ok 1 1
' , ' .


".' | Cahnei 1
(Normal 31
I
:
< Threshold: | Normal : Help
: | . ' . '

. 6.9.
- 145

, , ?
, , ()
, , .
, ,
.
: -
, . Flash
(anchor points) : (curve points) (corner points).
,
. Flash -
, .

Alt Subselect ()
.
. , -
Delete .
146 6. , .

. 6.10. , ?

- 147

, , .
.

on (release) {
gotoAndPlay (1);
}
148 6. , ...

Basic Actions
S) Go To
Play

Toggle High Quality

p| j : current scene>

MlPl Frame Number

. 6.11.

, Enter. -
, Flash .
- 149
6. , ...

Flash 5 - [PostCafdJ.tla - Library:!]

: i
>! ' :
It, 3D 4S fAT
" t;
I

ii eliiil
'' ..;-...:.:. .'.. .-. ..:;:..;.

:Slii|pi|li|Sj;
%]

is
"

:;
e-^;A!a..av.^
. 6.12.
- 151

, , -
Flash -
. , -
.
.

Flash . ,
,
.

. 6.13. () ()
152 6. , ...
-

if : Options

Logoff.wav
1

et
. 6.14.
154 6. , ...

. 6.15.

156 7.

Test Scene

( ) -

SWF- .
(,
),
(, , ).

NextSceneQ, -
, -
. ,
playQ .

. 7.1.

, -
. : -
.
172 7.

, ,
, . -
,
. , .

PostCard3 - Library

. 7.13. , ;
-
174 7.

on (release) {
gotoAndPlay ("");
}
175


7.

. 7.14.


177
7.

. 7.15.
179


7.

. 7.16. ...

. 7.17.

182 7.


184 8.


185


186 8.

, (, ,
) . , . -
,
. , -
.


187


188 8.


189

8.

. 8.1.
191

192 8.

, -
.
. , -
- .


194 8.

-
. .

.
, .
,
, . .

, web-
(Cascading Style Sheets, CSS).
. , ,
. - , -
, , - (. ).

195

< href="file.htm" target="frame2">f11e</A>



197
9


199
200 9.

. 9.1.
202 9.

, , URL-
.
HTML-, ,
, , , .
,
, , . -
, www.my_site.ru/photo-
album/rny_photo/photol.html, www.my_site.ru/photoalbum/my_photo.html
, a www.my_site.ru/
photoalbum.html . , www.my_site.ru/
9843986348951.html , .
203

204 9.

205

9.1. ,


</TD>
<TD>

</TD>
</TR>
</TABLE>

9.2. ,
206 9.

<BODY marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>

Trace. -
. : trace (expression);.

9.1.

TheCounter.com Hotlog.ru
Internet Explorer 6.x 47% 38%
Internet Explorer 5.x 44% 53%
Internet Explorer 4.x 1% 2%
Netscape 5.x 1% 1%
Netscape 4.x 2% 1%
Opera x.x 0% 2%
0% 2%
9.

;*! The Counter com: The Full-Featured Web Counter with Graphic Reports and Detailed Information * Netscape
1 T
Ltt-."" 'M W
:
'.:- <
1
C-rSn .
. mttp://www.thecounter.com/stats/2G02/April/browser.php

Browser Stats

Mon Apr 1 00:05:02 2002 - Tue Apr 30 23:55:04 2002 30.0 Days

(55%)
(32%)
(4%)

. 9.2. ,

Best When Viewed With ( -


) . -
. -
( Flash)
, plug-in.
209

<SCRIPT language="JavaScript">
<!--
if (navigator.appName == "Netscape") window.1ocation.href = "Netscape.htm";
else if (navigator.appName == "Microsoft Internet Explorer") window.location.href =
"exp1orer.htm";
else window.location.href = "neizvestniy_brauser.htm";
// -->
</SCRIPT>

JavaScript,
Macromedia Dreamveawer HTML (, Adobe GoLive).
210 9.

Check Browser

1111111 Go to URL

) to URL

I
Go to Alt URL

Go to Alt URL

. 9.3.
Dreamveawer

9.2. TheCounter.com

9.3. TheCounter.com
212 9.

-
. QuickRes Microsoft Power-
Toys, .


213

Dim: 550X400 pixels


8KB-
Fr Rale: 12.0 Ir/sec
Size: 11 KB (11310) 4KB
Duiation: 140lr(11.7t) 2KB

Preload: 50 Ir (4.2s)
i
Ban**: 1200 B/s (100 ) i 100B

Flame: 1
3KB (3960 B]
Loaded: 100.0 (140 frames]
11 KB (11312 B)

. 9.4.

*Jm... : ' - .';..' Value * \


J
-**~
_focusrect 'l
^-^ 17T 7 '1

. 9.5.
214 9.

JavaScript

<SCRIPT language="JavaScriptl.2">
<!--

a D:\Books\My\Rash2\Flash\CH6\Error.html - Microsoft Intern

esrj^ D:\Books\My\Rash2\Flash\CH6\Error html j i :>"V,

1
. 9.6. Internet Explorer
215

File Edit View


:\Books\My\FI ash2\Flash\CH6\Error.html

. 9.7. Internet Explorer ,

Internet Explorer

dispteysrf pTopwily orlunctinninc, ptopeily. In the iuiure, you


can display this fnessuge by double--i?lickinvj the warning | j|

Dim:
''

. 9.8. Internet Explorer

Nets cape

Iff: / |(ile:///D|/Books/My/Flash2/Fl'ash/CHe/Errorhtml ~

. 9.9.
9.

Communicator Console - Netscape


1

5:

. 9.10.

JavaScript Microsoft Script Debugger.


, vww.microsoft.com/scripting.

<SCRIPT language="javascript">
<!--

if (confirmC'Bauie "+yourname+"?")) {alert (" - "+yourname)}


else {alert (" "+yourname)};
</SCRIPT>

Explorer User Prompt

'JavaScript Prompt '" .. '-


: , .

. 9.11. pompt

Microsoft Internet E

U/ ?-

,'.'-":.;';';; i |
. 9.12. confirm

Microsoft Internet Explorer

. 9.13. alert


218 9.

, HTTP-, -
narod.ru.

URL-

i Web- ( , littp //v/ww, i n icro s ott, /) .


. : .
: ..;: :
:

Ijwww. dirnvivich.narod.ru

|1" i 11

an or
JD \Books\My\Fte3h2\Flash\Ch3\

., :_
. 9.14. Web



10


221

Word

: Word HTML--
. (, -
). ,
.


222 10. ,

,
, . , ,
.
223

, -
( ). -
, , -
.

224 10. ,

, > -
Word. -
( ), -

.


.
(Ctrl+C/Ctrl+V) , .

, , -
. , , -
. .

225

,
.
10. ,

: -
Word. , ,
. ,
Word. -
Alt,
Ctrl Shift.

10.1.


Copyright
Registered

&laquo; ( )
&raquo; ( )


()





()



-
227

<NOBR>911-12-06</NOBR>
<NOBR>BO-nepebix</NOBR>


228 10. ,


229

, . , -
, .

. -
Flash .

GIF
230 10. ,
231

-
. Photoshop TIFF PSD.

GIF-, -
. ,
Flash.
, File Publish Settings ( ).
Formats () GIF Image. GIF
( , Animated (-
)) Publish ().

PNG
232 10. ,

JPG
233

alt

<IMG src="test.gif" =" ">


234 10. ,

LOWSRC.
, , <IMG src="testgif LOWSRC="before.gif">, -
before.gif, test.gif. before.gif
, - ( Photoshop Image > Adjust
Threshold).

<FONT face="ManhattanCyr" 5="+2"></>


235

<IMG src="Zagolovok.gif" width=... height"...>

, , GIF.

, PostScript- (AdobeTypel). -
TrueType. , Adobe Type
Manager.

Flash
236 10. ,

Anti-aliasing
237

. 10.1. () ()


. 10.2. , ()
(); ,

11


239


240 11.

<IMG src="imagel.jpg"><IMG src="image2.jpg">

- (Image map)

<IMG src="url" usemap="#map_nanie">


241

</MAP>
''lnr
TT ^

Q ci rcl e ;

<AREA COORDS"0.0.99.99" ...>

, -
, .

< =""></>
242 11.

< hef="URL#Mea">epe </>


- 243

if (_root._framesl_oaded == _root._totalFrames) {
gotoAndPlay ("Scene 2". 1);
} else {
gotoAndPlay (1);

, -
. ifFrameLoaded, , -
, , , -
.

11.

. 11.1. Transform Fill ( )

. -
100%- . -
Advanced () , , -
, .
-

[:J.-|,,

jilulo ~^1 ]

. 11.2.
246 .

, 4. -
.

nowLoad =(_root._framesLoaded/_root.J;otalFrames)*70.
nowLoad=Math.round(nowLoad):
If (_root,_fnamesLoaded == _root._totalFrames) {
_root.gotoAndPlay ("Scene 2". 1);
} else {
_root.gotoAndPlay (nowLoad);
}
- 247

if (_root._framesLoaded =- _root._totalFrames) {
_root . gotoAndPl ay ("Scene 2". 1):
} else {
if (_root._currentframe< nowLoad ) {_root. gotoAndPlay (nowLoad)};
}

if (_root._framesloaded == _root._total Frames) {


gotoAndPlay ("Scene 2". 1);
} else {
gotoAndPlay (70);
}


248 11.

jpjChord.wav

; ; C:\WINDOVVS\MEOtM

:
,."|51. ;20:1 0

f|

. 11.3. Sound Properties


,

(,
- ), , -
Stream () Sync () . -
Flash -
, .

: 2 . -
, -
.

Flash
Flash 249

: www.dimvovich.
narod.ru. , ,
. , -
.

File > Open As Library ( > ) , -


.

250 11.

4f Flash 5 - [Movie!]
Fie Edit View..Insert Text Contra! , ^;.:;i,.

. 11.4.


Flash 251

, , -
.

. 11.5.
11.

,
, Flash , -
. , .

. 11.6.
Flash 253

-
Q



. 11.7.

on (release) {
nextScene ():
}

SWF- 11 ( ). -
:
( ), Flash .
-
.
: 255

Intro - Microsoft Internet Exploi


Ills EditMiSew. .fivctrites . tjelp.

. 11.8. , Internet Explorer

,
256 .

</SCRIPT>

< href="#" onMouseOver="mOn(l):" onMouseOut="mOn(l)"><IMG src="imagel.gif"


="" border="0" name="iml"></A>

<IMG src="imagel.gif" ="" border="0" name="iml" onMouseOver="mOn(l):"


onMouseOut="mOn(1)">

11.1.
<SCRIPT language="JavaScript">

numLine = 2:

>
: 257

<BODY onLoad="ShowMess();">

<SCRIPT language="JavaScript">
<!--
fulltimeO:
//-->
</SCRIPT>
</HTML>

<SCRIPT language="JavaScript">
<!--
var where = document. referer;
var name = navigator. appName:
var vers = navigator. appVersion;
document. writeC'Bbi "+where+" <BR>A : "+name+" "+vers+" "):
// -->
</SCRIPT>


258 11.

<SCRIPT language="JavaScript">
<!--
var $5="3 ?":
function click(but) {if (document.all)
{if event.button == 2)
jalert(message);return false:}}
if (document.layers) {if (but.which == 3)
{alert(message);return false:}}}
if (document.layers)
{document.captureEvents(Event.MouseDown):}
document.onmousedown=click:
// -->
</SCRIPT>

Cookie

# Netscape HTTP Cookie File# http://www.netscape.com/newsref/std/cookie_spec.html# This


is a generated file! Do not edit.
: 259

11.2. cookies
<HEAD>

}'

function deleteCookie(name, path, domain) {


if (getCookie(name)) {
document.cookie = name + "=" +
((path) ? "; path=" + path : " " ) +
((domain) ? "; domain=" + domain : " " ) +
"; expires=Thu, Ol-Jan-70 00:00:01 GMT"
}:

function fixDate(date) {
var base = new Date(O)

now.setTime(now.getTimeO + 365 * 24 * 60 * 60 * 1000):


var visits = getCookie("counter");
if (Ivisits) visits = 1:

http://www.wowwi.orc.ru/cgi-bin/tt.cgi. -
, .

van 1=0
do{

}
while(i<len)

, (
, ), <SCRIPT> src
JavaScript. js. ,
<SCRIPT src="MyCde.js"> </SCRIPT>.
, (
) .

12.4.
<SCRIPT language="JavaScriptl.2">
<!--
function translateO {
var newString="";
var NoTranslString"";
var oldString=document.forma.Text.value:
var len=oldString.length;
var Char="";
var k=0:
var Russ= new Array ( " " , "". " " . " " . " " . " " . " " , " " . " " , " " , "".
" " . " " . " " , " " . " " . " " , " " , " " . " " . "". " " , " " . " " . " " , " " , " " . " " , "".
271

" " . " " . "". "". "". "". "". "". "". "". " . " " . "3". "". "",
"". "". "". "". "". "". "". "", "", "". "", " X " , "". "". "Ill". "", "". "".

var Translit= new Array ("a", "b". " v " . " g " . " d " . " e " , " y o " . " z h " . " z " . " i " . "j".
"k"."1"."m"."n"."o"."p"."r"."s", "t". "u"."f"."h","c"."ch"."sh", "sh"', "y".
"'"."e'"."yu","ya"."A". "B". " \ / " , " 6 " . " D " , " E " . " Y O " . " Z H " . " Z " . " I " . "J".
" K " . " L " . " M " . " N " . " 0 " . " P " . " R " . " S " , "T". "U". " F " . " H " . " C " . " C H " . " S H " . " S H " " . "Y".

for (var 1=0: i<1en; i++){


Char=oldString.substring(i.1+1);
//
for (var j=0: j<66; j++){
if (Char==Russ[j]) {newString=newString+Translit[j];}
else k++;

// ,
if (k==66) newString=newString+Char:
k=0;

</SCRIPT> 1

<INPUT name="Checkbox" type="checkbox" checked value="3To "


ondick="MyJavaScript">

12.5.
<1_>
272 12. ...

12.6.

function change_color(butt) {
document.bgColor=butt;
}
//-->
</SCRIPT>
<FORM name="forma">
<INPUT type="radio" name="radiobutton" onclick="change_color(this.value)" value="red"
checked>

<INPUT type="radio" name="radiobutton" ondick="change_color(this.value)"
value="orange">

<INPUT type="radio" name="radiobutton" onclick="change_color(this.value)"
value="yellow">

<INPUT type="radio" name="radiobutton" onclick="change_color(this.value)" value="green">

<INPUT type="radio" name="radiobutton" onclick="change_color(this.value)" value="cyan">

<INPUT type="radio" name="radiobutton" onclick="change_color(this.value)" value="blue">

273

<INPUT type="radio" name="radiobutton" onclick="change_color(this.value)"


value="violet">

</FORM>
</BODY>
</HTML>

12.7.

function ReffW(URL){
window.open(URL.'_top'):
}:

<SELECT name="list" onchange="ReffW(this.options[this.selectedIndex].value)">


OPTION selected>BbopbiH :
<!-- URL window.open -->
OPTION value="http://.. ./pagel.html">1
OPTION value-"http://.. ./pagel.html">2
OPTION value="http://.. ./1.1">
</SELECT>
</FORM>
<FORM name="forma2">
274 12. ...

<SCRIPT language="javascript">
<!--

function Reff(URL){
document.fl.list.selectedlndex = 0:
top.window.location=URL:

, JavaScript, -
. submit,
<NOSCRIPT>, .
: <NOSCRIPT><INPUT type=submit value=gox/NOSCRIPT>.
<FORM> action=URL method="POST".
action URL , -
.


275

12.8.
<1>
<BODY>
<SCRIPT language="JavaScript">
if (navigator.appVersion.lastlndexOf('Win') != -1) {
// .
// Windows Unix -
dropline = "\r\n" } else { dropline - "\n" };
function Subj(tform) {
var sub="mailto:Name or Nick<mailto:Batu@emai1 .rut>?subject=";
// sub
sub=sub+tform.subject.value:
tform.action=sub;
// ,
//
tform.mess.value=("Name"+dropli ne+tform.name.value+dropli ne+"
phone"+dropli ne+tform.phone.value+
dropl i ne+"emai1"+dropli ne+tform.emai1.value+dropli ne+"Message"+ dropli ne+
tform.message.value);}
276 12. ...

name=My Name
phone=943764
emai1=my e-mail
subject=tema
message=0snovnoe soderzhanie

var name=Stnng;
var loc=String:
var loc=document.location.href;
var len=loc.length;
var URL=String:
var 11_=" URL .html?name=":
var lenURL=URL.length;
document.writeC" "+loc.substring(lenURL.len)):
//-->
</SCRIPT>
</BODY>
</HTML>
277

document.write(" "+unescape(unescape(loc.substring(lenURL.len)))):

e-mail

mallto: <@ ,>

1: <@ .ru>?subject=nncbMo



278 12. ...
279

280 12. ...


Flash 281


<FRAME 5-://._.">

Flash

, FSCommand, Flash
JavaScript cookies.


282 12. ...

ft Flash S-{present]

. 12.1. Flash


Flash 283

stop :
var Gender!:

stop ;
Gender=0;

on (release) {gotoAndStop (2):}


:
on (release) {gotoAndStop (1);}

on (release) {
Age=parselnt( Age. 10):
if (1sNaN( Age ))
284 12. ...

Warni ng=Warni ngText:


Age="";
gotoAndStop(l);
}
else gotoAndPlay (2);

Flash 285

button
Eatingpiller
Foot
FootD
Footl
head
Part


. 12.2.
286 12. ...

. 12.3.

Flash 287

.
Q Comforter ;
Q Doll ;
Q Flower ;
Q Beer ;

Namel=Name + S:
if (Age<2 or Age>90)
{Present=Comforter}
else
{ if ( Gender<l)
{if ( Age>=2 and Age<16 )
(Present-Doll}
else
{Present=Flower}
}
288 12. ...

Flash 5 - [present]

. 12.4.
Flash

. 12.5.

,
, goto ,
.


12. ...

Generator Objects
:|Common

[HI Basic Charts |gg| Insert GIF File Insert JPEG File Insert Symbol |g Insert Flash Movie

$Jy Insert MP3 File | Insert PNG File |j Insert Sound List y|j Multipage List

^ Pie Chart FQ Plot Radio Button [S3 Scrolling List Stock Chait

| Table Ticker

:...,,...-:; ,. i

. 12.6.

, HTML-
(SWF-),
SWT (
). .


Flash

I
Pie Chart
3ate Source data.txt

Depth 800

v'alue Display always

/alue Format Times

1/alue Placement auto


v'alue Scale fixed"
External Symbol File
SordeT false
Border Thickness 80"""

Color

. 12.7.
292 12. ...

Value. Color
32JCCCCCC
4JOOOOFF
1.IOOCCFF

5JFFOOOO

f4

. 12.8.
Flash 293

ft Flash 5-[chart]

Netscape 4.x

Netscape

. 12.9.


294 12. ...

Flash , (levels). -
levelO,
. 16 000 , .
0 levelO. ActionScript -
, URL ,
, .
Flash

(Normal),
. ,
Actions (). LoadVariablesNum Actions (-
).

HTML ,
HTML. .

Anekdotl=Coflep)KaHne &^12=

. 12.10. Anekdot.txt

. 12.11.
296 12. ...

this._alpha = alpha;
this._xscale = width:
this._yscale = height;
this._rotation = spin;
}

x=200&y=200&a1pha=50&width=150&height=150&spin=-90&

loadVariablesQ
.
Flash 297

. 12.12.

. 12.13. (
)
298 12. ...

Flash

yjj Basic Actions


Actions
bteak
| call
P comment
continue

. 12.14.

on (release) {tellTarget (". ./Field"){gotoAndStop (2);}


300 12. ...

on (release)
telTrarget ("../Field") {
gotMndstop

.-;-.. - . - :
. 12.15.
Flash

12.16.

web- e-mail

GetURL ,
. ,
http://.
302 12. ...

iaf jit Object Aetior?L

' 'ED ^ Object Actions


continue
delete
do while
duplicateMovieClip

I Line 2: getURL ("http:,,7dinwovich.natod.ru/index.htrftt");

|l||f|||http://dimvovich.narod.ru/index. html
'..'. ;- . ' ' ' .''." .'!. ". J

[Don't send

. 12.17. GetURL

! B||| mailto: dimvovich@narod.

on't send
Flash 303

Flash JavaScript

on (release) {
text="Privet HTML!":
fscommand ("dateToJS". text):
}

on (release) {
fscommand ("dateToFlash". text):

Frame Actions

fscommand ("dateToFlash", "text ');


f line 1: fscwnirmml ("doteToFlash", "texf):
'
P

. 12.19. Actions fscommand


304 12. ...

if (command=="dateToFlash") document.JSandFlash.SetVariableC'text". mess)


if (command=="dateToJS") alent(argument)
}
</SCRIPT>

<SCRIPT language=VBScript>
Sub JSandFlash_FSCommand(ByVal corns. ByVal arg)
call JSandFlash_DoFSCommand(coms. arg)
end sub
</SCRIPT>

12.9. HTML-, Flash


JavaScript

<SCRIPT language="JavaScript">
function JSandFlash_DoFSCommand(command. argument) {
mess="Privet Flash!"
if (command=="dateToFlash") document.JSandFlash.SetVariableC'text". mess)
if (command=="dateToJS") alert (argument)
Flash 305

12.10. HTML- FSCommand, Flash


306 12. ...

document.write('</SCRIPT\> \ n ' ) :

mess="Privet Flash!"
if (command=="dateToF1ash") document.FlashandJS.SetVariableC'text". mess)
if (command=="dateToJS") alert(args)

fscommand ("quit"):
307


13

JavaScript
JavaScript 309

, ;
,

-
13. ?

1 *" ?* - Microsoft Internet Explorer

. 13.1. Internet Explorer

, , ,
,
, ,
.
JavaScript 311

800x600. -
760 .

HTML- FrontPage Express. -


> HTML.

13.1. , FrontPage Express


312 13. ?

<> /11_>
</>

<BODY bgcolor="#000000" text="#FFFFFF">


<DIV align="center"><CENTER>

<TABLE border="0" cellpadding="0" cellspacing="0" width="100r


background="BaiD_URL/block.gif">
<TR>
<TD colspan="2"
background-"Baui_URL/tooth.gi f"
heigt="100">&nbsp;</TD>
</TR>
<TR>
<TD colspan="2" height="5">&nbsp;</TD>
</TR>
<TR>
<TD colspan="2">- .
? - . -
- ?<>-
. . -
.</>
<>-
? -
.</>
<>- , . -
. -
!</>
<>- . ,
.
, ? -
.</>
<>- -
! ?</>
<>- ,
? -
.</>
<> ,

. :</>
</TD>
</TR>
<TR>
<TD width-"50r><DIV align="center"><CENTER><TABLE
border="0" cellpadding="0" cellspacing="0">
<TR>
<TD bgcolor="#COCOCO" a1ign-"center">B
,

</TD>
<TD><IMG
src="Baui_URL/image/door.gif"
width="200" height="250"></TD>
</TR>
</TABLE>
</CENTERx/OIVx/TD>
<TD width="50r><DIV align="center"><CENTER><TABLE
border="0" cellpadding="0" cellspacing="0">
<TR>
JavaScript 313

<>" ?"</>

background="image/brick.gif"
314 13. ?

<FORM name="forma"action="test.html">
<INPUT type="hidden" name="test" va1ue="s">
<TD>
<INPUT type="image" src="image/door.gif"
width="250" height="235" alt="Door I" border="0">
</TD>
</FORM>
</TR></TABLE></CENTER></DIV></TD>
<TD width="50r><DIV align="center"><CENTER><TABLE border="0" cellpadding="0"
cellspacing="0"><TR>
<FORM name="forma"action="test.htinl">
<INPUT type="hidden" name="test" value="f">
<TD>

13.2. " ?"


<1_>

<HEAD>
< name="DESCRIPTION" 1!=" ?">
< name="KEYWORDS" 1"" ">
<11> " ?"</11>
</HEAD>

<BODY bgcolor="#000000" text="#FFFFFF">


<DIV align="center"><CENTER>

<TABLE border="0" ce11padding="0" cellspacing="0" width="100r


background="i mage/ ock. gi f ">
<TR>
<TD colspan="2"
JavaScript 315

<P>&#151:&nbsp:, . &nbsp:&#151:&nbsp:CKa3an
. Snbsp: 51 :&nbsp;
!</>
<P>&#151:&nbsp:Hy. ,
,
, ? &nbsp:&#151: &nbsp:
.</>
<P>&#151:&nbsp: -
! ?</>
<P>51:&nbsp;fla ,
? &nbsp:51:&nbsp:
.</>
<> ,

. :</>
</TD>
</TR>
<TR>
< width="50rxDIV align="center"><CENTER><TABLE
border="0" cellpadding="0" cellspadng="0">
<TR>

<TD width="50rxDIV align="center"><CENTERxTABLE


border="0" cellpadding="0" cellspacing="0">
<TR>
<FORM name="forma"action="test.html">
<INPUT type="hidden" name="test" value="f">
<TD><iNPUT type="image" src="image/door.gif"
width="250" height="235" alt="Door II" border="0"x/TD>
</FORM> <TO bgcolor="#COCOCO" a!ign="center">B

: ,

</>
</TR>
</TABLE> .
</CENTERx/DIVx/TD>
</TR>
<TR>
<TD colspan"2" height="5" background"image/bottom.gif">&nbsp;</TO>
</TR>
<TR>
<TD colspan="2">&#151:&nbsp;A ,
? - .<P>&#151:&nbsp;
&nbsp:S#151;&nbsp:npaBfla.&#151;&nbsp; .&nbsp;
&#151:&nbsp:Ha &nbsp;&#151:&nbsp;HeT.</P>
<> ,
? (,
316 13. ?

.)</>
</TD>
</TR>
</TABLE>
</CENTER></DIV>
</BODY> <
</HTML>

, -
. (, onsubmit
onclick) , -
, . :
1, , , 2 . .
12 12, .
.

Flash, HTML
. , , -
, .
.

13.3. HTML-
<1_>

<>
< name="DESCRIPT!ON" 11=" ? 1">
< name="KEYWORDS" 11=" ">
<11>" ? 1"</TITLE>
<SCRIPT src='test.js'>
JavaScript

</SCRIPT>
JavaScript,
< href="answers.htm">OTBeTbi</A>.
</BODY>
</HTML>

function Ref1 ) {
var iX=0;
var URLX=String:
var URLX="Baiu_URL/test.htm?test=f&x=";

function Ref doc) {


var iX=0:
var URLX=String:
var URLX="Baiu_URL/test.htm?test=f&x=":
318 13. ?

13.4.
<HTML>
<HEAD>
< name="DESCRIPTION" content="Mrpa ">
< name="KEYWORDS" content="nayK ">
<11_> </11_>
<SCRIPT src="spider.js"></SCRIPT>
</>
JavaScript 319

<TD><INPUT type="text" size="17" name="t3" style="font-family: Courier: border:


Opx" onFocus="Place=Click(this.name. Place):">
</TD>
<TD><IMG name="i3" src="image/lpixel.gif"
width="75" height-"66"></TD>
<TD><IMG name="i4" src="image/lpixel.gif"
width="75" height="66"x/TD>
<TD><INPUT type="text" size="17" style="font-family: Courier: border: Opx"
name="t4" onFocus="Place=Click(this.name. Place):">
</TD>
</TR>

<TD><INPUT type="text" size="17" name="t5" style="font-family: Courier: border:


Opx" onFocus="Place=Click(this.name. Place):"> </TD>
<TD><IMG name="i5" src="image/lpixel.gif"
width="75" height="66"></TD>

width="75" height-"66"x/TD>
<TD><INPUT type="text" size="17" name="t6" style="font-family: Courier: border:
Opx" onFocus="Place=Click(this.name. Place):"> </TD>
</TR>

<TR>
<TDxiNPUT type="text" size="17" name="t7" style="font-family: Courier: border:
Opx" onFocus="Place=C1ick(this.name. Place);"> </TD>
<TDxiMG name="i7" src="image/lpixel.gif"
width="75" height="66"x/TD>
<TDxiMG name="i8" src="image/lpixel .gif"
width="75" height="66"x/TD>
<TDxiNPUT type="text" size="17" name="t8" style="font-family: Courier: border:
Opx" onFocus="Place=Click(this.name. Place):"> </TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</FORM>
13. ?

Netscape Communicator style="font-family: border: Opx"".


.

3 - Microsoft Internet Explorer

. 13.2.
JavaScript 321

13.5. JavaScript, spider.js


function ChangeO {
setTimeoutCChangeO'. RATE):

//
var TEXT=String;
var iString=String;
van URL="Bau_URL/exp.htm"+"?result="+document.forma.hidden.value:
var URLl="Bauj_URL/spider.htm"
//
var Mum = Math.round Math.randomO* 7 )+l;
// 1 8
iString="t"+Num:
TEXT=document.forma[iString].value:
document.forma[1String].value = TEXT.substring(l) + "@";

//
var len=Default.length-l;
document.images[name_local].src="image/spweb.gi f";
document.images[PIace_loca!].src="image/lpixel.gif":

//
Place=name.substring(l);

for (i=0; i<len: i++){


//
13. ?

TEXT=document . forma [name] . val ue :


TEXT=TEXT.substring(i,i+l):

document . forma [name] .value =Def aul t :


//
return Place:
//

setTimeoutQ , -
. -
.

Microsoft Internet Explorer

. 13.3. , confirm()

<SCRIPT language="JavaScript">
<!--
var URL="Bauj_URL/exp.htm?resu1t=" :
var lenl=URL. length:

+document. location. href .substring(lenl,len2) ):


JavaScript 323

. , ,
- . , -
, , ?
324 13. ?


Flash

.
Date .
Flash

Flash
:
File View Control Help

326 13. ?

, Comment
Actions (), //.
-
, .
-.

13.6.
function ini () {
L = new Array :
//
= new ArrayO:
//
= new ArrayO:
//
= new ArrayO ;
Flash 327

j.
328 13. ?

: Insert - . - . Page Up - . End -

on (release) {
Flash 329

, ( -), -
. ini -
.

.
.
, . -
(GIF JPG) (
, -
). ,
-
.

k = 0;

for (i-1; i<(M.length+l); i++) {


name = "M_"+String(i);
removeMovieClip (name): //

with (Men)
330 13. ?

//
_ = -100;
-100:

stop ) :

, ,
. , ActionScript -
. -
. Flash .

on (release) {
var labirint = "Labirint"+_root.numer+".txt";
loadVariablesNum (labirint. 0);
_root.gotoAndPlay("Enter"):
}

var labinnt="Labirint"+_root.nuiner+ ".txt";


loadVariablesNum ( labirint.0);
_root.gotoAndPlay ("Enter");

13.7.
onClipEvent (keyDown) {
Kk = Key.getCodeO:
//
jl = _root.Coord;
// -
if (Key.isDownCKey.RIGHT)) {
// ,
this.gotoAndStop("ri");
//
Flash 331
332 13. ?
Flash 333

. 13.5. :
334 13. ?

, , -
Edit in Place ( ) .
,
.
Flash 335

h>>. File Edit View insert Modify Text Cdnttol Window Hel|

e
1
s4 :' ' 1; gs.'te" !' ; .L Opfe^.

i
ll
^

3

.'

? 4>V;Q
:: : :
.. , : ' *

.

1
IS




% |
[




800

. 13.6.

336 13. ?

. 13.7. :

13.8.
var Mum - jiame;
if (_root._currentframe>2) {
//
DeltX - Math.round(2*(Math.random()-l/2));
//
i = parseInt(Num.substring(2))-l:
f = _root.M[i]+DeltX;
if (C_root.L[f] ne "W") and (DeltX != 0)) {
//
this._x += DeltX*_root.HiW:
thi s.Mi n. j-otati on=DeltX*90;
//
_root.M[i] +- DeltX;
} else {
DeltY - Math.round(2*(Math.randomO-l/2));
Flash 337

, -
, . (-
_rotation).

. 13.8.
338 13. ?

13.9.
var Mum = _name:
var DeltX = 0:
var DeltY = 0;
if (_root._currentframe>5) {
//
this.removeMovieClipO:
}
if (Num ne "Bullet") {
//
i = parselnt(Num.substringd));
if (Num.substrtO. 1) eq "R") {
// ,
f = _root.B[i ]*!:
_root.BX[i] +- root.HiW;
}
if (Num.substr(0. 1) eq "I") {
// "I". "L"
f - _root.B[i]-l:
_root.BX[i] -= _root.HiW:
}
if (Num.substr(0. 1) eq "U") {
f = _root.B[i]-_root.Wi;
_root.BY[i] - _root.Hi:
}
if (Num.substr(0. 1) eq "D") {
f = _root.B[i]+_root.Wi;
_root.BY[i] += _root.Hi;
}
if (_root.L[f] eq " W " ) {
this.removeMovi eCli p():
}

this. removeMovieClipO:

_root.B[i] = f;
this._x = _root.BX[i] :
this._y = _root.BY[i] :
Flash

. 13.9.
340 13. ?

:"U"
399:""

. 13.10.
341

, . -
Press startDrag,
release stopDrag.

on (load) {
342 13. ?

, -
.


14


344 14.


345

.
346 14.

HTML JavaScript

Flash

HTML
? 347

Flash
348 14.

. , 1, -
45 /, 1,544 /.

1.1. ,

URL
www.narod.ru , e-mail;
FTP; , , , , -
; , , Yandex;
www.boom.ru , ;
; ; ; -
mail.ru
www.by.ru . WWW FTP. , ,
, , , SSI. .
www.holm.ru ; FTP; , , ,
, , CGI, SSI, Perl, PHP4, MySQL; Agava Sofware;

www.halyava.ru 2 , e-mail; FTP WWW ; , ,
www.hotbox.ru 20 , e-mail; , WWW FTP;
; ;
www.tomsk.net 5 ; FTP; , , ; ;
www.webservis.ru e-mail; FTP; ,
, , , CGI, PHP4;
www.mykm.ru ; FTP; , , , -
; ASP, Access, MS SQL, Perl, PHP, SSI, MySQL; ,


1.

1.1.

URL

www.hut.ru 30 , e-mail; FTP; CGI, Perl, MySql, SSH, SSI;


www.fanat.ru -; 10 ; WWW FTP; ;
, , ; ;
www.klax.tula.ru + e-mail 10 , FTP; PHP3; ;
www.hobby.ru 20 ; FTP WWW; CGI, SSI; ; -

www.my.elvisti.com 2 ; FTP; SSI; ;
www.ussr.to 200 . , WWW FTP. , , , -
, , . .
www.az.ru 200 ; , WWW FTP; , , , -
, , ; ;
www.chat.ru 10 , e-mail; WWW FTP; ;
www.fatal.ru 50 , e-mail. FTP WWW. CGI, PHP, Perl SSI
www.webservis.ru , e-mail; FTP; , ,
, , CGI, PHP, SSI;
www.wallst.ru , e-mail; FTP; , ,
, , CGI, PHP, SSI;
www.tractir.ru 15 , e-mail; FTP; SSI, , 4, CGI;
www.tam.ru 200 ; , WWW FTP; , , , -
, , ; ;
www.lgg.ru 15 , e-mail; WWW FTP; SSL, SSI, PHP4, CGI, MySQL; , ,
, , ;

1.2.

URL

www.guestbook.ru www. work, relsoft. md/service/


www.gbook.ru www.g uestbook. net. ru
www.gb.ru www.xbook.ru
www.gb.lpt.ru www.script.ru
www.guestbook.novgorod.ru www.myguestbook.ru
www.services. blad.ru www.eforum.com.ua
www.hotlog.ru
chatcity.ru
chatlist.ru ,
zerkalo.com
, , , 353

URL

www.voter.ru
www.subscribe.ru
yamschik.pp.ru
e-mail.com.ua

, , ,

Flash

1.3. Flash

URL
Flash Macromedia www.macromedia.com
www.reflash.ru
www.flasher.ru
www.flashkit.com
www.flashpro.ru
flashzone.by.ru
flasht.lgg.ru
www.flashlite.net
www.flashcentral.com
http//:freedoc.vov.ru/doc/?doc=flash/index.htm
www.movies.dtn.ru
zona5.al.ru
www.hippo.ru

12 . 96
354 1.

HTML

1.4. HTML

URL
bonik.infor.ru/indexdot/html/index.html
uchebnik.boom.ru/
www.design.pip.ru/html/wedenie.html
www.beseder.net/htmllessons/l.html
weblist.narod.ru/site/index.htm
help, my money. ru/tutor/adv 1_01 .shtml
www.kruglov.ru/articles/crossbrowserdhtml.shtml
www.arcus.lv/dimas
my.km.ru/html/default.htm
infoschool.narod.ru/html/index.htm
kadet.net.ru/uchebnik/mainhtml.shtml

JavaScript

1.5. JavaScript

URL

www.jsp.newmail.ru
anktrue.spb.ru/js.html
www.citforum.ru/win/internet/koch/tutorial.htm
webb.bip.ru/java.shtml
webmasterilka.com/scripts/javascript/article/course/contents.shtml
cdesign.boom.ru/bookjavascripts.htm
www.kormushka.net/resources/java.html
dhtml.narod.ru/java_script.html
2

HTML 4

HTML-

2.1. ,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//RU">
<HTML>
<HEAD>
<TITLE>3a </1_>
</HEAD>
<BODY>
366 2. HTML 4

. < NOSHADE width="50r> .


<PRE>

UlpH(j)TOM</PRE>

. 2.1. (. 2.11)

367

: id, class, lang, dir, title, rel, rev, style, onfocus, onblur,
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout,
onkeypress, onkeydown, onkeyup, target, tabindex, accesskey, charset.

<> , -
: < ="1.1"> < ="12..> </>-
</>.

ADDRESS

: id, class, lang, dir, title, style, onclick, ondblclick,


onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup.

: id, class, lang, dir, title, style, align, onclick, ondblclick,


onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup.
368 2. HTML 4

HI, H2, ...,

: id, class, Tang, dir, title, style, align, onclick, ondblclick,


onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup.

: id, class, lang, dir, title, style, align, onclick, ondblclick,


onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup.

, ( <>),
- .

PRE

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

2.12. ,
<>
, <DEL>5</DEL><INS>3</INS>.
</>
<HR width="50r align="LEFT" size="4">
<BLOCKQUOTE cite="http://www.dimvovich.narod.ru.personal.html ">
<>
<>
, .<BR>
<>
.<BR>
</BLOCKQUOTE>
<HR width="300" align="LEFT" size="6">
<CITE="http://www.cheburashka.ru.">
3 D.\Books\My\Hash2\Flash\AppE\Frases.htinl - Micrusuft Internet Explorer
, tail . ii*w ' r-svurir;. lo-.ls- Help.

II
3.

;,,

. 2.2. (. 2.12)

ABBR

: id, class, lang, dir, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
370 2. HTML 4

ACRONIM

BLOCKQUOTE

: id, class, lang, dir, title, style, onclick, ondbl click, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

BDO

CITE

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

CODE

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

DEL

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

DFN
371

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
EM

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
SAMP

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
SPAN

: id, class, lang, dir, title, style, align, onclick, ondblclick,


onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup.
STRONG

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
372 2. HTML 4

VAR

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

2.13.

3D:\Books\My\Flash2\FlashVApp2\Strinq html - Microsoft Internet Explorer

IS

. 2.3. (. 2.13)
373

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
BASEFONT

: id, class, lang, dir, title, style.

BIG
, , .
: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
FONT

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
374 2. HTML 4

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

: id, class, lang, dir, title, style, onclick, ondbl click, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
S, STRIKE

SMALL

: id, class, lang, dir, title, style, onclick, ondbl click, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
SUB

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
SUP

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
U

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

BR
375

<BR> <IMG>. -
.

HR

: id, class, lang, dir, title, style, align, onclick, ondblclick,


onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup.

2.14.
<UL>
376 2. HTML 4

D:\Books\My\Flash 2\FlashVApp2\Li sts_a2.html - Microsoft Internet Explorer

. 2.4. (. 2.14)

UL

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
377

: id, class, lang, dir, title, style, onclick, ondbl click, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

LI

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

MENU, DIR

DL

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

DT

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
DD

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

2.15. ,
< href="Elefant.htm1"><IMG src="img/elefant.gif" width="100" height="100" alt="Elefant"
hspace="10" "=";"><></>
378 2. HTML 4

, , .
</APPLET>
<APPLET codebase="http://www.narod.ru/applets" code="JavaTetris.class" width="400"
height="500" align="center">
<PARAM name="width" value="10">
<PARAM name="height" value="20">
<PARAM name="name" value="Tetris">
</APPLET>
<P>OBJECT classid="http://www.miamachina.it/analogclock.py"> An animated clock.
</OBJECT>
<P> < ! - - First, try the Python applet -->
OBJECT title-'The Earth as seen from space"

<!-- Else, try the MPEG video -->


OBJECT data="TheEarth.mpeg" type="application/mpeg">
<!-- Else, try the GIF image -->.
OBJECT data="TheEarth.gif" type="image/gif">
<!-- Else render the text -->
The <STRONG>Earth</STRONG> as seen from space.
</OBJECT>
</OBJECT>
</OBJECT>

height width,
.

379

alt, -
.

, .
380 2. HTML 4

<IMG> <BR>, -
.

: id, class, Tang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.
OBJECT

, .
381

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup, tabindex.
EMBED

APPLET
382 2. HTML 4

2.16.
<TABLE border>
383

2.19.
<TABLE>

<COLGROUP>
<COL width="30"><COL width="0*"> <COL width="2*">
<COLGROUP align="center">
<COL width="l*"> <COL width="3*" align-"char" char-
<THEAD>
<TR><TD>

...rows...
</TABLE>

2.20.
384 2. HTML 4

<TR><TD>7 <TD>8 <TD>9


</TABLE>
2
<TABLE border="l">

<TR><TD colspan="2">4 <TD>6

</TABLE>

. 2.5. (. 2.20)

TABLE
385

: id, class, Tang, dir, title, style, align, valign, onclick,


ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup.

CAPTION

: id, class, lang, dir, title, style, onclick, ondblclick, onmousedown,


onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

THEAD

: id, class, lang, dir, title, style, align, valign, onclick,


ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup, char, charoff.
386 2. HTML 4

TFOOT

: id, class, lang, dir, title, style, align, valign, onclick,


ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup, char, charoff.

TBODY

: id, class, lang, dir, title, style, align, valign, onclick,


ondbl click, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup, char, charoff.

COLGROUP

: id, class, lang, dir, title, style, align, valign, onclick,


ondbl click, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup, char, charoff.

COL

: id, class, lang, dir, title, style, align, valign, onclick,


ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup, char, charoff.
387

: id, class, lang, dir, title, style, align, valign, onclick,


ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup, char, charoff.

TH
388 2. HTML 4

: id, class, lang, dir, title, style, align, valign, onclick,


ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup, char, charoff.
TD

: id, class, lang, dir, title, style, align, valign, onclick,


ondbl click, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup, char, charoff.

2.21.
<!-- -->
<FORM action="www.narod.ru/cgi-bin/ths.pl" name="TestForm">
<!-- -->
<INPUT type="text" size="20" !="">
<INPUT type-"submit" 1="0">
</FORM>
389

\:<>

OPTGROUP labeVPortMaster 2">


OPTION label="3.7" value="pm2_3.7">PortMaster 2 with ComOS 3.7</OPTION>
OPTION label="3.5" value="pm2_3.5">PortMaster 2 with ComOS 3.5</OPTION>
2. HTML 4

3 D:\Books\My\Flash2\Flesh\App2\forms.html - Microsoft Internet Explorer


lie Eriit. yiev/. Favorites

j;.' J lj:\Eook;\M>\Hesh?\Flash\App2\t

[NOM 1

. 2.6. (. 2.21)

2.22.
<FORM action="..." method:="post">
<>
<FIELDSET>
<LEGEND>Personal Information</LEGEND>
Last Name: <INPUT narae="personaljastname" type-"text" tabindex="l"><BR>
First Name: <INPUT name="personal_firstname" type="text" tabindex="2"><BR>
Address: <INPUT name="personal_address" type-"text" tabindex="3"><BR>
</FIELDSET>
<FIELDSET>
<LEGEND>Medical History</LEGEND>
<INPUT name="history_illness"
type="checkbox"
va1ue="Smallpox" tabindex="20"> Smallpox
<INPUT name="history_illness"
type="checkbox"
value="Mumps" tabindex="21"> Mumps
<INPUT name="history_illness"
type="checkbox"
value"Dizziness" tabindex="22"> Dizziness
391

<INPUT name="history_illness"
type="checkbox"
value="Sneezing" tabindex="23"> Sneezing
</FIELDSET>
<FIELDSET>
<LEGEND>Current Medication</LEGEND>
Are you currently taking any medication?
<INPUT name="medication_now"
type="radio"

3 D:\Books\My\Flosh2\Flash\App2Vo

. 2.7. (. 2.22)

FORM
392 2. HTML 4

: id, class, lang, dir, style, title, target, onsubmit, onreset,


onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout,
onkeypress, onkeydown, onkeyup.

INPUT

Checkbox ;
393

-
, .

: id, class, lang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.
BUTTON
394 2. HTML 4

: id, class, lang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.

SELECT

: id, class, lang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondbl click, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.
OPTION

: id, class, lang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondbl click, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.
OPTGROUP
395

: id, class, Tang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.
TEXTAREA

: id, class, Tang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondbl click, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.
ISINDEX

LABEL

: id, class, lang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondbl click, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.

FIELDSET
396 2. HTML 4

: id, class, lang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.
LEGEND

: id, class, lang, dir, title, style, onfocus, onblur, onselect,


onchange, onclick, ondbl click, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup.

BGSOUND

<BGSOUND src="My__sound.wav" loop-"INFINITE">

BLINK

<> , Netscape</BLINK>

ILAYER
397

<ILAYER name="11ayer2" top="100" left="100" clip="10. 10. 50. 50" background="image.gif"


bgcolor="BLACK" height="100" width="100"> <>

KEYGEN

<KEYGEN name="MyName" cha!1enge="MyChallenge">

LAYER
398 2. HTML 4

<LAYER name-"ilayer2" TOP="100" LEFT="100" CLIP-"10. 10. 50. 50" background"image.gif"


BGCOLOR"BLACK" height="100" width="100">Coflep>iwMoe <1 >

MARQUEE
399

<MARQUEE align="Top" loop="infinite" behavior="slide" bgcolor="#FFOOOO" direction="1eft"


height=30 w1dth=200>
MULTICOL

<MULTICOL cols=3 width=80 gutter=20>


</MULTICOL>

NOBR

<NOBR>http://www.mysite.com</NOBR>
NOLAYER
400 2. HTML 4

<NOLAYER>Baui .<NOLAYER>

<RUBY>
^> </>
</RUBY>

SERVER

SPACER
401

<SPACER type="block" align="left" width=100 16=100>


SPACER. ?</5>

WBR

<(> <>
</> </NOBR>
XML
402 2. HTML 4

: id, class, lang, dir, onfocus, onblur, onselect, onchange, onclick,


ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup.

<XMP>text</XMP>

align

bgcolor

char

charoff

charset
403

dir

href

hreflang

fr
de
it
nl
el
es
pt
ar
he
ru
zh
ja ,
hi
-
ur
sa

media
404 2. HTML 4

name

onblur

onchange

onclick

onfocus

onkeydown

onkeypress

onkeyup

onmousedown

onmousemove
405

onmouseout

onmouseover

on mouseup

onreset

onselect

onsubmit

on unload

rel
406 2. HTML 4

style

< style="font-size: 12pt; color: fuchsia">KaK ?


target

type

valign


407

'

..
3

JavaScript

, document, window body,


Netscape.
. ,
.
, JavaScript
.
.

JavaScript,
Array

new Array(arrayLength)
new Array(elementO, elementl elementN)
JavaScript,

3.1. Array

constructor -
index , ,
( 0)
input , ,
,
length
prototype -

3.2. Array

concat(arrayName2, arrayName3,...,
arrayNameN)
join(separator) , -

popO
push(elementl,..., elementN)

reverseQ -

shiftQ -

slice(begin[,end])

splice(index, howMany, [elementl][, /
..., elementN])
sort (compareFunction)

toSourceQ 1
toStringO , -

unshift(elementl,..., elementN) -

ValueOfQ
410 3. JavaScript

for (i=0: i < 4:


str = "Row "+i+"
for (j=0: j < 4;
str +- a[i][j]
}
myVar +- str +": ":

Row 0:[0.0][0.1][0,2][0.3]:
Row 1:[1.0][1,1][1,2][1.3];
Row 2:[2.0][2.1][2.2][2.3];
Row 3;[3.0][3.1][3.2][3.3];
JavaScript, 411

removed = myCats.splice(2. 0. " "):


document.write("After adding: " + myCats+ "<BR>"):
unshifted - myCats.5"". ""):
document.write("After unshift: " + unshifted* "<BR>"):

</SCRIPT>

Boolean

new Boolean(value)

.. Boolean


constructor - Boolean
prototype Boolean

3.4. Boolean


toSource()
toStringQ ,

ValueOf()
412 3. JavaScript

van flag = new Boolean(true);


van myVar=flag.toString(); // myVar true
x = new BooleanO: .

Date

new DateO:
new Date(milllseconds);
new Date(dateString);
new Date(yr_num. mo_num, dayjium [. hr_num. min_num, secjfium, ms_num]);
JavaScript, 413

3.5. Date


constructor - Date
prototype Date

3.6. Date


getDateQ
Date
getDay()
Date
getFullYear()
Date
getHoursQ Date
getMillisecondsQ
Date
getMinutesQ Date
getMonthQ Date
getSecondsQ Date
getTimeO , -
1 1970 ,
Date
getTimezoneOffsetQ -

getUTCDate()
Date
getUTCDay()
Date

getUTCFullYearQ
Date
getUTCHours() Date -

getUTCMilliseconds()
Date
getUTCMinutes() Date -

getUTCMonthQ Date -

getUTCSeconds() Date -

getYear() Date
parse(dateString) , -
(00:00:00) 1 1970 .


3. JavaScript

..


setDate(dateValue)
Date
setFullYear(yearValue [, monthValue Date
[, dateValue]])
setHours(hourValue) Date
setMilliseconds(millisecondValue) Date
setMinutes(minuteValue) Date
setMonth(monthValue [, dateValue ]) Date
setSeconds(secondValue) Date
setTime(millisecondValue) Date

setUTCDate(dateValue) Date -

setUTCFullYear(yearValue [, Date -
monthValue [, dateValue]])
setUTCHours(hourValue [, Date -
minuteValue [, secondValue [,
millisecondValue]]]))
setUTCMilliseconds(millisecondValue)
Date
setUTCMinutes(minuteValue [, Date
secondValue [, millisecondValue]]))
setUTCMonth(monthValue [, Date
dateValue])
setUTCSeconds(secondValue [, Date
millisecondValue]))
setYear(yearValue) Date -
, -
Flash-
toGMTStringO GMT -

toLocaleString()

toSource() -

toString()
toUTCStringQ -

UTC(yearValue, monthValue [,
dateValue [, hourValue [, 1 1970 -
minuteValue [, secondValue [, ,
millisecondValue >])
ValueOfQ
JavaScript, 415

theBigDay. setSecondsOO):
day = theBigDay. getDateO:
weekday - theBigDay.getDayO:
yr = theBigDay.getFullYearO:
hours = theBigDay.getHoursO;
ms - theBigDay.getMillisecondsO:
minutes - theBigDay.getMinutesC);
month = theBi gDay. getMonthO:
sees - theBigDay.getSecondsO:
document.writelntyr. month, day. weekday, hours, minutes, sees, ms):
theBigDay = new DateC'July 1. 1999"):
sameAsBigDay = new DateO:
sameAsBigDay.setTime(theBigDay.getTimeO):

- new Datet):
426 3. JavaScript

3.21.


myString .tollpperCaseQ String -

ValueOfQ

3.22.

Infinity
NaN He-
undefined

3.23.


boolean (object)
decodeURI(encodedURI) (URI),
encodeURI
decodeURIComponent(encodedURI) URI,
encodeURIComponent(uri)
JavaScript,

encodeURI(uri) , ,
UTF-8
encodeURIComponent(uri) ,
, UTF-8
escape(string) , ,
ASCII
eval(string) JavaScript-
isFinite (number) ,
isNaN (number) ,
number (obj)

parseFloat (string)
parselnt (string[, radix])
scriptEngineQ, IE, -
ScriptEngineBuildVersion(), JavaScript
ScriptEngineMajorVersionQ,
ScriptEngineMinorVersionQ
string (obj)
unescape(string) , escape
unwatch(property, funcHandler) ,
NN
watch(property, funcHandler) ,
NN

parseFloat("3.14"):
parseF1oat("314e-2");
parseF1oat("0.0314E+2"):
var x = "3.14";
parseFloat(x):

parselntrilll". 2):
parselntC'Hello". 8): // - NaN
428 3. JavaScript

} else {
IsFloatO:
}

JavaScript

3.24.


break [label] , switch
label

const constname [= value] [..., constname [=
value] ]
continue [label]
label

do {statements} statements -
while (condition); condition
export namel, name2,..., nameN
export *
for ([initial-expression]; [condition]; statements increment-
[increment-expression]) expression
{statements } condition
for (variable in object) statements
{ statements } object
function name([param] [, param] [..., param])
{statements}
if (condition) {statements!} [else { condition: -
statements2 }] statements!,
statements2
import objectName.namel,
objectName.name2,..., objectName.nameN
import objectName.*
label: , -

return expression expression -

JavaScript, 429


switch (expression) -
{ case labell: statements!; break; expression ,
label
case Iabel2: statements2; break;

default: statementsN; }
throw expression; -

try { statements } ,
[catch (exception_var if expression) ,
{statements}]

[catch (exception_var) {statements}]


[finally {statements}]
var varname [= value] [..., varname [= value] ]
while (condition) statements,
{statements} condition
with (object){statements} statements
object

const a = 7;
van num_hits - 0. custjio - 0:

function testBreak(x) {
var i = 0:
while Ci < 6) {
if (i 3)
break :

return i*x:
}
for (var i = 0; i < 9: i++) {
n += i ;
myfunc(n);

i =0;
n - 0:
while (i < 5) {

if (i == 3)
continue:
n + i:

function calc_sales(units_a. units_b, units_c) {


return units_a*79 + units_b*129 + units_c*699
430 3. JavaScript

switch (i) {
case "Oranges" :

document. writeC'Apples are $0.32 a pound. <BR>"):


break:
case "Bananas" :

document. writeC'Is there anything else you'd like?<BR>"):

function getMonthName (mo) {


mo=mo-l; // 0 11
var months-new Array ("Jan" , "Feb" . "Mar" . "Apr" . "May" . "Jun" . "Jul " .
" Aug " , " Sep" . "Oct " . " Nov " . " Dec " ) ;

monthName="unknown" :
logMyErrorste. message. e. name): //

3.25.


expression 1 % expression2
expression! expression2
expression 1 * expression2 .
expression 1 + expression2 -
() . -
, -
,
++expression , -
expression++ 1 expression.
1 -
,
JavaScript, 431

-expression
expression 1 - expression2

--expression , -
expression- 1 expression. -
1
,
expression 1 / expression2 expression! expression2

3.26.

expression 1 < expression2 . expressionl


expression2, true, false. -

expression 1 <= expression2 , expressionl
expression2 ,
true, false
expression 1 != expression2 expressionl expression2,
false. ,
; , -
,
expression 1 == expression2 .
, true. -

, .
, .
, ,
. , -
, .
,

expression 1 !== expression2

expression 1 === expression2
expression 1 > expression2 , expressionl
expression2, true,
false.
expression 1 >= expression2 , expressionl
expression2,
true, false

3.27.

expressionl %= expression2 expressionl


expressionl%expression2


3. JavaScript

3.27.

expression I &= expression^ expressionl


expressionl expression2
expression 1 *= expression2 expressionl
expression I *expression2
expression 1 += expressionZ expressionl
expression I+expression2
expression 1 -= expression2 expressionl expressionl-
expression2
expression 1 /= expression2 expressionl
expression l/expression2
expression 1 = expression2
expressionl
expression 1 = expression2 -
expressionl
expression 1 >= expression2 -
-
expressionl
expression 1 A = expression2 expressionl
expression IAexpression2
expressionl |= expression2 expressionl
expression 11 expression2

3.28.

! expression expression
expressionl && expression2
( )
expressionl || expression2 true,
true; false,
false

3.29.

expressionl & expression2 expressionl


expression2 32-


expressionl expression2 32-
expressionl -
, expression2. ,
, -
.
2
JavaScript, 433

expression I expression^ 32-


expression 1
, expression2. , ,
. -
. -
2
expression 1 > expression2 -
, -
,

A
expression 1 expression2 32-
-

expression 1 | expression2 32-
-

~ expression 32-
, . , -
, 1

.30.


expression I ? expression2 : expressionl true,
expressions expression2, expressions
exprl, expr2 ()

-
*/
delete objectName ,
delete objectName.property
delete objectNamepndex]
delete property // legal only
within a with statement
{var | const} variableName =
function(parameters)
{functionBody}
propNameOrNumber in true,
objectName
objectName instanceof true,
objectType
objectName = new objectType , , -
(paraml [,param2]
...[,paramN])
This[.propertyName] ,
typeof( expression) , (-
, , )
void(expression)
434 3. JavaScript

mycar - new carC'Eagle". "Talon TSi". 1993):


"make" in mycar; // true
delete mycar: // true

function validatetobj. lowval. nival) {


if ((obj.value < lowval) || (obj.value > nival))
alertC'Invalid Value!");
}

HTML

HTML- ,
HTML-, -
. , Body ,
<BODY>.

Document
HTML 435

3.31. Document


activeElement , -

alinkColor . Internet Explorer 4 DOM -
aLink Body
bgColor
charset ,
Internet Exlorer
characterSet ,
Netscape Communicator 6
cookie cookie
defaultCharset ,

designMode , (IE5) -
HTML-
doctype DocumentType,
, DTD
documentElement document HTML--

domain ,
expando , ,
document;
fgColor
FileCreateDate
fileModifiedDate
fileSize
height . IE -
document.body.scrollHeight
implementation hasFeatureQ,
(HTML XML).
: document.implementation.hasFeature()
lastModified
linkColor
location URL . window.location.href -
.
,
document.URL
media -

mimeType MIME,
namespaces namespace, -

parentWindow window


436 3. JavaScript

3.31.


protocol IE ,

(, Hypertext Transfer Protocol)
readyState .
( ): complete, interactive, loading, uninitialized
referrer URL ( ), -

security , -

selection
Title TITLE,
URL URL . window.location.href -

URLUnencoded
unescape(document.URL)
vlinkColor
width . IE
document.body.scrollWidth

3.32. Document



, -
document.writeQ document.writeln ()
createAttribute("AttributeName")
createElement("tagName") , tagName
createStyleSheet(["url"[, index]]) -
. URL . Index -
stylesheets
createTextNode("TeKcr") , -
HTML-
elementFromPoint(x, y) ,
, -

zlndex ( )
execCommand("commandName"[, ActiveX IE
UIFIag[, value]])
getElementById("identifier")
identifier. -
NN6, IE5+
document.all
getElementsByName("name")
name
open("MIMEType"[, "replace"])
HTML 437


write("string") string

writeln("string") string
,

..

document.all[ID]
HTML, - document.all(ID, [index])

ID
anchors[ ] - document.anchors[index].
- objectPropertyOrMethod
( 0)
applets[ ] - document.appletsfindex].
objectPropertyOrMethod
classes[ ] [document.]classes.className.
stylePropertyName
embedsf ] - document.embeds(index).
( EMBED) objectPropertyOrMethod
forms[ ] ( document.forms[index].objectPropertyOrMethod
FORM)
framesf ] IFRAME document.frames(index).
objectPropertyOrMethod
images[ ] - document.images[index].
(IMG ) objectPropertyOrMethod
layers[ ] , document.images[index].
. objectPropertyOrMethod
NN4
links[ ] - document.links[index].objectPropertyOrMethod
-
pluginsf ] plug-in documentplugins(index).
objectPropertyOrMethod
scripts[ ] SCRIPT document.scripts(index).
objectPropertyOrMethod
styleSheets[ - document.styleSheets(index).
- objectPropertyOrMethod

tags[ ] tag CSS [document.]tags.tagName.stylePropertyName
Window

3.34. Window

closed , ,
defaultStatus ,
document document,

frames
history history
innerHeight, ( ) ( NN)
innerWidth
length , , -
window.frames.length
HTML

location URL - . ,
location.href
name , . -

navigator navigator
opener window ( frame),
window.openQ
outerHeight ( ) , -
outerWidth ( NN)
pageXOffset ( ( NN))
pageYOffset
parent window
returnValue , , IE -
(. showModalDialog)
screenLeft,
screenTop ( HTML-)
screenX, (NN 6)
screenY
scrollX, scrollY -
(NN 6)
self
status
top
window window window. -
window.cBoncTBO_MeTOfl _

3.35. Window

alert(message) message ,

back()
( )
onBlur
clearlnterval(intervallD) intervallD (. setlnterval)
clearTimeout(timeoutlD) timeoutID (. setTimeout)
close()
confirm(message) message
: Cancel
createPopup() , -
, -


440 3. JavaScript

3.35.

execScript(expressionl_ist expressionList (
[, language]) ) ,

find(searchString [, searchString;
matchCasef, matchCase , searchUpward -
searchUpward]])
focus() onFocus ( IE)
forward()
( )
home()
moveBy(deltaX, deltaY)
moveTo(x, y) -

open(URL, windowName[, ( )
windowFeatures])
print() , -

prompt(message, message, -
defaultReply) : Cancel .
Cancel null,

resizeBy(deltaX, deltaY)
resizeTo(x, y) .

scroll(x, y) (, ). -

scrollBy(deltaX, deltaY) (deltaX, deltaY)
setlnterval(expression, expression msecs .
msecs[, args | language]) , -
IntervallD clearlnterval(),

setTimeout(expression, expression msecs. -
msecsf, args | language]) ,
timeoutID clearTimeoutQ
showModalDialog(URL[, .
argumentsf, features]]) DialogArguments, dialogHeight, dialogWidth, dialogLeft, dialogTop

stop() ,

HTML

parent.frames[2].document.forms[2].message.value = "!";
van userName = showModalDialogC'userNamePrompt.html"):
window.returnValue = window.document.forms[0].userName.value:
if (confirm("Reset the entire form?")) { document.forms[0].reset( ) }
window.execScriptC'var x = 3: alert(x * x)")

accessKey ,
a Link
background
bgColor
bgProperties , ,
( fixed) -

BottomMargin
clientHeight, clientWidth
clientLeft, clientTop
LeftMargin
link
noWrap
rightMargin
scroll ( )

scrollHeight, scrollWidth
scrollLeft, scrollTop
tablndex -
Tab

topMargin
vLink
442 3. JavaScript

1sOpera5=isOpera && isDOM:


// Internet Explorer 5+
isMSIE5=isDOM && isMSIE:
// Mozilla Netscape 6.*
isNetscape6=isDOM && (navigator.appName=="Netscape");
4

Flash

File ()
444 4. Flash

Q Flash;
HTML;

JPEG;
PNG;
Q Projector;
Q QuickTime.

Edit ()
460 4. Flash

4.1.


<> (, < href="www.dimvovich. narod.ru">)


<FONT FACE> ( Arial Times)
<FONT COLOR>
<FONT SIZE>


Instance ()

. 4.13. Instance, Graphic


4. Flash

Effect ()

l] Advanced

, 4.14. Effect

Frame ()

|
|
j||
d //
; Seate

- F Snap

. 4.15. , Frame

Sound ()
464 4. Flash

. 4.16. Sound

0.5

. 4.17. Edit Envelope


Scene ()

|

ljj
f8t I
fjg
,...:.1|

. 4.18. Scene

Actions ()
466 4. Flash

Normal Mode

Actions
Operators Goto Lme,;, ' ;
Functions Find;;r;;i|p:
Properties
P Objects
GH Array Check Syntax-, :
Boolean
: Color Import FrotYiRle:;f

UK Mouse Colored Syntax ;:/;


MovieCHp ShowOeprecated Syntax
HP Number Fontsize , :;;:-."
Object
f) Selection
Sound
.
String
XML

. 4.19. Actions ActionScript

Movie Explorer ( )

Show Text ( );
Show Buttons, Movie Clips and Graphics ( );
Show Action Scripts ( );
467
4. Flash

_<
Eh i frame 168
_
P 5

I ' _
1 frame 155
_
" IP 4
frame 1
> i frame 141
.( lib-...

-3 ......

. 4.20.

Layer Properties ( )

. 4.21. Layer Properties

Output ()

Debugger

Nsrae. I 1 1 . .,.-.;
-
alpha
..cui?er:!?ftfiT:-

Jocusfecl
;

. 4.22.
470 4. Flash

Library ()

Linkage ();
471

Properties ();

Tween 87 Graphic Delete


Tween 88 Graphic
Graphic
i:Rfope
Graphic
! Graphic
Graphic
- Button
Graphic
Movie Clip
! Button
2 Button
Graphic
Movie Clip
! Graphic
2 Graphic
| Graphic
2 Graphic
Graphic ] . !!
2 Movie Clip 27 2002 . 16:28:2;
II Movie Clip 27 2002 . 16:37:4t
Graphic 13 2002 . 15:54:5;
%3 - Button 13 2002 . 15:54:5t
. Bitmap 2002 . 17:10:52

. 4.23.

Common Libraries ( )
472 4. Flash

Generator Objects ( )

1 <^?';|;
1

|
1

. 4.24.

Arrow ()
473

Subselection ()

Line ()

Lasso ()

()
474 4. Flash

Text()

Oval ()

Rectangle ()

Pencil ()
475

Brush ()

Ink Bottle ( )

Paint Bucket ( )
476 4. Flash

Dropper ()

Eraser ()

Colors ( )

Hand ()

Zoom ()
5

ActionScript

(Actions)
break
break;

a=new :
for (i-0: 100; i++) {
if (a[i] >= 100) break:
}
call
call(frame):
478 5. ActionScript

comment

continue
continue;

=[1.0.2.0.2.102.5.2.8]

while (i<10) {
i++;
if (a[i]!=0) {continue;}:
trace (i);

delete
delete(reference):

do.. .while

{statement:}
while (condition) :

a=new ArrayO:
11;

duplicateMovieClip

on(release) {
i=40;
while(i>0) {
duplicateMovieClip (_root.star. "star" + i. i):
//
with ("star"+i ) {
_x=100*Math.random();
_y=100*Math.random():
_al pha=100*Math . random( ) ;
(Actions) 479

else
else {statements} :

a=new ;
If (i<10) {a[i]-i:}
else {a[i]=i-10}:
else if
if (condition)
{statements;
} else if (condition){
statements;}

if (i<10) {a[i]=i:}
else if (i>=20)

fordnit: condition; next) { statement;}.

for.. .in
for (variableiterant in object){ statement; }
480 5. ActionScript

function

function cube(x) { return x*x*x:}

getURL
getURUurl [. window [. variables]]);

gotoAndPlay
gotoAndPlay ([scene], frame);

gotoAndStop
gotoAndStop(scene, frame);

if

ifFrameLoaded

^include
finclude "filename.as":

load Movie
loadMovie(url [target, method]]);

on(release) {
loadMovie ("nextScene.swf"._root.myClip);}

loadMovieNum

on(release) {
(Actions) 481

load Variables
loadVariables(url. target [. method]);

on(release) {

loadVariablesNum
loadVariablesNum ( url. level, method );

on(release) {
loadVariab1esrdata.txt". JevelO):}

nextFrame
nextFrameO;

,
nextScene

on

onClipEvent
onClipEvent(movieEvent)(statements; }

prevScene

print
printCtarget, "bmovie"):
print(target, "bmax");
print(target. "bframe");
482 5. ActionScript

print("myMovie","bmovie");

printAsBitmap

printAsBitmapC'myMovie "."bmovie ");

printAsBitmapNum
printAsBitmapNum ( level, type );

printAsBitmapCJevelO. "bmovie"):

printNum

print (Jevell. "bmovie"):


removeMovieClip

return
return[expression]:
return:

function factorial (a){


if (>1) {return a*factorial -1):}
else {return 1} }

set variable
variable = expression:
setCvariable, expression):

setProperty

on(release){ { setPropertyC'star".
alpha - 30):}
(Actions) 483

startDrag
startDrag(target):
startDragCtarget.nock]);
startDrag(target [Jock [. left. top. right, bottom]]);

on(press) { startDrag("".true);}
stop

on(release){stop :}
stopDrag
stopDragO:

on(release) { stopDrag():}
tellTarget

toggleHighQuality

on(release) {
toggleHighQualityO:}
trace
trace (expression):

trace("");
unloadMovie
unloadMovie(location);

un1oadMovie(_root):
unloadMovieNum
unloadMovieClevel):

on(press) {
unloadMovi e(_level15);}
var
van variableNamel [= valuel] [ variableNameN [-valueN]]:

var s="string". b=true. n=12:


484 5. ActionScript

while
while(condition) { statements; }

whiled < 5) {
duplicateMovieClipC'star". "me" + i. i):
i++:}
with
with(object) { statement(s): }

(Operators)
% ( )

= 5: // 2
= 4.3X2.1; // 0.1
"" ()

() ( )
(expressionl. expression2); functiontfunctionCalll functionCallN);

- (2+3)*(4+5);
getTimeO:
gotoAndPlay("frame"):
,
* ()

expressionl + expression2

*
(Operators) 485

- (, )
-expression
expressionl - expression2

expressionl / expression
expressionl expression2.
++ ()
n-expression expression--

= 1; = ++: // 2
= 1; = ++; // 1

- ()

= 5: = --: // 4
= 5; = --: // 5

= = ()
expressionl == express!on2

( )

!= ( )
486 5. ActionScript

< ()

<= ( )

> ()

>= ( )
expressionl >= expressionZ

! ( )

&& ( )

11 ()

not ( )
not expression

and ( )
(Operators) 487

typeof ( )
typeof(expression):

void ( )

(Bitwise Operators)
& ( )
expressionl & expression2

( )

- 111: // 2048

( )
expressionl expressionZ

= 123458; // 48

> ( )
expressionl > expression2

( )

| ( )
expressionl | expression2
488 5. ActionScript

~ ( )
~ expression

= ~0; // -1
= -1: // -2
-


(Compound Assignment)
%= ( )
expressionl expression
expressionl expressionHexpression2.
// =
5 // 1. 16^5 1

&= ( )
expressionl &= expression2

// &- = &

| = ( )
expressionl |= expression2
expressionl expressionl|expression2.
// |= = |
=- 16;
|= 9 // -7, -16)9 -7

= ( )
expressionl A= expression2
expressionl expressionl*expression2.
// *= - *
= 16;

*= ( )
expressionl *- expression2
expressionl expressionl*expression2.
// *- = *
= 6-
*= 10 // 60
(Operators) 489

+= ( )
expressionl += expressionZ
expression! expressionl+expression2.
// += - +
= 5:
+= 10; // 15
= " ";
+- ""; // " "

-= ( )
expressionl -= expression2
expressionl expressionl-expression2.
// -= = -
= 7;
-= 8: // -1

/= ( )
expressionl /- expression
expressionl expressionl/expression2.
// /= = /
= 10;
/= 2; // 5
/
= ( )

= ( )
expressionl = expression2

>= ( )
490 5. ActionScript

(String Operators)
add

eq
expressionl eq expression2

expressionl gt expression2

expressionl le expression2

expressionl It expression2

expressionl ne expression2

(Functions)
boolean
boolean(expression);
(Functions) 491

escape
escape(expression);

OC*EE*9*20*F2*E5XEA*F1*F2 |
eval
eval(expression);

false

getProperty

getTimer

getVersion
getVersionO;

int
intCvalue):

isFinite
isFinite(expression);

isNaN
IsNaN(expression);

maxscroll
492 5. ActionScript

on (release) { if (myText,scroll<myText.maxscrol 1) myText.scrol 1++;}

newline
newli ne;

number

parseFloat

parselnt
parselnt(expression. radix):

= parselnt("3.5"); // 3
- parselnt("4hf"); // 4
= parselntC'OxF"); // 15
= parselnt("44". 5); // 24

random
random(value):

scroll
variablejiame.scroll - x

on (release) { pole.scroll = pole.scroll+1:}

string
String(expression);
(Functions) 493

unescape
unescape(x):

updateAfterEvent
updateAfterEvent(movie_clip_event):

(String Function)
chr
chr(number);

length
length(expression): length(variable);

mbchr(number):

!
mblength

mbord
mbord(character):
494 5. ActionScript

substring

(Properties)
.alpha
instancename._alpha;

_currentframe

_droptarget
draggableInstanceName._droptarget:

focusrect
_focusrect - Boolean;

_framesloaded

if (_frames1oaded >= _totalframes)


{ gotoAndPlay ("Scene 1". "start"); }
else
{setProperty ("_root.loader". _xscale. (_frames1oaded/_totalframes)*100):}
_height

_highquality
_highquality = value:
(Properties) 495

_name
instancename.jiame:

_quality:

rotation

_soundbuftime
_soundbuftime = integer;

target

_totalframes

_url

_
istancename._x;
496 5. ActionScript

_xscale

_
instancename._y;

_ymouse

_yscale

(Objects)
(Array)
concat

alpha - new A r r a y ( " a " . " b " . " c " ) ;


numeric = new Array(1.2,3):
alphaNumeric = alpha.concatnumeric):
// alphaNumeric [ " a " , " b " , " " . 1 . 2 . 3 ]

myArray.join (): myArray.join(separator);

length
myArray.length;
(Objects) 497

new Array
new Array ();
new Array(length);
new ArrayCelementO, elementl. element2....elementN):

.;
v

myColor = ["blue", "red"]:

reverse

var numbers = [0. 1. 2, 3. 4. 5. 6]:

myColor = ["blue". "red", "grey", "green"]:


shifted = myColor.popO:
// shifted "blue"
slice
myArray.siice(start, end):

myColor = ["blue", "red", "grey", "green"]:


MyColor2=myColor.slice(1.3):
510 5. ActionScript

valueOf

(Object)
new Object
new ObjectO:
new Object(value):

myObject.toStringO:
.

valueOf
myObject.valueOfO:

(Selection)
getBeginlndex
Selecti on.getBegi nIndex()

getCaretlndex
Selection.getCaretlndexC)

getEndlndex
Select1 on.getEndIndex()

getFocus
Selection.getFocusO:

setFocus
Selection.setFocus(variable):

setSelection
Selection.setSelection(start. end)

(Sound)
attachSound
mySound.attachSoundC'idName"):
. mySound.
(Objects) 511

getPan
mySound.getPanO:

getTransform
mySound.getTransform():

getVolume

new Sound

setPan

setTransform

MySoundTransformObject = new Object


MySoundTransformObject.il 100
MySoundTransformObject.lr - 100
mySoundTransformObject.rr - 0
mySoundTransformObject.rl - 0

setVolume
mySound.setVolume(volume);

mySound. startO:
mySound.sta rt([secondOffset. 1oop]):

stop

(String)
charAt
512 5. ActionScript

charCodeAt
myString.charCodeAt(index):

String.concatCvaluel valueN):

fromCharCode

indexOf
myString.indexOftvalue);
myString.indexOf (value, start);

lastlndexOf

string.length

stringl="AfAfAfgfg";
counter=0;

{if (stringl.charCodeAt(i)==65) counter++ :


if (stringl.charAtd)"f") counterl++ ;}
fa=counter; // fa 3
ff=counterl; '// ff 4

new String

slice
String.slice(start. end):
(Objects) 513

split
myString.split(delimiter):

substr
myString.substr(start, length);

myString.substringCfroni. to);

toLowerCase
myString.toLowerCaseO;

XML
appendChild
myXML.appendChi1d(chi1dNode);
. .
attributes

childNodes

myXML.cloneNode(deep);
514 5. ActionScript

createTextNode
myXML.createTextNode(text);

docTypeDecl

firstChild
myXML.firstChild:

haschildNodes

insertBefore
myXML.insertBefore(childNode, beforeNode):
. childNode beforeNode.
lastChild
myXML.lastChild:

load

loaded

new XML

nextSibling
myXML.nextSibling;

nodeName
(Objects) 515

nodeType

nodeValue

onLoad
myXML.onLoad(success):

parentNode

parseXML
myXML.parseXML(source);

myXM. previ ousSi i ng;

removeNode

send
myXML.send(url): myXML.send(url. window):

sendAndLoad

status

toString
516 ActionScript

xmlDecl

XMLSocket
close
my XMLSocket. closeO;

myXMLSocket.connect(host, port);

new XMLSocket

myXMLSocket. onCloseO:

onConnect

onXML
myXMLSocket. onXMLO;

send


,()
expression!. expression2

. ( )
517

?: ( )
expression! ? expressionZ : expressions

// ( )

/* ( )

/*

*ActionScript
*/
[ ] ( )

{ } ( )

=()
expressionl = expression2
518 5. ActionScript

_root
_root; _root.movieClip; _root.action:
6

Flash MX


520 6. Flash MX

:"::/:,:; '"'/.Name:
.'Organization
Serial-Number:

. 6.1. , Flash,

For the developer


: What's ..Mew. Flash MX gives application
developers access to advanced
scripting and debugging tools, bum-
:
-movie prc in code reference, and Flash :
pv6'fvKj\v o! some components to rapidly deploy rich
features in this rek<

For information about all the new


features in Flash MX, select
Flash MX provides new video Help > Using Flash
A': ^capabilities, enhanced color
;: 'management, TimHiine layer
;:': foktefs, artci an optimizeci
I workufjact! with a context-

. 6.2.