-
March 17th, 2008, 03:09 PM
#1
How to change the highlight color in stockList demo code?
Hi all,
In StockList Demo code (file "index.html"), in function formatValues(), i don't know how to change the highlight color?
----
function formatValues(item, itemUpdate) {
...
//choose the backgroundColor
var backC = (item % 2 == 1) ? "#eeeeee" : "#ddddee";
var backH = itemUpdate.getServerValue(14);
itemUpdate.setRowAttribute(backH,backC,"backgroundColor"); --> how to re-defined backgroundColor?
//choose the "change" field stylesheet
var newChng;
if ((newChng = itemUpdate.getFormattedValue(3)) != null)
{
var hotTxtCol = (newChng.charAt(0) == '-') ? "#dd0000" : "#009900";
itemUpdate.setAttribute(3,"black",hotTxtCol,"color ");
itemUpdate.setAttribute(3,"bold","bold","fontWeigh t");
}
...
--------
Can anybody help me?
-
March 18th, 2008, 03:30 AM
#2
thì thay mầu mà ông thích vào backH & backC
backH - Hilight - biến đổi xanh đỏ tùy vào demo up & down
backC - Color - chẵn là #ddddee, lẻ là #eeeeee
backH sau khoảng thời gian SetHotToCold thì sang backC
================================================== ===
nè trao đổi tý, app ông có bị treo khi đóng browser không, nếu ko thì share kinh nghiệm đi cho Fair-Play
ah, bệnh này chỉ xảy ra khi subcribe khối lượng item lớn, ít thì normal
-
March 18th, 2008, 08:56 AM
#3
I know about backH, backC. but I mean (see picture below)
Here my demo site :
http://210.245.113.226:8080/priceonline/hose.html
-
March 19th, 2008, 08:57 AM
#4
Hello, unfortunately I can't see your demo.
Btw, do you mean how to set a cold color that is transparent? Just set the background color as "transparent".
Let me know about.
-
March 19th, 2008, 10:10 AM
#5
Thanks Mone. I did it. U can see my demo from 8:30 Am to 11:00 AM (GMT +7), its still underconstruction.
Similar Threads
-
By sharathbabuk in forum General
Replies: 8
Last Post: July 30th, 2010, 03:18 PM
-
By hungn in forum Client SDKs
Replies: 8
Last Post: March 25th, 2010, 09:02 AM
-
By Test6405 in forum Client SDKs
Replies: 1
Last Post: November 2nd, 2009, 04:55 PM
-
By CHTSENG in forum General
Replies: 29
Last Post: July 14th, 2009, 09:57 AM
-
By sarbao in forum General
Replies: 1
Last Post: April 16th, 2009, 08:59 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:30 AM.
Bookmarks