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-serv16385

Modified Files:
        ChangeLog.txt preferences.js search.htm 
Log Message:
updated preferences.js, search.htm to set banner logo as default behavior, and provide 
for click action equivalent to a 'go' button - updated changelog

Index: ChangeLog.txt
===================================================================
RCS file: /cvsroot/dqsd/dqsd/ChangeLog.txt,v
retrieving revision 1.250
retrieving revision 1.251
diff -C2 -d -r1.250 -r1.251
*** ChangeLog.txt       19 Sep 2003 21:35:40 -0000      1.250
--- ChangeLog.txt       21 Sep 2003 04:22:04 -0000      1.251
***************
*** 8,12 ****
  * Added explicit statement to store query in the windows autocomplete cache 
(MSKB:Q329156) (Shawn K. Hall)
  * Added startup commands (Neel Doshi)
! * Added ability to display graphic icon/logo in search bar (Shawn K. Hall)
  
  Bug Fixes
--- 8,12 ----
  * Added explicit statement to store query in the windows autocomplete cache 
(MSKB:Q329156) (Shawn K. Hall)
  * Added startup commands (Neel Doshi)
! * Added ability (as DEFAULT) to display graphic icon/logo in search bar, which 
functions as a 'GO' button. (Shawn K. Hall)
  
  Bug Fixes

Index: preferences.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/preferences.js,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** preferences.js      17 Sep 2003 16:45:56 -0000      1.52
--- preferences.js      21 Sep 2003 04:22:04 -0000      1.53
***************
*** 437,445 ****
  *  bannerwidth   Specify the width of the banner image, or "0" to autodetect
  *  bannerheight  Specify the height of the banner image, or "0" to autodetect
  */
! //bannerurl    = "dqsd.gif"; // "http://reliableanswers.com/x/dqsd/dqsd.gif";
! //bannerwidth  = 18;         // 0 := autodetect banner size
! //bannerheight = 12;         // 0 := autodetect banner size
! 
  
  /* Startup functions
--- 437,449 ----
  *  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
  */
! bannerurl    = "dqsd.gif"; // "http://reliableanswers.com/x/dqsd/dqsd.gif";
! bannerwidth  =  18;        // 0 := autodetect banner size
! bannerheight =  18;        // 0 := autodetect banner size
! bannerlink   = "http://www.dqsd.net/";;  // examples:
!                                         //   (action)="gg";
!                                         //   (url)="http://www.dqsd.net/";;
  
  /* Startup functions

Index: search.htm
===================================================================
RCS file: /cvsroot/dqsd/dqsd/search.htm,v
retrieving revision 1.177
retrieving revision 1.178
diff -C2 -d -r1.177 -r1.178
*** search.htm  17 Sep 2003 07:20:13 -0000      1.177
--- search.htm  21 Sep 2003 04:22:04 -0000      1.178
***************
*** 550,553 ****
--- 550,576 ----
  }
  
+ // clickgo: handle clicking the logo image
+ function clickgo()
+ {
+   var t = document.deff.q.value;
+   // remove local-default values
+   if (t == local(QUICK_SEARCH)  ||
+       t == local(HELP_TEXT)     || 
+       document.deff.q.className == "clock")
+     document.deff.q.value = "";
+   //set default action/url
+   if (typeof bannerlink == "undefined") { bannerlink = "";}
+   if (document.deff.q.value == "" && bannerlink != "") {
+     // detect URLs, filenames, etc to open directly
+     if (direct(bannerlink)) return false;
+     //not a url and not empty, must be a script
+     document.deff.q.value = bannerlink;
+   }
+   //search now
+   def();
+ 
+   return false;
+ }
+ 
  function prevnext(direction)
  {
***************
*** 743,750 ****
            if (typeof bannerwidth  == "undefined") { bannerwidth  = "-1"; }
            document.write(
!             '<img src=\"'
!             + bannerurl + '\" '
              + (bannerheight != "-1" ? 'height=\"' + bannerheight + '\"' : '')
              + (bannerwidth  != "-1" ? 'width=\"'  + bannerwidth  + '\"' : '')
              + 'id=\"banner\" />'
              + '<nobr>');
--- 766,773 ----
            if (typeof bannerwidth  == "undefined") { bannerwidth  = "-1"; }
            document.write(
!             '<img src=\"' + bannerurl + '\" '
              + (bannerheight != "-1" ? 'height=\"' + bannerheight + '\"' : '')
              + (bannerwidth  != "-1" ? 'width=\"'  + bannerwidth  + '\"' : '')
+             + 'onclick=\"clickgo()\" '
              + 'id=\"banner\" />'
              + '<nobr>');
***************
*** 878,883 ****
          if (bannerwidth != -1)
          {
!           document.deff.q.style.left         = gowidth + bannerwidth + 2;
!           document.deff.gobutton.style.left  = 0 + bannerwidth + 2;
          }
          else
--- 901,906 ----
          if (bannerwidth != -1)
          {
!           document.deff.q.style.left         = gowidth + bannerwidth + 1;
!           document.deff.gobutton.style.left  = 0 + bannerwidth + 1;
          }
          else
***************
*** 891,896 ****
          if (bannerwidth != -1)
          {
!           document.deff.q.style.left         = 0 + bannerwidth + 2;
!           document.deff.gobutton.style.left  = targetwidth + bannerwidth + 2;
          }
          else
--- 914,919 ----
          if (bannerwidth != -1)
          {
!           document.deff.q.style.left         = 0 + bannerwidth + 1;
!           document.deff.gobutton.style.left  = targetwidth + bannerwidth + 1;
          }
          else
***************
*** 908,913 ****
        {
          document.deff.gobutton.style.display = "none";
!         document.deff.q.style.left           = 0 + bannerwidth + 2;
!         targetwidth                          = document.body.clientWidth - 
bannerwidth + 2;
        }
        else
--- 931,936 ----
        {
          document.deff.gobutton.style.display = "none";
!         document.deff.q.style.left           = 0 + bannerwidth + 1;
!         targetwidth                          = document.body.clientWidth - 
bannerwidth + 1;
        }
        else




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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