Magellan Linux

Diff of /alx-src/branches/alx-web-070/show.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2605 by niro, Wed Jul 6 14:13:15 2011 UTC revision 2606 by niro, Wed Jul 6 14:15:18 2011 UTC
# Line 305  function parsearrs($name, $arr) Line 305  function parsearrs($name, $arr)
305   $.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }});   $.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }});
306   }   }
307    
308    /* ignore this atm, not always working, sometime open does not work
309   function openclose(nummer, act)   function openclose(nummer, act)
310   {   {
311   var bild = document.images['sch_bild_'+nummer];   var bild = document.images['sch_bild_'+nummer];
# Line 316  function parsearrs($name, $arr) Line 317  function parsearrs($name, $arr)
317   });   });
318   if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); };   if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); };
319   }   }
320    */
321     function openclose(nummer, act)
322     {
323     var bild = document.images['sch_bild_'+nummer];
324     var absatz = document.all['sch_absatz_'+nummer].style;
325     var senden = false;
326    
327     if(bild.title == 'OPEN')
328     {
329     if(act<=1)
330     {
331     absatz.visibility = 'visible';
332     absatz.position = '';
333     bild.title = 'CLOSE';
334     bild.src = 'pics/minus.gif';
335     senden = true;
336     act = 0;
337     }
338     }
339     else
340     {
341     if(act>=1)
342     {
343     absatz.visibility = 'hidden';
344     absatz.position = 'absolute';
345     bild.title = 'OPEN';
346     bild.src = 'pics/plus.gif';
347     senden = true;
348     act = 2;
349     }
350     }
351    
352     if(senden) sendopenclose(nummer,act);
353     }
354    
355   function showhelp(name)   function showhelp(name)
356   { window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); }   { window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); }

Legend:
Removed from v.2605  
changed lines
  Added in v.2606