tuongkha
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","fontWeight");
}
...
--------
Can anybody help me?
skidrow406
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
tuongkha
I know about backH, backC. but I mean (see picture below)
Here my demo site :
http://210.245.113.226:8080/priceonline/hose.html
Mone
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.
tuongkha
Thanks Mone. I did it. U can see my demo from 8:30 Am to 11:00 AM (GMT +7), its still underconstruction.