Update of /cvsroot/freevo/freevo/src/www/htdocs/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1086/scripts

Modified Files:
        display_prog-head.js 
Log Message:
An impressive update to the guide code from Jason Tackaberry that
dramatically speeds up rendering and navigation of the guide.  I will be
applying this patch to future 1.5.x Debian packages, but I'm not applying
it to 1.5 branch of CVS unless people really want it.


Index: display_prog-head.js
===================================================================
RCS file: /cvsroot/freevo/freevo/src/www/htdocs/scripts/display_prog-head.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** display_prog-head.js        16 Feb 2004 04:23:54 -0000      1.3
--- display_prog-head.js        10 Aug 2004 12:54:22 -0000      1.4
***************
*** 6,32 ****
  N = (document.all) ? 0 : 1;
  
! function focusPop(pop) {
!   popid = pop;
!   over = true;
! }
  
! function unfocusPop(pop) {
!   popid = '';
!   over = false;
! }
  
! function showPop(pop, cell) {
!   pop = document.getElementById(pop);
!   pop.style.top = (popY-100) + "px";
!   pop.style.visibility = 'visible';
  }
  
! function closePop(pop) {
!   pop = document.getElementById(pop);
!   pop.style.visibility = 'hidden';
  }
  
  function mouseDown(e) {
-   popY = (N) ? e.pageY : event.y+document.body.scrollTop;
    if(over) {
      if(N) {
--- 6,49 ----
  N = (document.all) ? 0 : 1;
  
! function
! guide_click(item, event)
! {
!       var iframe = document.getElementById("hidden");
!       iframe.src="proginfo.rpy?id=" + item.id;
!       document.getElementById("program-waiting").style.display = "";
!       document.getElementById("program-info").style.visibility = "hidden";
!       var popup = document.getElementById("popup");
!       popup.style.display = "";
  
!       w = N ? window.innerWidth : document.body.clientWidth;
!       h = N ? window.innerHeight : document.body.clientHeight;
  
!       //alert(event.clientX + "  "  + popup.clientWidth + "  " + w + "  " + h);
!       if (event.clientX + popup.clientWidth > w)
!               x = (w - popup.clientWidth) - 30;
!       else
!               x = event.clientX;
!       popup.style.left = x + "px";
! 
!       page_top = N ? window.pageYOffset : document.body.scrollTop;
! 
!       // We can't use popup.clientHeight because it's not valud until
!       // after proginfo.rpy gets executed, so we guess that it'll be
!       // about 175.  Someone else can fix this. :)
!       if (event.clientY + 175 > h)
!               y = page_top + (h - 175) - 20;
!       else
!               y = page_top + event.clientY;
!       popup.style.top = y + "px";
  }
  
! function
! program_popup_close()
! {
!       var popup = document.getElementById("popup");
!       popup.style.display = "none";
  }
  
  function mouseDown(e) {
    if(over) {
      if(N) {



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to