|
|
|
_appendEvents(
) :
void
|
|
|
|
_arrangeResizedDocument(
) :
void
adjust the whole thing on window resizing
We have to resize and realign the slide
if the size of the browser window changes.
Examples
|
|
|
|
_checkNode(
currentTarget
: Object
relatedTarget
: Object
) :
void
check if we are in the right element
Naturally there is one browser that behaves unintentional.
This time nearly all browsers fail. Without this routine
Firefox would refer the mousemove event to every single image
(the motion would only start if the cursor points an image).
Netscape would inherit the mousemove event to the whole
document body and the Internet Explorer would produce sensless
error messages because it does not know the attribute.
Parameter |
Type |
Usage |
Description |
currentTarget |
Object |
optional |
|
relatedTarget |
Object |
optional |
|
Examples
|
|
|
|
_doMotion(
mouseEvent
: Object
) :
void
the heart of our sliding effect
It does all the stuff like calculating the speed of
the image slide, observing the cursor for new motions and
initiating the move[...]() functions.
Parameter |
Type |
Usage |
Description |
mouseEvent |
Object |
optional |
|
Examples
|
|
|
|
_moveLeft(
) :
void
move the image line inside the container to the left
First we check if it is necessary to move the
image line and if "yes" we move it as long the cursor indicates
that it should move. To not confuse other functions we state
that we are currently really moving it to the left. MOVE!
Examples
|
|
|
|
_moveRight(
) :
void
move the image line inside the container to the rights
First we check if it is necessary to move the
image line and if "yes" we move it as long the cursor indicates
that it should move. To not confuse other functions we state
that we are currently really moving it to the right. MOVE!
Examples
|
|
|
|
_stopMotion(
mouseEvent
: Object
) :
void
stops all slide motions
If called with a mouse position where the slide
should be stopped - we have to immediately clear all
active timeouts that would call the move[...] functions.
Furthermore we state that there is no motion active anymore.
Parameter |
Type |
Usage |
Description |
mouseEvent |
Object |
optional |
|
Examples
|
|
|
|
_updateAfterEvent(
) :
void
update the image slide line
We must force the css engine of some browsers
to refresh the style on the whole image slide.
Otherwise the styles will not be updated and e. g.
Examples
|
|
|
|
postCreate(
) :
void
|