javascript - hovering the text for full form -
when mouse hover text below cube..... need display small window text in it.... got text js not sure how integrate hover function.... can tell me how implement it.... providing code below..... when hover on crm should show customer relationship management..... providing code below... hover functionality working fine when hover on text box.... don't know how text below cube...... have included onmouseover , onmouseout functions..... dont know how achieve text below cube
$('document').ready(function() { window.settimeout(function() { $('.cubecell').each(function () { var htmltext = $(this).attr('data-text'); $(this).append('<div class="cubetextstyle">' + htmltext + '</div>'); }); }, 600); }); <script type="text/javascript"> function showstock(ii) { var sh = $(ii).parent().find($('.divstock')); var sharrow = $(ii).parent().find($('.stockarrow')); sh.show(); sharrow.show(); } /** * hide stock */ function hidestock(ii) { var shs = $(ii).parent().find($('.divstock')); var sharrows = $(ii).parent().find($('.stockarrow')); shs.hide(); sharrows.hide(); } </script>
html:
<div class="cubecell" data-text="crm" class="desktopcontactimage cubecell" data-caption="<a style='padding-left: 40px; font-size: 14px; color: grey;' href='/inventory/partnumber/?ps=list' >register</a> <div> <a style='padding-left: 40px; font-size: 14px; color: grey;' href='/bom/bom/?ps=list' >demo</a> </div> <a style='padding-left: 40px; font-size: 14px; color: grey;' >reports</a>" data-image="http://intra.defie.co/images/desktop_icons_02.07.13/guest.png"></div>
first please don't provide fiddles that..ever, separate different languages relevant boxes , use resources tabs link files. maks things lot clearer help.
second don't include code that's not relevant, example the google analytic script, yes take more time format fiddle use example you'll quicker response.
if need hover on csm , have "customer relationship management" appear underneath can below.
$('.cubetextstyle').hover( function(){ $(this).append('<span>customer relationship management</span>'); }, function(){ $('.cubetextstyle span').remove(); } );
i haven't used fiddle because won't sift through of code, please see new basic fiddle.
Comments
Post a Comment