View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd
In directory sc8-pr-cvs1:/tmp/cvs-serv15052

Modified Files:
        preferences.js search.htm 
Log Message:
* Fixed banner image autosizing

Index: preferences.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/preferences.js,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** preferences.js      11 Dec 2003 17:37:15 -0000      1.55
--- preferences.js      14 Dec 2003 17:46:23 -0000      1.56
***************
*** 136,140 ****
  
  
! /* Default language - uncomment to override default language (which is determined 
programatically)*/
  // language="en";
  
--- 136,140 ----
  
  
! /* Default language - uncomment to override default language (which is determined 
programmatically)*/
  // language="en";
  
***************
*** 437,449 ****
  *  bannerurl     Identifies the resource to use, either a url or file 
  *                reference from the DQSD install directory.
! *  bannerwidth   Specify the width of the banner image, or "0" to autodetect
! *  bannerheight  Specify the height of the banner image, or "0" to autodetect
  *  bannerlink    Specify a destination url/action when clicking banner/logo 
  *                without a search in the box
  */
  bannerasgo   = false;
! bannerurl    = "dqsd.png"; // "http://reliableanswers.com/x/dqsd/dqsd.gif";
! bannerwidth  =  21;        // 0 := autodetect banner size
! bannerheight =  19;        // 0 := autodetect banner size
  bannerlink   = "http://www.dqsd.net/";;  // examples:
                                          //   (action)="floax";
--- 437,449 ----
  *  bannerurl     Identifies the resource to use, either a url or file 
  *                reference from the DQSD install directory.
! *  bannerwidth   Specify the width of the banner image, or -1 to autodetect
! *  bannerheight  Specify the height of the banner image, or -1 to autodetect
  *  bannerlink    Specify a destination url/action when clicking banner/logo 
  *                without a search in the box
  */
  bannerasgo   = false;
! bannerurl    = "dqsd.png";  // "http://reliableanswers.com/x/dqsd/dqsd.gif";
! bannerwidth  = -1;          // -1 == autodetect banner size
! bannerheight = -1;          // -1 == autodetect banner size
  bannerlink   = "http://www.dqsd.net/";;  // examples:
                                          //   (action)="floax";

Index: search.htm
===================================================================
RCS file: /cvsroot/dqsd/dqsd/search.htm,v
retrieving revision 1.181
retrieving revision 1.182
diff -C2 -d -r1.181 -r1.182
*** search.htm  13 Dec 2003 16:30:34 -0000      1.181
--- search.htm  14 Dec 2003 17:46:24 -0000      1.182
***************
*** 809,818 ****
          if (typeof bannerurl      == "undefined") { bannerurl    = ""; }
          if (bannerurl != "") {
!           if (typeof bannerheight == "undefined") { bannerheight = "-1"; }
!           if (typeof bannerwidth  == "undefined") { bannerwidth  = "-1"; }
            document.write(
              '<img src=\"' + bannerurl + '\" '
!             + (bannerheight != "-1" ? 'height=\"' + bannerheight + '\"' : '')
!             + (bannerwidth  != "-1" ? 'width=\"'  + bannerwidth  + '\"' : '')
              + 'onclick=\"clickgo()\" '
              + 'id=\"banner\" />'
--- 809,818 ----
          if (typeof bannerurl      == "undefined") { bannerurl    = ""; }
          if (bannerurl != "") {
!           if (typeof bannerheight == "undefined") { bannerheight = -1; }
!           if (typeof bannerwidth  == "undefined") { bannerwidth  = -1; }
            document.write(
              '<img src=\"' + bannerurl + '\" '
!             + (bannerheight != -1 ? 'height=\"' + bannerheight + '\"' : '')
!             + (bannerwidth  != -1 ? 'width=\"'  + bannerwidth  + '\"' : '')
              + 'onclick=\"clickgo()\" '
              + 'id=\"banner\" />'
***************
*** 899,912 ****
  function handleResize()
  {
!   if (typeof bannerurl    == "undefined") { bannerurl    = ""; }
    if (bannerurl == "") {
!       bannerwidth  = "-1";
!       bannerheight = "-1";
    } else {
!     if (typeof bannerheight == "undefined") { bannerheight = "-1"; }
!     if (bannerwidth == 0) // 0 := autodetect
          bannerwidth = document.deff.banner.width;
!     if (typeof bannerwidth  == "undefined") { bannerwidth  = "-1"; }
!     if (bannerheight == 0) // 0 := autodetect
          bannerheight = document.deff.banner.height;
    }
--- 899,912 ----
  function handleResize()
  {
!   if (typeof bannerurl == "undefined") { bannerurl = ""; }
    if (bannerurl == "") {
!       bannerwidth  = -1;
!       bannerheight = -1;
    } else {
!     if (typeof bannerheight == "undefined") { bannerheight = -1; }
!     if (bannerwidth == -1) // -1 := autodetect
          bannerwidth = document.deff.banner.width;
!     if (typeof bannerwidth  == "undefined") { bannerwidth  = -1; }
!     if (bannerheight == -1) // -1 := autodetect
          bannerheight = document.deff.banner.height;
    }




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to