duck.co - The DuckDuckGo Community




Click on Join Now to Sign Up
Thanks for fixing the Search.html so that it accepts the URL commands. Giving the webmaster a little more control is really nice. For the record, I love DDG!
That said I’ve been putting Search.html through the paces and here’s what I’ve found.
1. For placement on any website the following adjustments to the standard html code allows for integration regardless to the page background color.
<iframe src="http://duckduckgo.com/search.html
style="overflow:hidden;margin:0;padding:0;width:398px;height:34px;" frameborder="0"></iframe>
2. The standard duck logo has two issues: 1) Size. For integration bigger is not better. Trying to integrate the logo into a website with the current logo size is a bit overpowering. I think 33px X 33px would be about right. This would get the DDG logo out there without distracting from integrating sites page appeal. 2) White background. Works great if you are integrating into a page with a white background. However, if you want to integrate into a page with a background color other than white, not so good. If the new smaller logo had a transparent background I think it would be perfect.
3. Finally, the following probably less than perfect, code change would add a link to the DDG About page.
<iframe src="http://duckduckgo.com/search.html
style="overflow:hidden;margin:0;padding:0;width:398px;height:34px;" frameborder="0"></iframe>
User could change font style, color and size if desired.
This is definitely a step closer.
The larger image no doubt works better with white or lighter colored backgrounds.
The smaller image works with just about any background if you adjust the style width and height so that the background becomes pretty much invisible.
You can also get a real nice affect with both by turning the frameborder parameter on. Once again, each image requires some adjustment to the style width and height settings in this mode.
I guess if you wanted to you could build width, height and frameborder on/off into the tool, but any average hacker should be able to do this without the tool.
I’ve also had pretty good luck leaving the image off and pasting in the cropped and resized large logo into a WYSIWYG editor. This gives you a sharp logo with a transparent background.
This is great!
It is functioning just as you say and it really is great! But you know us hackers, we're never satisfied. Actually, if you are pasting into a page and the background is an exact match to the iframe background then no additional adjustments are necessary. However, if you use a contrasting color or turn on the frameborder some adjustments are required to get the effect you are looking for.
<iframe src="http://duckduckgo.com/search.html?width=350&duck=yes&bgcolor=EEDAA9"Set your page background to HTML color code #CCB05B and use the above code to create the search box. This should put you in the ballpark.
style="overflow:hidden;margin:0;padding:0;width:473px;height:60px;" frameborder="0"></iframe>