« Home « Chủ đề Javascript bible

Chủ đề : Javascript bible


Có 20+ tài liệu thuộc chủ đề "Javascript bible"

Javascript bible_ Chapter 1

tailieu.vn

JavaScript’s Role in the World. F or the many individuals responsible today for content on the World Wide Web, it wasn’t long ago that terms such as HTML ( Hypertext Markup Language) and URL ( Universal Resource Locator) seemed like words from a foreign. Growth in activity on the Web — producing content and surfing it — has been nothing...

Javascript bible_ Chapter 2

tailieu.vn

wonderful capabilities of the level 4 browser offerings from Netscape and Microsoft at your bidding. You have yet to learn the anguish of carefully devising a scripted application for the browser version you use, only to have site visitors sending you voluminous e-mail messages about how the page triggers all kinds of script errors when run on a different browser...

Javascript bible_ Chapter 3

tailieu.vn

Your First. Because of differences in the way various personal computing operating systems behave, I present details of environments for two popular variants: Windows 95 and the MacOS. For the most part, your JavaScript authoring experience will be the same regardless of the operating system platform you use — including UNIX. If you’re running another version of Navigator, don’t fret...

Javascript bible_ Chapter 4

tailieu.vn

Instructions are read from the top of the document downward, and elements defined in the HTML document appear on screen in the same order in which they are entered in the document. Assume for a moment that one of the elements on the page is a text field inside a form. The user is supposed to enter some text in...

Javascript bible_ Chapter 5

tailieu.vn

You also see how script statements can run when the document loads or in response to user action.. The <SCRIPT>. To assist the browser in recognizing lines of code in an HTML document as belonging to a script, you surround lines of script code with a <SCRIPT>...</SCRIPT>. tag set. Depending on the browser, the <SCRIPT>. tag has a variety of...

Javascript bible_ Chapter 6

tailieu.vn

You’ll start here learning about variables, expressions, data types, and operators — things that might sound scary if you haven’t programmed before.. in the programming world, however, the term is not as. In JavaScript, a value can be one of several types. Table 6-1 lists JavaScript’s formal data types, with examples of the values you will see displayed from time...

Javascript bible_ Chapter 7

tailieu.vn

Before you’re finished here, you will learn how to use one of the most powerful information holders in the JavaScript language, the array.. Every waking hour of every day you make decisions of some kind — most of the time you probably don’t even realize it. No sooner do you enter the store than you are faced with a decision:...

Javascript bible_ Chapter 8

tailieu.vn

Starting with this lesson, the tutorial turns back to the document object model, diving more deeply into each of the objects you will place in many of your documents.. This lesson focuses on objects at or near the top of the hierarchy: window, location, history, and document. Examples in that part of the book assume you know the programming fundamentals...

Javascript bible_ Chapter 09

tailieu.vn

That’s where a lot of the cool HTML stuff lives: text fields, buttons, checkboxes, option lists, and so on. Even so, the document object must be part of the reference to the form and its elements.. The Form Object. A form object can be referenced either by its position in the array of forms contained by a document or by...

Javascript bible_ Chapter 10

tailieu.vn

F or most of the lessons in the tutorial so far, the objects at the center of attention were objects belonging to the document object model. The language has some of its own objects that are independent of the document object model.. associated with it to define what the object can do or what can be done to the object.....

Javascript bible_ Chapter 11

tailieu.vn

O ne of the cool aspects of JavaScript on the client is it allows user actions in one frame or window to. In this section of the tutorial, you extend your existing knowledge of object references to the realm of multiple frames and. You probably noticed that at the top of the Navigator document object hierarchy diagram (refer back to...

Javascript bible_ Chapter 12

tailieu.vn

Finally, I introduce you to concepts surrounding scripted control of Dynamic HTML in the level 4 browsers, and the Netscape <LAYER>. The Image Object. One of the objects contained by the document is the image object. Therefore, everything you learn here about the image object won’t apply to Navigator 2 or Internet Explorer 3 for Windows.. Because a document can...

Javascript bible_ Chapter 13

tailieu.vn

These objects have properties that often define the visual appearance of the object. Finally, these objects have event handlers that trigger the scripts you write in response to an action in the document (usually instigated by the user). Although the JavaScript language was first developed by Netscape, Microsoft incorporated its version of the language, called JScript, in Internet Explorer 3....

Javascript bible_ Chapter 14

tailieu.vn

The window.open() method momentarily creates that subwindow. Related Items: window.open() method. window.close() method.. Related Items: window.status property.. "window.name: ". window.name + "<P>". Related Items: window.parent property. window.top property.. var originalHeight = window.outerHeight. Related Items: window.resizeTo() method. window.moveTo() method. Related Items: window.open() method.. window.onerror = null. window.focus() method.. Related Items: window.innerHeight property. window.innerWidth property;. window.scrollBy() method. window.scrollTo() method.. window.name + "<BR>"....

Javascript bible_ Chapter 15

tailieu.vn

N ot all objects in the document object model are. “things” you can see in the content area of the browser window. The URL of the page you see in the browser is called the location, and browsers store this information in the location object. [window.]location = “URL”. [window.]location.property | method([parameters]). A multiple-frame window displays the parent window’s URL in...

Javascript bible_ Chapter 16

tailieu.vn

[window.] document.property | method([parameters]). Notice that only document.bgColor is. newWindow.document.bgColor + "\n". newWindow.document.vlinkColor + "\n". newWindow.document.linkColor + "\n". document.forms[0].results.value = result. newWindow.document.write(thePage) newWindow.document.close(). document.bgColor = "#c0c0c0". document.bgColor = "yellow". Related Items: document.links property.. anchorCount = document.anchors.length. The document.anchors property is read-only (and its array entries come back as null). <TITLE>document.anchors Property</TITLE>. document.write("<I>There are ". document.anchors.length + ". document.links property.. document.cookie...

Javascript bible_ Chapter 17

tailieu.vn

T he Web was based on the notion that the world’s information could be strung together by way of the hyperlink — the clickable hunk of text or image that navigates an inquisitive reader to a further explanation or related material. Of all the document objects you work with in JavaScript, the link is the one that makes that connection.....

Javascript bible_ Chapter 18

tailieu.vn

tag can be refreshed with other images of the same size, perhaps to show the highlighting of an icon button when the cursor rolls atop it. Therefore, if you intend to swap images in response to user action, no delay occurs in making the first swap: The image is already in the image cache ready to go.. Image Object. Creating...

Javascript bible_ Chapter 19

tailieu.vn

From a script in the Head section, the statement that changes the layer’s bgColor property is. Each layer’s document must define its own <FORM>. layer.siblingAbove and layer.siblingBelow values are null. layer.above and layer.below . <B>This is just a yellow layer.</B>. <B>This is just a green layer.</B>. Related Items: layer.parentLayer property. layer.moveAbove() method;. layer.moveBelow() method.. tag, but you can assign a...