javascript - mouseover on a block -
my requirement this!
when mouseover on '?' block appear hyperlink of link & video.now mouseover function should work until come in block.when move crusor block/from ?, mouseout event should occur. i'm newbie javascript don't have much thought on this.any examples on pls
edited: added actual code:
<apex:outputlink styleclass="helplink" onmouseover="$('{!$component.foo}').style.display ='block';"> <apex:image value="/s.gif" styleclass="helpicon" /></apex:outputlink> <apex:outputpanel id="foo" styleclass="video" > <a href="" target="_blank" onmouseout="$('{!$component.foo}').style.display = 'none';" >link</a> </apex:outputpanel>
your assume right actually. guess want direct code on event processes. plenty bind events block element, such as:
$('#mytarget').bind('mouseover', function() { $(this).html('over'); }); $('#mytarget').bind('mouseout', function() { $(this).html('out'); });
here link jsfiddle demo: http://jsfiddle.net/hdvab/
javascript jquery
No comments:
Post a Comment