An attenuation pattern has appeared on the Internet. http://docs.dojocampus.org/dojo/fadeOut?t=tundra
but I want to do something else. I want people to click on the text immediately, then the text will disappear.
in my code there is a div wrap text
<div id='parentNode'> <div id='textDiv' onClick='whenClickAnyWhereWithinThisDiv_performFadeOut()'> <div id='iconDiv'/> <div id='messageDiv'/> </div> <div>
The code, as shown below, I want when people click anywhere in the text field, then all the text Div will disappear ... mm ... why does my code not work?
function whenClickAnyWhereWithinThisDiv_performFadeOut () { ... ... dojo.connect(dijit.byId('textDiv'), "onClick", fadeOutAndRemove(parentNode, textDiv)); } function fadeOutAndRemove (parent, currentDiv) {
javascript dojo
jojo
source share