-

 -

   _

 - e-mail

 

 -

 LiveInternet.ru:
: 16.11.2009
:
:
: 22

:

PHP , CSS, JAVASCRIPT.


: (0), (0)
(1)

12

, 14 2009 . 12:13 +
height/ width/

, . , .
width
height
[width]

width .

:

div.box {
width: 200px;
border: 1px solid black;
background: orange;
}

[height]

, , , . height. 500px:

div.box {
height: 500px;
width: 200px;
border: 1px solid black;
background: orange;
}
PHP , CSS, JAVASCRIPT

:  
(0)

11

, 14 2009 . 12:12 +


, , . CSS .
border-width
border-color
border-style

border
[border-width]

border-width, thin, medium thick, . :


[border-color]



border-color . - , : "#123456", "rgb(123,123,123)" "yellow" .
[border-style]

. Internet Explorer 5.5. "gold" "thick", , , .

none hidden , .




, , . ,

,

,

    . , , , :

    h1 {
    border-width: thick;
    border-style: dotted;
    border-color: gold;
    }

    h2 {
    border-width: 20px;
    border-style: outset;
    border-color: red;
    }

    p {
    border-width: 1px;
    border-style: dashed;
    border-color: blue;
    }

    ul {
    border-width: thin;
    border-style: solid;
    border-color: orange;
    }


    , , . :

    h1 {
    border-top-width: thick;
    border-top-style: solid;
    border-top-color: red;

    border-bottom-width: thick;
    border-bottom-style: solid;
    border-bottom-color: blue;

    border-right-width: thick;
    border-right-style: solid;
    border-right-color: green;

    border-left-width: thick;
    border-left-style: solid;
    border-left-color: orange;
    }

    [border]

    , , border. :

    p {
    border-width: 1px;
    border-style: solid;
    border-color: blue;
    }


    :

    p {
    border: 1px solid blue;
    }

PHP , CSS, JAVASCRIPT

:  
(0)

, 14 2009 . 12:08 +


. , margin padding.




: right, left, top bottom. margin ( ). . 9.

, ó , . . . , .



CSS- :

body {
margin-top: 100px;
margin-right: 40px;
margin-bottom: 10px;
margin-left: 70px;
}


:

body {
margin: 100px 40px 10px 70px;
}


. ,

:

body {
margin: 100px 40px 10px 70px;
}

p {
margin: 5px 50px 5px 50px;
}




, .

/padding , :

h1 {
background: yellow;
}

h2 {
background: orange;
}



, :

h1 {
background: yellow;
padding: 20px 20px 20px 80px;
}

h2 {
background: orange;
padding-left:120px;
}

PHP , CSS, JAVASCRIPT

:  
(0)

9

, 14 2009 . 12:06 +


CSS , HTML-. , , . , :
CSS




, . HTML ( ):

Article 1:



All human beings are born free
equal in dignity rights.
They are endowed with reason conscience
should act towards one another in a
spirit of brotherhood




:



- :

. :



, , , HTML- . , CSS.

PHP , CSS, JAVASCRIPT

:  
(0)

CSS( 8)

, 14 2009 . 12:03 +
(span div)

, class id.

,
, HTML CSS.




, . , CSS, .

- :

,
,




, , Mr. Franklin . . span class, :

,
,

.




CSS:

span.benefit {
color:red;
}


, id -. , id -, .


, ,
-.

,
. - , :



  • .


  • .

  • .








  • .





  • .





, :

#democrats {
background:blue;
}

#republicans {
background:red;
}
PHP , CSS, JAVASCRIPT

:  
(0)

CSS( 7)

, 14 2009 . 11:59 +
(class id)

. , class id .

web-? ? , .
class

, - . HTML- :

:




:





, , , - , .

class.

:

:




:





whitewine redwine, .

a {
color: blue;
}

a.whitewine {
color: #FFBB00;
}

a.redwine {
color: #800000;
}



, , , ._ .
id

. id.

id , id. id . class. id:

1


...

1.1


...

1.2


...

2


...

2.1


...

2.1.2


...


, . id :

1


...

1.1


...

1.2


...

2


...

2.1


...

2.1.2


...


, , chapter 1.2, . CSS:

#c1-2 {
color: red;
}



, #id .
PHP , CSS, JAVASCRIPT

(0)

6

, 14 2009 . 11:51 +
PHP , CSS, JAVASCRIPT

:  
(1)

JAVASCRIPT

, 19 2009 . 06:14 +
, JavaScript. , . .













JS



abs ()

Math.abs(argument)
: 10 12.5
document.writeln (Math.abs (-10));
John. age. value = 12.5; document.writeln (Math. abs(John.age.value));



