셀 그리드 마우스오버아웃 텍스트강조 » 이력 » 버전 1
김 미진, 2025/04/22 10:20
1 | 1 | 김 미진 | h1. 셀 그리드 마우스오버아웃 텍스트강조 |
---|---|---|---|
2 | |||
3 | <pre> |
||
4 | $(".x-table tr").mousemove(function() { |
||
5 | // background color: red |
||
6 | // $(this).css("background-color","#979DAC"); |
||
7 | //font size: 18px |
||
8 | var trId = $(this).attr('id') |
||
9 | if(trId != 'r-0-0'){ |
||
10 | var trr = $("tr[id='"+ trId +"']"); |
||
11 | trr.each(function (){ |
||
12 | console.log($(this)); |
||
13 | $(this).find("td").css("font-size","17.5px"); |
||
14 | }) |
||
15 | } |
||
16 | }); |
||
17 | // on mousedown |
||
18 | //on mouseout |
||
19 | $(".x-table tr").mouseout(function() { |
||
20 | // background color: white |
||
21 | $(this).css("background-color","white"); |
||
22 | //font size: 12px |
||
23 | var trId = $(this).attr('id') |
||
24 | if(trId != 'r-0-0'){ |
||
25 | var trr = $("tr[id='"+ trId +"']"); |
||
26 | trr.each(function (){ |
||
27 | console.log($(this)); |
||
28 | $(this).find("td").css("font-size","12px"); |
||
29 | }) |
||
30 | } |
||
31 | }); |
||
32 | </pre> |