//Pure JS jQuery(function () { //duplicate footer at the top jQuery('td.glist_foot.global_actions').each(function (k, o) { var tr = jQuery(o).closest('tr'); var newtr = tr.clone(); newtr.find('td') .attr('colspan', newtr.find('td').attr('colspan')-1); console.log(newtr); tr.siblings('tr.glist_title_row').after(newtr); }); }); //Mixed JS allchecked=-1; function checkAll(){ allchecked=-allchecked; //Si navigateur conforme DOM (IE6+, NS, Safari) for(i=0;i<0;i++){ switchCheckbox(i); } } function sendData(url){ if(document.forms){ document.forms['glistForm_'].action=url; document.forms['glistForm_'].submit(); } else { document.all.glistForm_.action=url; document.all.glistForm_.submit(); } } function doSearch(){ if(document.forms){ document.forms['glistForm_'].method='GET'; document.forms['glistForm_'].ACTION.value='SEARCH'; } else{ eval("document.all.glistForm_"+id+".method='GET'"); document.all.ACTION.value='SEARCH'; } sendData('http://livetelecom.oneselfapp.fr/glist.js.php?'); } function switchCheckbox(id){ // alert('idcheckbox_glist_'+id); if(document.getElementById) { obj=document.getElementById('idcheckbox_glist_'+id); obj.checked=1-obj.checked; //Sinon (IE5-, Opera) } else { obj=eval('document.all.idcheckbox_glist_'+id); obj.checked=1-obj.checked; } } jQuery(function(){ var links = jQuery('td.glist_cell > a').each(function(k, o){ var a = jQuery(o); a.closest('td') .css('cursor','pointer') .hover( function() { var mytr = jQuery(this); mytr.data('orig_bg', mytr.css('background-color')) .css('background-color', '#b4cfff') }, function() { var mytr = jQuery(this); mytr.css('background-color', mytr.data('orig_bg')); }) .click(function(){ window.location.href = a.attr('href'); }); }); });