Advertisement
Guest User

Holynavigator

a guest
Jul 12th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. javascript:function myupdateRPanelCounter(){NEW_COMMENTS_JQ = $('.green_comment, .blue_comment, .green_argument, .blue_argument');new_comm_count = NEW_COMMENTS_JQ.length;comm_number_field = $('#right_panel img[src$=next.gif]').closest('tbody').children(':first').children();comm_number_field.text(new_comm_count);curr_comm = 0;}$(document).ready(function() {$('#right_panel').show();$('#right_panel img[src$=open.gif]').parent().click(function() {$('table.comm_close').show();$('table.comm_open').hide();return false;});$('#right_panel img[src$=close.gif]').parent().click(function() {$('table.comm_close').hide();$('table.comm_open').show();return false;});myupdateRPanelCounter();var next_link = $('#right_panel img[src$=next.gif]').parent();next_link.click(function() {var new_comm = NEW_COMMENTS_JQ;if(new_comm_count>0){new_comm_count-=1;comm_number_field.text(new_comm_count);if($(new_comm[curr_comm]).is('.blue_comment') || $(new_comm[curr_comm]).is('.green_comment')){var hidden = $(new_comm[curr_comm]).closest('table:hidden');if(hidden){hidden.show().prev().hide();}$(new_comm[curr_comm]).children('.text').effect('pulsate', { times:1 }, 400);}else{$(new_comm[curr_comm]).children().children().children().children('div.text').effect('pulsate', { times:1 }, 400);}$.scrollTo($(new_comm[curr_comm]),200, {offset:{left:0, top:-100}});curr_comm+=1;}return false;});});void(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement