Hi Glenn,

> > I posted all the changes I recalled making...

Until now. Didn't take me long to make more, did it?

Just made a couple changes to clickgo() to enable disabling of the
default behaviour by setting a variable (bannerasgo) to false. This
makes it more useable for when you don't want it to act as a
button/link at all - or you want it to ONLY perform the script
provided in the 'bannerlink' variable.

'// ========================================================
// clickgo: handle clicking the logo image
function clickgo()
{
  var t = document.deff.q;
  // remove local-default values
  if (t.value == local(QUICK_SEARCH) ||
      t.value == local(HELP_TEXT)    ||
      t.className == "clock")
    t.value = "";
  //disable 'go button' functionality if requested
  if (typeof bannerasgo == "undefined") { bannerasgo = true;}
  if (bannerasgo == false)
    t.value = "";
  //set default action/url
  if (typeof bannerlink == "undefined") { bannerlink = "";}
  if (t.value == "" && bannerlink != "") {
    // detect URLs, filenames, etc to open directly
    if (direct(bannerlink)) return false;
    //not a url and not empty, must be a script
    t.value = bannerlink;
  }
  //search now
  if (t.value != "" )
    def();

  return false;
}
'// ========================================================

Regards,

Shawn K. Hall
http://ReliableAnswers.com/

'// ========================================================
   "This American system of ours, call it Americanism, call
    it capitalism, call it what you will, gives each and
    every one of us a great opportunity if we only seize it
    with both hands and make the most of it."
      -- Al Capone (1899-1947)




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to