background-color

CKEditor read contents + set uiColor dynamically

Hello! I want to validate a form where I use CKEditor for one of the inputs. When an input is wrong, I set its border and background to colors of red. Using JavaScript, how can I read the contents of the CKEditor? Also, how can I make the editing textarea red background and red border? Thank you. ...

Background color property slide up.

The question is in in transitionBackground function. In this case, the function triggers when the up button is pressed on the page. <html> <head> <title>Case: Background Transitions</title> <script src="jquery/jquery.js"></script> <script> $( var transitionBackground = function (){ if ($(div)...

Setting background color of Win32 dialog button (not owner-drawn)

Is it possible to set the background color of a dialog button in Win32 without using an owner-drawn button? The following paints the background of every dialog item except the buttons (not owner-drawn): case WM_CTLCOLOREDIT: case WM_CTLCOLORSTATIC: case WM_CTLCOLORBTN: HDC hdcStatic = (HDC)wParam; SetBkColor(hdcStatic, bgEditC...

weird background in grouped table cell

Hello We use in our application cells in a grouped tableview as buttons. Therefore we set a backgroundimage to look the cells like buttons. We used the following code: cell.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg_gradient_mainmenu_2.png"]]; cell.textLabel.textColor = [UIColor whiteColor]; cell.textLabe...

Set the background color of all objects in C#

Is there an easy way to set the background color of all objects on a form? Im trying to do it through click event when everything is running. So there would be more then one button. What I would like to avoid is having: changeColor_Click { label1.BackColor = Color.Black; label2.BackColor = Color.Black; label3.BackColor = Color.Bl...

Reseting the background color of a View

I'm trying to restore the background Color of a View. I have several selectable Views. When the user clicks one of those Views, the following code is executed and the View becomes Yellow: View newSelection, previousSelection; ... if(previousSelection != null) { previousSelection.setBackgroundColor(Color.BLACK); // problem here } ...

jQuery animation unwanted repeats :)

And some question once again. I have a set of inputs and I want to change their background color after hovering and then come back to the original color after mouse out. It works fine, with one glitch - when I hover those inputs, then take mouse back, then hover them again and take mouse back etc. rapidly - they're blinking some time a...

changing backgroundColor changes border

In IE7, clicking the textbox below changes the border to inset. It works fine in the latest FireFox, but not in v3.0.10 <html> <head></head> <body> <input type="text" readonly="readonly" value="hello" onclick="this.style.backgroundColor='white';" /> </body> </html> Strange quirk. For those with IE8, is it fixed? My workaround is to...

Set background color in table view while using Core Graphics to add vertical lines for grid

Hi All, I'm attempting to create a grid-style table using the UITableView by overwriting vertical lines on top of the standard horizontal lines provided by default in a UITableView. I am adapting my code to the example helpfully provided from this blog: http://www.iphonedevx.com/?p=153. First, the code which draws the vertical lines (sa...

WPF Datagrid Template column edit event and alternating column color

I have been using WPF for quiet sometime. I know DataGrid in WPF does not have a Column collection as dependency property so columns cannot be added dynamically. The application I am developing is highly dynamic so the number of columns are not known. So I am creating DataGridTemplate columns from code behind. Problem 1 : I want alter...

How to change the background of an image in iPhone app?

Hi, I'm in the process of creating an app and I want to include a color palette where the user can pick a color and apply the color to the background of an image (i.e. change the color of the walls of a furnished room). I've tried google for viable solutions to this but am stumped. Any ideas of how I can go about implementing this? I ran...

Why with this css the background-color attribute doesn't work?

Hi. This is my code : <body> <div> <div id="ROOT" > <div id="ROOT_0" > header </div> <div id="ROOT_1" > main </div <div id="ROOT_2" > footer </div> </div> </div> </body> html {hei...

Div won't display unless I have some content in it?

I'm trying to simulate a shadow on a div I have by creating a div called headerShadow and setting it's background color to Black. It's not showing though, here's the code: #header { background-image: url('images/headerBackground.png'); background-repeat:repeat; width:auto; } #headershadow { color:Black; height:10px...

IMG not showing above background color?

I have 3 divs, each with a z-index higher than the previous and all overlain on eachother. The bottom div has an image, the next div has a background-color with opacity:0.7 and the topmost div has another image. The problem is the top-most image also appears underneath the background-color of the div beneath it, in Chrome, FF and IE. ...

Changing the forecolor and backcolor of text in a textbox

I'm making a C++ code editor application using VB.NET. I'd like to change the color of the keywords as the user types it. Also I'm looking for a way to highlight some lines of the code. Is there a way to change the forecolor and backcolour of a piece of text inside a textbox? ...

Setting background-color for Flex Tree component..?

I have a Flex Tree component in my app. I set the icons for open and close. BUT I can't find something about changing the default background-color from white to something different. obviously there is no background-color setable in css... any ideas? thank you ...

Change background color of cell (not control) in ListView

What or where in the code do I set the color for this background? ...

How do you change the background color of an <input> element with javascript

I have a <input> element that I want to change the background color on. The code I am currently using is this (but it is not working): var allBlanksLoc = document.getElementById('text'); var allBlanks = allBlanksLoc.getElementsByTagName('input'); for(i=0; i<allBlanks.length; i++) { var currentBlank = allBlanks[i]; var wordNum = blanks...

Alternate Color in ListView C# (.Net 3.5) ?

I'm gonna set an alternate color to my ListView rows. I saw this link but I'm using .Net Framework 3.5 SP1 , so I can't use it. I've used the following code , but it has problem with ListView Sorting ListViewItem newListViewItem = new ListViewItem( new string[] { item.name.ToString(), item.code.ToString() }); new...

In Internet Explorer 7 When clicking on a link on web page it goes no where but the page turns white

Hi, I am currently in the process of realigning my employers website. I've noticed a strange error while working on my development environment where by when I click on a link, the browser will not go to the requested URL instead the page turns white with a few elements still existing on the page. If I then click anywhere else on the p...