--------------------------------------------------------------------------------
acos ()
( 0 -).
Math.acos(argument)
: -1 1. , 0.

--------------------------------------------------------------------------------
action ()
ACTION HTML
.
document.formName.action;
document.forms[index].action
: action , URL , . , . action , outlineForm, URL outlineURL.
outlineURL = "http://www.somewhere.com/cgi-bin/outline .cgi";
outlineForm.action=outlineURL;

--------------------------------------------------------------------------------
alert ()
JavaScript Alert .
[window].alert(AlertMessage)
: , JavaScript Alert.

--------------------------------------------------------------------------------
alinkColor ()
, . document.alinkColor
: JavaScript, alinkColor RGB . HTML. -.
document.alinkColor""aliceblue";
document.alinkColor"="FOF8FF"

--------------------------------------------------------------------------------
anchors array ()
.
[windowMame].document.anchors(index)
: anchors array ( ) HTML < NAME>.

HREF links. JavaScript anchor. anchors length.
document.anchors.length
document.anchor[index] null. , document.anchor[0] null, , , < N="Elef"> .

--------------------------------------------------------------------------------
anchor ()
.
textString.anchor(anchorName);
: write writeln, anchor , textString - , , a anchorName NAME HTML .
anchorString = "Louie's Place";
document.writeln (anchorString.anchor ("louies_place"));

--------------------------------------------------------------------------------
anchors ()
. anchor.
document.anchors[index]
: anchor 5 , document.anchors[0] document.anchors[4].

--------------------------------------------------------------------------------
appCodeName ()
( ) .
navigator.appCodeName
: :
document.write (" : " + navigator. appCodeName + ".");
Netscape Navigator 2.0 : : Mozilla.

--------------------------------------------------------------------------------
appName ()
( ) .
navigator.appName
: : document.write(" : " + navigator. appName + "."); Netscape Navigator 2.0 : : Netscape.

--------------------------------------------------------------------------------
appVersion ()
.
navigator.appVersion
: appVersion . : _ (; ). Netscape 2.0 Windows 95:
document.write (" : " + navigator. appVersion + "."); : : 2.0 (Win95; 1).
, Navigator 2.0, Windows 95. U , 1 .

--------------------------------------------------------------------------------
asin ()
.
Math.asin(argument)
: asin -1 1 ( -/2 /2 ). , 0.

--------------------------------------------------------------------------------
atan ()
.
Math.atan(argument)
:
atan -/2 /2 . -1 1, .




--------------------------------------------------------------------------------
back ()
URL .
history.back();
: history.g(-1).
bgColor ()
. document.bgColor
: bgColor . RGB . . .
function newColor(colorString)
{
document.bgColor = colorString;
}


Alice Blue
Ochre
Papaya Whip


big ()
.
stringName.big();
: HTML . : " " :
var welcomeMessage = " ";
document.write (welcomeMessage.big());
6

--------------------------------------------------------------------------------
blink ()
.
stringname.blink();
: HTML . : " ":
var attentionMessage=" ";
document.write (attentionMessage.blink());
<LIN>

--------------------------------------------------------------------------------
blur ()
.
document.formName.elementName.blur();
document.forms[index].elements[index].blur();
: , feedback:
feedback.blur();
, feedback :


--------------------------------------------------------------------------------
bold ()
.
stringName.bold();
: HTML <>.

--------------------------------------------------------------------------------
button ()
.
formName.buttonName;
forms(index].elements[index];
:
- .

. onClick , submit reset. validateForm.


--------------------------------------------------------------------------------

ceil ()
, .
Math.ceil(argument);
: , . :
Math.ceil(1.01) 2.



--------------------------------------------------------------------------------
charAt ()
.
stringName.charAt(index);
: , . 0, - 1.
var userName ="Bobba Louie";
document.write(userName.charAt(4));
"a".

--------------------------------------------------------------------------------
checkbox ()
, on .
formName.checkboxName;
forms[index].elements[index]
: checkbox .
textToDisplay
. checked checkbox : (true) (false). CHECKED , defaultChecked true.

