[NAME]
Rococo.imp.createFading - create fading element
[TYPE]
function
[SYMPOSIS]
Rococo.imp.createFading( tagName [,cn_prefix [,id [,attributes]]] );
[ARGUMENTS]
tagName : tag name for DOM element
cn_prefix : prefix of className ('rococo' as default)
id : id of DOM element
attributes : attributes for child ROCOCO element
[RETURNED VALUES]
ROCOCO element (DOM appended methods and properties for ROCOCO element)
[NOTICE]
if tagName is 'form', action is set as 'javascript:void(0)'
createElement set element its id, but recreateElement does not.
[SEE ALSO]
Rococo.em.createElement
Rococo.imp.recreateFading
[NAME]
Rococo.imp.recreateFading - create fading element from DOM element
[TYPE]
function
[SYMPOSIS]
Rococo.imp.recreateFading( element [,cn_prefix [,attributes]] );
[ARGUMENTS]
element : DOM element object
cn_prefix : prefix of className ('rococo' as default) which affect the element recreated by appendChild
attributes : attributes for child ROCOCO element
[RETURNED VALUES]
ROCOCO element (DOM appended methods and properties for ROCOCO element)
[DESCRIPTION]
recreateFading calls Rococo.em.recreateElement which injects the hash named 'rococo' into the DOM and some methods,
and injects following methods originally:
startFading(opacity_start,opaicty_end,ms)
stopFading()
[NOTICE]
if tagName is 'form', action is set as 'javascript:void(0)'
Rococo.imp.local.fading.setOpacity has been expired (9th Sep, 2008)
[SEE ALSO]
Rococo.em.recreateElement
Rococo.imp.local.fading.startFading
Rococo.imp.local.fading.stopFading
[NAME]
Rococo.imp.local.fading.startFading - start fading-out or fading-in
[TYPE]
function
[SYMPOSIS]
Rococo.imp.local.fading.startFading( element, opacity_start, opacity_end, ms [,display] );
or
element.startFading( opacity_start, opacity_end, ms [,display]);
[ARGUMENTS]
element : fading element
opacity_start : opacity rate [0,1] when start fading
opacity_end : opacity rate [0,1] when finish fading
ms : milli seconds between time to start fading and time to finish fading
display: initial value of element.style.display
[NAME]
Rococo.imp.local.fading.stopFading - stop fading before finish
[TYPE]
function
[SYMPOSIS]
Rococo.imp.local.fading.stopFading(element);
or
element.stopFading();
[ARGUMENTS]
element : fading element
[NAME]
Rococo.imp.local.fading.setOpacity - set current opacity
[TYPE]
expired function
[NOTICE]
Expired at 9th Sep, 2008
[NAME]
Rococo.imp.local.fading.fademanager
[TYPE]
function
[SYMPOSIS]
Rococo.imp.local.fading.fademanager();
[DESCRIPTION]
This method sets opacity of each fading element, and call myself 10ms(Rococo.imp.local.fading.skip_ms) later
untill all fading element stop.
[NOTICE]
This method is usually used by the internal method.
[NAME]
Rococo.imp.createRCorner - create rounded corener element
[TYPE]
function
[SYMPOSIS]
Rococo.imp.createRCorner( tagName, rh, swithces, [shifts, [,cn_prefix [,id [,attributes]]]] );
[ARGUMENTS]
tagName : tag name for DOM element
rh : height of round corner (unit must be 'px'), and must be number
switches : array of round switch ( top-left, top-right, bottom-left, bottom-right), and each element must be boolean
shifts: corner array of outer-shift value ( shift x, shift y ), and each element must be positive number
cn_prefix : prefix of className ('rococo' as default)
id : id of DOM element
attributes : attributes for child ROCOCO element
[RETURNED VALUES]
ROCOCO element (DOM appended methods and properties for ROCOCO element)
[NOTICE]
if tagName is 'form', action is set as 'javascript:void(0)'
createElement set element its id, but recreateElement does not.
[SEE ALSO]
Rococo.em.createElement
Rococo.imp.recreateRCorner
[NAME]
Rococo.imp.recreateRCorner - create rounded corener element from DOM element
[TYPE]
function
[SYMPOSIS]
Rococo.imp.recreateRCorner( element, rh, swithces, [shifts, [,cn_prefix [,attributes]]] );
[ARGUMENTS]
element : DOM element object
rh : height of round corner (unit must be 'px'), and must be number
switches : array of round switch ( top-left, top-right, bottom-left, bottom-right), and each element must be boolean
shifts: corner array of outer-shift value ( shift x, shift y ), and each element must be positive number
cn_prefix : prefix of className ('rococo' as default) which affect the element recreated by appendChild
attributes : attributes for child ROCOCO element
[RETURNED VALUES]
ROCOCO element (DOM appended methods and properties for ROCOCO element)
[DESCRIPTION]
recreateRCorner calls Rococo.em.recreateElement which injects the hash named 'rococo' into the DOM and some methods,
and injects following methods originally:
drawRCorner();
resetRCorner();
[NOTICE]
if tagName is 'form', action is set as 'javascript:void(0)'
[SEE ALSO]
Rococo.em.recreateElement
Rococo.imp.local.rcorner.drawRCorner
Rococo.imp.local.rcorner.resetRCorner
[NAME]
Rococo.imp.local.rcorner.resetRCorner - reset rounded corner
[TYPE]
function
[SYMPOSIS]
Rococo.imp.local.rcorner.resetRCorner(element);
or
element.resetRCorner();
[ARGUMENTS]
element : rcorner element
[NAME]
Rococo.imp.local.rcorner.drawRCorner - draw rounded corners
[TYPE]
function
[SYMPOSIS]
Rococo.imp.local.rcorner.drawRCorner(element);
or
element.drawRCorner();
[ARGUMENTS]
element : rcorner element
[NAME]
Rococo.imp.createFading - create fading element
[TYPE]
function
[SYMPOSIS]
Rococo.imp.createFading( small_url, large_url [,cn_prefix [,id [,attributes]]] );
[ARGUMENTS]
small_url : small size image (=thumbnail image) url
large_url : large size image
cn_prefix : prefix of className ('rococo' as default)
id : id of DOM element
attributes : attributes for child ROCOCO element
[RETURNED VALUES]
ROCOCO element (DOM appended methods and properties for ROCOCO element)
[NOTICE]
createElement set element its id, but recreateElement does not.
[SEE ALSO]
Rococo.em.createElement
Rococo.imp.recreateFading
[NAME]
Rococo.imp.recreateThumbnail - create thumbnail element from DOM element
[TYPE]
function
[SYMPOSIS]
Rococo.imp.recreateThumbnail( element [,subid [,cn_prefix [,attributes]]] );
[ARGUMENTS]
element : DOM element object
subid : dentifier in the parent object(='element' argument)
cn_prefix : prefix of className ('rococo' as default) which affect the element recreated by appendChild
attributes : attributes for child ROCOCO element
[RETURNED VALUES]
ROCOCO element (DOM appended methods and properties for ROCOCO element) normally.
null if argument elemenet is not 'a'(anchor) element and has not 'href' attributes.
[DESCRIPTION]
recreateThumbnail (1) calls Rococo.em.recreateElement which injects the hash named 'rococo' into the DOM and some methods,
(2) appends a 'img' element to the element and sets 'className of 'img' element as "(cn_prefix)-thumbnaillarge".
(2) appends an evena handler to the element, and also (3) sets href as "javascript:void(0)" instead of appended event handler.
The element to be recreate as thumbnail
must be 'a'(anchor) element
and must have 'href' attribute which referes to the image file.
[SEE ALSO]
Rococo.em.recreateElement
Rococo.em.local.addEventHandler