Hi Monty,
Looks good. I think the installer should set the
proper css instead of making users have to mess with
manually setting it. Anyone up on NSIS and Windows
version checking? Is there a way in WinXP to
programatically figure out which theme is running?
Just my $.02,
Brent
--- Monty Scroggins [EMAIL PROTECTED] wrote:
I have been doing some messing with the toolbar to
get it to blend with the XP olive color scheme..
I have attached a graphic showing what I have
settled on.. (olivesnap.png)
I also made some tiny changes, that I would like to
post to get feedback etc :
I set a css id on the table used to house the
gobutton. I called it gotable. I wanted to be
able to control the display of the gobutton via css.
This also allowed the graphic to be vertically
centered, which has been bothering me... I think
this change would be good no matter what OS the
toolbar is in.. Its nice to have control from css
instead of hardcoded values in the html..
I added some css styles for #banner.
changed some of the css for body.
changed the cursor for these buttons to be hand, set
the backgrounds etc...
Attached are the files I modified, and the graphics
to match the olive scheme..
I tested the search.htm on a win2k box and the
change did not adversely affect the toolbar
display..
Comments? Suggestions?
Monty
ATTACHMENT part 2 image/png name=olivesnap.png
-
DQSD Home Page or check the FAQ.#* Type in your search
terms and hit Enter to do a Google search.* If you're
feeling lucky, go directly to Google's first hit using
an exclamation point: Crest toothpaste!* Look up
phone numbers and email by using # and @,
respectively: Piper Smith (Ithaca, NY)#, Bob
Jones@* Load a web page by typing in the URL:
www.microsoft.com.* Translate between English and
other languages (en, zh, fr, de, it, ja, ko, pt, es):
some words en-es. Or translate entire web pages:
www.apple.com en-fr* Convert between currencies:
100 usdgbp* Mathematical expressions: 4*(pi-3),
pow(1.06,30)* Navigate previous searches with ctrl-P
and ctrl-N or the Up/Down arrows.. Type !prefix to
see only matching entries.* A clock appears after when
idle. Right-click for a calendar.* Switches can be
abbreviated: at ram /S is at ram /subject.*
Following are more query codes grouped by category.
To disable a search uncheck the checkbox next to the
search name.
# (this table is automatically generated)
If you want to make additions or improvements, please
do.The deskbar is customizable and completely
open-source.
* Edit localprefs.js to customize various
functionality. Look in preferences.js to see all of
the available options.* Edit localsearch.css to
customize fonts, colors, sizes, etc. Look in
search.css to see all of the available style
settings.* Shortcuts are defined in localaliases.txt.*
You can add new searches by adding new XML files to
the localsearches subdirectory.* After editing the
code, type ! in the search bar to reload it.* If you
have questions or contributions, please post them to
the discussion group and share them with the
community. Report bugs or feature requests here.
Finally, the following are default key bindings. Some
of these can be customized in
localprefs.js:Key(s)DescriptionF1Display
menuCtrl-EnterAdds www. prefix and/or .com suffix to
string if necessary and launches URL. Similar to the
IE key-binding.Shift-EnterAlways opens a new window
for the search regardless of the
reuseBrowserWindowMode setting. This works only when
IE is the default browser.Ctrl-B, F8Search back
through the search history for the current
textShift-Ctrl-B, Shift-F8Search forward through the
history for the current textCtrl-DelClear the search
historyWin-SMake the search bar active (i.e., make it
have the current focus)Ctrl-P, UpDisplay previous
searchCtrl-N, DownDisplay next searchShift
[drag-n-drop]When dragging text to the search bar, if
the shift key is held down when dropping the text the
default search won't be automatically invoked.
--Search
// include the overwriting stylesheet if necessary
if (typeof localstylesurl != undefined
localstylesurl != )document.write(
); getDefaultLanguage(); initGlobals();// show
localized title
stringdocument.title=local(SEARCH_TITLE); // include
the localsearch file if necessary if (typeof
localsearchurl != undefined localsearchurl != )
document.write();
// register key press hooks so addons, etc can handle
keypressesfunction registerKeypressHook( keypressHook
){ if ( typeof keypressHooks == 'undefined' )
keypressHooks = new Array(); keypressHooks.push(
keypressHook );}// def() called when the user hits
enter in the textboxfunction def(){ // handle
things like !! and !foo if (!recent()) return false;
// grab the contents var t = document.deff.q.value;
// store the query in the windows autocomplete cache
(MSKB:Q329156)
window.external.AutoCompleteSaveForm(deff); // Major
hack! Due to