Index of / basket

Этот скрипт я сделал по просьбе Темы. Идея старая, впервые я видел такое на shop.dir.bg (который давно не работает). Идея подходит для корзины в on-line магазине - чтобы она двигалась "между полками" с товарами по отведенному ей поле, чтобы ее можно было легко заполнять и чистить. Но для последнего скрипт нужно значительно расширить и улучшить :-).

В этом случае есть картинка размером 32х32, которая двигается вслед за мышью... в ближайшее время сделаю, чтобы она двигалась "правильно" при скроллинге.

Далее - обычная "рыба" из JavaScript Reference...


Chapter 3
Event Handlers
This chapter contains the event handlers that are used with client-side objects in JavaScript
to evoke particular actions.
For general information on event handlers, see the Client-Side JavaScript Guide.
onAbort Executes JavaScript code when an abort event occurs; that is, when the user aborts the
loading of an image (for example by clicking a link or clicking the Stop button). Event handler for Image
Implemented in
JavaScript 1.1
Syntax onAbort="handlerText"
Parameters handlerText
JavaScript code or a call to a JavaScript function.
Event properties used type
Indicates the type of event. target
Indicates the object to which the event was originally sent. Examples In the following example, an onAbort handler in an Image object displays a message when
the user aborts the image load:
See also event, onError, onLoad
onBlur Executes JavaScript code when a blur event occurs; that is, when a form element loses focus
or when a window or frame loses focus. Event handler for Button, Checkbox, FileUpload, Layer, Password, Radio, Reset,
Select, Submit, Text, Textarea, window
Implemented in
JavaScript 1.0
JavaScript 1.1: event handler of Button, Checkbox, FileUpload,
Frame, Password, Radio, Reset, Submit, and window
Syntax onBlur="handlerText"
Parameters handlerText
JavaScript code or a call to a JavaScript function.
Description The blur event can result from a call to the window.blur method or from the user clicking
the mouse on another object or window or tabbing with the keyboard.
For windows, frames, and framesets, onBlur specifies JavaScript code to execute when a
window loses focus.
A frame's onBlur event handler overrides an onBlur event handler in the BODY tag of the
document loaded into frame.
NOTE: In JavaScript 1.1, on some platforms placing an onBlur event handler
in a FRAMESET tag has no effect. Event properties used type
Indicates the type of event. target
Indicates the object to which the event was originally sent. Examples Example 1: Validate form input. In the following example, userName is a required text field.
When a user attempts to leave the field, the onBlur event handler calls the required
function to confirm that userName has a legal value.
Example 2: Change the background color of a window. In the following example, a
window's onBlur and onFocus event handlers change the window's background color
depending on whether the window has focus.
Last Updated: 11/16/98 12:57:41 Copyright (c) 1998 Netscape Communications Corporation