GEEK I've discovered a very perplexing problem. Certain Web-safe colors (for example, #CC9966) dither only when viewed in "thousands" (not sure if it's 15 or 16-bit at this point) of colors. The problem occurs under both PCs and Macs as well as Microsoft Internet Explorer and Netscape Navigator. I understand that there is some kind of a math problem concerning rounding with colors under 16-bit. Do you know anything about this issue? GEEK The problem here is a little complex, and has to do with the granularity of a 5-bit intensity value as compared with an 8-bit intensity value. A 5-bit integer can range from 0 to 31. An 8-bit integer can range from 0 to 255. In both situations, 0% is the lowest possible value (0) and 100% is the highest possible value (31 or 255). So a non-dithering situation will arise when an 8-bit and 5-bit integer can both exactly describe the same percentage value. By definition, this will at least include 0% and 100%. The question is if it contains any other values between those ranges. For example, as an 8-bit value, the number 51 translates exactly to a 20% intensity. But in a 5-bit value, you can't represent 20% exactly 6 is 19.35%, and 7 is 22.58%. Therefore, any 8-bit color value that uses 51 as one of the RGB components will dither when converted to 5-bit color. If you take the time to calculate all the values, you'll see that the two don't have any values other then 0% and 100% in common; therefore, the only colors that won't dither are the ones that use just #00 or #FF for all of their color components. This dithering will only happen in solid background colors (for example, <td bgcolor="#CC9966">). Use of the Safety Palette colors in images will give you the solid color closest to the one requested.
GEEK I'm using Internet Explorer 4.01 and IIS 4.0 (running Active Server Pages) with a Verisign Digital certificate. With unsecured (HTTP) pages, forward and backward navigation works fine, and pages are repopulated when you navigate back to them. My problem occurs with secured (HTTPS) pages. If I go to a page and enter information, navigate forward, and then backthe navigation back is the result of server-side validationthe information is not reloaded. According to Microsoft's Knowledge Base article http://support.microsoft.com/support/kb/articles/q174/5/50.asp, this behavior is by design. Is there a Microsoft-prescribed way to repopulate a form after it has been submitted like this, without using cookies?
GEEK I have several database connections running through ASPs for viewing them, updating them, and so on. Some tables include pictures, but I can't seem to get an ASP to show them. The pictures are .bmps and only show up as binary streams. Any suggestions?
|
|
to extract an image from that database. imageBlob.asp would look like Figure 1.
GEEK I can create text in an Internet Explorer 4.0 ListView control and work with it like a grid. I'd like to use images in it as well. In Visual C++®, when I call function the Add function, all five parameters are VARIANT. How can I use this parameter to describe a small or large icon?
GEEK With Dynamic HTML (DHTML), I can catch when the user moves the mouse over any HTML tags. Can I determine when the mouse is down or up?
GEEK Microsoft uses a pull-down menu interface at http://home.microsoft.com that is pretty slick. I've never done Java
or JavaScript before, but I'm wondering if there is some control or sample code that I can use to mimic this on an internal
company site. |
|
This includes an external source file that just contains script code. So if you had gone to http://msn.microsoft.com/global/dhtmlToolbar.INC, what you would have seen is the JScript code that displays the toolbar. This allows the same toolbar to be easily put onto the top of every page on this site. From there, the code is relatively simple. Each top-level menu option assigns a mouseover event to display a particular named menu. There are essentially three key functions. doMenu determines if a new menu should be displayed (in which case it will hide any current menu, and start displaying the new one); it also calculates
where to display the menu. showMenu is an interval
function started up by doMenu; it will progressively open up the menu until it is fully displayed. hideMenu hides
the currently displayed menu. There are a few other things being done in this little source file, but you should be able
to take it from here.
|