개발

[javascript] 타이틀변경 및 부모창 찾기, 텝인덱스

지승준 2015. 1. 15. 16:47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content=""
    <script type="text/javascript">
    
        $(document).ready(function(){          
                var dept1 = $(".side_menu_title01").text();
                var dept2 = $(".s2_big_title strong").text();        
                var dept3 = $(".tab_bar01 .on").text();
                var dept4 = $(".ductor_tab_bar02 .on").text();        
                if (dept1) dept1 = dept1 + " > ";
                if (dept2) dept2 = dept2 + " > ";
                if (dept3) dept3 = dept3 + " > ";
                if (dept4) dept4 = dept4 + " > ";        
                document.title = dept4 + dept3 +dept2 + dept1 + "타이틀";     
        }
         
        //부모창
        function pt_index( new_date ) {
                $("#"+ new_date + " a" ).attr("tabindex","0").focus();
        }
 
        //자식팝업
        function ch_close() {
                parent.pt_index( '<%=new_date %>' );
                parent.frame_layer.close();
        }
 
    </script>
 </head> 
 <body>  
 </body>
</html>
cs


'개발' 카테고리의 다른 글

[jquery] 선택자  (0) 2015.01.24
[javascript] 웹 바코드 code128, 바코드 생성기  (0) 2015.01.20
[php] mysql 트렌젝션  (0) 2014.12.11
[php] 이클립스에서 php 사용하기  (0) 2014.12.08
[css] css 기본 폼  (0) 2014.12.07