background

On form submit background function php running

Hi: I am looking for a way to start a function on form submit that would not leave the browser window waiting for the result. Example: User fills in the form and press submit, the data from the form via javascript goes to the database and a function in php that will take several seconds will start but I dont want the user to be left wa...

Changing the standard blue color of the form's control box in .NET winfroms

Hi is there a way I can change the color of the form's controlbox in a .NET winform application i.e the box the has the close-minimize-maximize buttons? I need to change that blue color to match the colors of the different controls within that form. Thanks in advance ! ...

Good text foreground color for a given background color

I'm drawing a color selection button and I'm looking for a nice and simple formula to get a good text color (foreground) for a given background color in RGB. A simple try would be to just take the complement color but this will produce an odd looking button for colors like pure blue or pure red. Is there something well known that does...

How to change temporarily the background color of a new element added to the DOM?

Hi, I'm developing a webpage (using jquery) where the user can add new graphical controls to the DOM (for example, the user clicks on a link and a new DIV is created). How can I change the background color of this new element for a few seconds (and then it will revert back to its original color)? I want to change the color to give a vis...

What's the best background job management library for Rails?

It's been a while since I've last used backgrounding in Rails. I've use backgroundrb and bj before. Is there anything else that manages background tasks better? ...

Repeating a section of an image in CSS

I want take a section of a picture, for example the middle of a picure, and repeat only that section in the background of a div. Is this even remotely possible? I suppose I could do this in javascript, but that would be messy. In theory the answer to my question should be able to take a single pixel from a picture and repeat it in a li...

How to periodically change background-image site-wide?

I am trying to set up an random alternating background that changes periodically across the whole site. E.g. at any given point the random background image would be the same on every page for a period of time. Currently I have background images that change every 30 mins with this javascript: (from here: http://www.blogfodder.co.uk/post/...

Stop VB application from running in background

I have a console application (written in VB6 ) which is behaving strangely on my machine. I kick it off from the command line and what should be a two minute job drops straight back to the prompt - if I run this on another machine the executable will sit and wait until the job finishes before returning control back to the prompt. If I ch...

Background Div Not 100 % in FF or IE7

I have 2 divs - one semi transparent bg div and one opaque one over it. Here are the CSS snippets. ... Short version - the bg div will not stretch 100% of the way in FF or IE7 though works in IE8, IE6, Safari (Windows), and Chrome. I'm pulling my hair out because I have the html, body, parent divs etc all streching 100% of the height. PL...

cycling through background colors with javascript

Can anyone tell me why the following code might not cycle through the array of colors defined here: var colors = ["white", "yellow", "orange", "red"]; and here is the line of code in question: setInterval(function(){ currElm.style.background = colors[(nextColor++)%(colors.length)]); }, 500); It seems like that shoul...

about background attribute in css

background:#777777 none repeat scroll 0 0; the 5 attributes it includes are background-color,background-image,background-repeat,background-attachment and background-position. But I don't understand what background-attachment and background-position mean? Can someone give an explanation? EDIT:are background-repeat,background-attachmen...

background attribute in CSS

background:#777777 none repeat scroll 0 0; the 5 attributes it includes are background-color,background-image,background-repeat,background-attachment and background-position. My question is: Are background-repeat,background-attachment and background-position useless if background-image is none? Because according to the document,these...

How can you read keystrokes when the python program isn't in the foreground?

I'm trying to analyze my keystrokes over the next month and would like to throw together a simple program to do so. I don't want to exactly log the commands but simply generate general statistics on my key presses. I am the most comfortable coding this in python, but am open to other suggestions. Is this possible, and if so what python...

A way to fade in the background on load?

I am working on a website design, and I need a way to fade in the background image of the body tag when it is completely done loading (perhaps then a pause of 500 ms). If you see August's website design you will see the background fades in; however, this is done with a Flash background. Is there any way to do this with jQuery or JavaScr...

Firefox javascript bookmarklet open tab in background

I've written a bookmarklet to look a word up in a Chinese dictionary: javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('%E8%AF%8D%E8%AF%AD',''))};if(Qr)(function(){window.open('http://nciku.com/search/all/'+Qr);})(); This opens a new tab with search results for your selected word or a word you type in at the prompt. Is the...

How to set the SystemColors.HighlightBrushKey in WPF with a Converter...

Hi, I im trying to set the SystemColors.HighlightBrushKey always a bit darker than the Background of the selected Row. Therefore im using this Code: App.xaml: <WPFTests2:SelectionBackgroundConverter x:Key="SelectionBackgroundConverter"/> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="{Binding ...

How can I get the pinstripe background to show?

I'd like to use the pinstripe background that shows up in the Settings app and many other iPhone apps behind table views. Is is already included in some graphics library? How can I make it show up in a UIView or UITableView? ...

OpenGL background dissappears with certain Polygon Modes

I am creating a simple gradient background by drawing a quad as follows: glMatrixMode GL.GL_PROJECTION glLoadIdentity glMatrixMode GL.GL_MODELVIEW glLoadIdentity ***glPolygonMode GL_FRONT_AND_BACK, GL_LINE*** glDisable glcDepthTest glBegin bmQuads glColor4d 1, 0, 0, 1 glVertex2i -1, -1 glVertex2i 1, -1 ...

Setting background images in JFrame

Are any methods available to set an image as background in a JFrame? ...

OpenGL raster text disappears behind background

I am drawing a quad as a background so I can apply a gradient. Details of how I'm doing this are found in a similar question: http://stackoverflow.com/questions/1064840 The 2D raster text (screen text) is drawn as expected without the gradient background. However, when the gradient background is drawn, the text disappears (I'm assumi...