jquery - What code snippet should i add in my click functiionality code in that when i hover over the message, it sticks there? -
how can make "tick
" stick there whenever message viewed in chat inbox show message has been viewed?
by when message hovered confirmation tick appears on each message disappears type in textarea new message?
/** * clickfunctionality.js */ $(document).ready(function() { $.fn.notify = function(options) { var defaults = { type: 'neutral', message: 'this notification' }; var options = jquery.extend(defaults, options); var notification = '<div class="notify ' + options.type + '">' + options.message + '</div>'; if ($('.notify').size() > 0) { $('.notify').remove(); } $('.channel_post_date').after(notification); } $("body").trigger(); $(this).notify({type:'position', message: '<i><img src="js3/t5.png style="padding-left:7px;padding-bottom:1px;"></i>'}); });
<div class="channel_content" id="channel_content"> <div class="channel_header"> <div class="channel_header_headline"> <?php echo message_name($message); ?> </div> <div class="channel_header_search"> <input class="channel_header_search_input" id="channel_header_search_input" onkeydown="search()" type="text" value="search" onfocus="if(this.value == 'search'){this.value = '';}" onblur="if(this.value == ''){this.value = 'search';}" /> </div> <div class="channel_header_files" onclick="change_files(); files_only();"> </div> <div class="channel_header_tasks" onclick="change_tasks(); tasks_only();"> </div> <div class="channel_header_events" onclick="change_events(); events_only();"> </div> </div> </div>
Comments
Post a Comment