Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   Календарь не листается (https://javascript.ru/forum/jquery/26242-kalendar-ne-listaetsya.html)

jekjuk 02.03.2012 01:53

Календарь не листается
 
на просторах сети взял скрипт в котором можно выводить события и пролистывать месяцы; вот отрывок (php)
echo '<span style="cursor:hand;"><a onclick="cal_load('.($mon_delta-1).');">←</a>';
  echo ' '.$months[1][(int)$mon].' ';
  echo '<a onclick="cal_load('.($mon_delta+1).');">→</a></span>';

<script type="text/javascript">'."
// <!--
function cal_load(md)
{
  jQuery('#sidebar_calendar h2').html('<div style=\"text-align:center;\"><img src=\"/images/ajax-loader.gif\"/></div>');
  jQuery('#sidebar_calendar').load('/index.php?id=".$calendar_page."&mon_delta='+md);
}

jQuery(document).ready(function()
{
   jQuery('table.cal td.event').each(function()
   {
      jQuery(this).qtip(
      {
         content: jQuery(this).find('.tip'),
         style: {
            name: 'light', // Give it the preset dark style
            border: { width: 0, radius: 3, color: '#cccccc' },
            tip: true // Apply a tip at the default tooltip corner
         },
         position: {
           corner: {
             target: 'leftMiddle',
             tooltip: 'rightTop'
           }
         },
         hide: { when: 'mouseout', fixed: true, delay: 400 }
      });
   });
});
// -->
</script>

* но при нажатии стрелок эффект отсутствует;
скрипт целиком http://dl.dropbox.com/u/3460527/calendar.php


Часовой пояс GMT +3, время: 19:02.