--------------------------------------------------------------------------------
checked ()
, .
formName.checkboxName.checked
formName.radioButtonName[index].checked
forms[index].elements[index].checked
: checked (true false), , . . for...in, :
function whichOneChecked()
{
var checkedValue = "";
for (var i in document.formName.radioName)
{
if (document.formName.radioName[i].checked==true)
checkedValue=document.formName.radioName[i].value;
}

--------------------------------------------------------------------------------
clear ()
.
document.clear();
: clear , , .

--------------------------------------------------------------------------------
clearTimeout ()
.
[windowName.]clearTimeout(argument);
parent.[frameName.]clearTimeout(argument);
: clearTimeout , setTimeout. , , :
clearTimeout(waitTime);

--------------------------------------------------------------------------------
click ()
.
formName.elementName.click();
forms[index].elements[index].click();

--------------------------------------------------------------------------------
close ()
document . window .
document.close();
window.close();
[windowName.]close();
: close , "Document: Done" . window window. , :
window.close();
close();
self.close();
.

--------------------------------------------------------------------------------
confirm ()
JavaScript Confirm .
window.confirm();
[windowMame.]confirm();
: JavaScript Alert, Cancel, JavaScript Confirm . confirm true, , false Cancel. , :
if (confirm('Are you sure you want to enter'))
{ tourWindow = window.open ("http://www.haunted.com", "hauntedhouse") }

--------------------------------------------------------------------------------
cookie ()
, cookies.txt .
document.cookie
: , cookie, charAt, IndexOf lastIndexOf. cookie . . cookie URL, . HTTP , URL, . . cookie . . cookie. cookie HTML- :
document.cookie = "string";

cos ()
.
Math.cos(argument);
: , -1 1.

--------------------------------------------------------------------------------

Date ()
.
Date.method(parameters)
: Date JavaScript . - , Date . , , 1 1970 . 1970 . Date :
objectName = new Date()
objectName = new Date("month day, year" [hours:minutes:seconds]")
objectName = new Date(year, month, day [, hours, "" minutes, seconds])
Date , , 00:00:00. , - . , . 0 () 11().



--------------------------------------------------------------------------------
defaultChecked ()
(true false), .
formName.elementName.defaultChecked
forms[index].elements[index].defaultChecked
: defaultChecked CHECKED , . :
for (var i in menuForm.choices) {
if (menuForm.choices[i].defaultChecked) {
menuForm.choices[i].defaultChecked = true }
}
defaultChecked , .

--------------------------------------------------------------------------------
defaultSelected ()
select .
formName.elementName.defaultSelected
forms[index].elements[index].defaultSelected
: defaultSelected true false, , SELECTED. SELECTED


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

: select text textarea.

--------------------------------------------------------------------------------
onSubmit ( )
Submit .

: onSubmit . false , return, . return .

..- ...

function feedbackSubmit () {
... ...
if (!validData) { return true; }
else { return false; }
}

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


: unload , - . , unload , . , unload , unload . , , unload .

--------------------------------------------------------------------------------
open ()
.
document.open([MIMEtype])
window.open("URL", "windowName" [,"windowFeatures"]);
: open write writeln. MIME text image (, text/html image/gif), . plug-in. , open . document.close(). open , File->New Web Browser . URL ; . window; document. windowFeatures , =1 =yes - =0 =no - . windowFeatures , URL, , , , , , , .

--------------------------------------------------------------------------------
options ()
select.
PHP , CSS, JAVASCRIPT

:  
(0)

CSS( 3)

, 19 2009 . 06:02 +
/style sheet. CSS , CSS HTML-.

, Cascading Style Sheets (CSS), HTML. , HTML , , á . .
CSS

, web-:

HTML :




CSS :


body {background-color: #FF0000;}

, HTML CSS. CSS:

CSS

CSS-? .
CSS HTML-

CSS HTML-. . - /external .
1: /In-line ( style)

CSS HTML HTML- style. :






This is a red page





2: ( style)

CSS- - HTML-
PHP , CSS, JAVASCRIPT

:  
(0)

CSS( 2)

, 19 2009 . 05:57 +
, CSS, , ? , CSS .

CSS Cascading Style Sheets/ .
CSS?

CSS , HTML-. , CSS , , , , , , , . , !

HTML () web-. CSS ó . CSS, , ( ).

CSS web- .
CSS HTML?

HTML . CSS .

, - . , , . .

-, , Tim Berners Lee World Wide Web, HTML . : " - " " - ", HTML-,

.

Web . , ( - Netscape Microsoft) HTML-, , , , HTML- , , .

, ,

, . , , . " X " - web-.

CSS web- , . , .
CSS?

CSS web-. CSS:

* ;
* ;
* (, , . .);
* .

PHP , CSS, JAVASCRIPT

(0)

CSS( 1)

, 19 2009 . 05:54 +
/CSS , HTML- Cascading Style Sheets (CSS) web-. web-. CSS , web-.


CSS .

CSS HTML. HTML, HTML, CSS.
?

, FrontPage, DreamWeaver Word. CSS. , .

.

, Microsoft Windows Notepad. Accessories , Programs. , Pico Linux Simple Text Macintosh.

HTML CSS, . , , .


- , .

!
PHP , CSS, JAVASCRIPT

(0)

CSS( )

, 19 2009 . 05:42 +
)
CSS ( )!
PHP , CSS, JAVASCRIPT

:  

 : [1]