adm/admin.head.php


menu.style.left = get_left_pos(link) + x +'px';
menu.style.top  = get_top_pos(link) + link.offsetHeight + y +'px'

'px'를 추가 해주면 석세스!






야후에서 제시하는 공통적인 웹접근성을 쉽게 마련하는 방법이라고 한다.

쉽기는 하지만, 이거 완전 노가다라서 GG 치고 싶다.


http://yaccessibilityblog.com/library/easy-fixes-to-common-accessibility-problems.html









출처 : http://stackoverflow.com/questions/2901102/how-to-print-number-with-commas-as-thousands-separators-in-javascript



function numberWithCommas(n) {
   
var parts=n.toString().split(".");
   
return parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",") + (parts[1] ? "." + parts[1] : "");
}

출처 URL 페이지 상단부터 쭉~ 내려 오다보면, 위 펑션이 나오는데, 길어진 펑션이 이렇게 짧게 되었다.

세상은 넓고, 능력자는 많다.





문제 : 포탈의 검색창이 있다고 했을 때 이 안에 들어 갈 키워드를 순차적으로 보이게 하며, 해당 검색창을 클릭 했을 때 순차적으로 보이는 것을 멈추게 함.


<script>
var photos = ['1.jpg', '2.jpg', '3.jpg'];
var photo_index = 0;

$(function() {
    var timer = null;
    var input = document.getElementById('inputcode');

    function tick() {
        photo_index = (photo_index + 1) % photos.length;
        $('#inputcode').val(photos[photo_index]);
        start();
    };

    function start() {
        timer = setTimeout(tick, 1000);
    };

    function stop() {
        clearTimeout(timer);
    };

    $('#inputcode').bind("click", stop);

    start();
});
</script>
</head>
<body>
<input type="text" id="inputcode" >



---------------


프로타입은 구글링에서 찾았고, 여기서 더 수정했습니다.





그누보드가 최초 작성 될 때 익스플로러 어떤 버전에 맞게 개발이 되어 있는지 모르겠으나 파이어폭스(파폭)에서나 익스플로러 8에서는 그누보드 어드민(관리자) 페이지 상단에 마우스를 오버하면, 뎁스2 메뉴가 뎁스2바로 밑에 나타나야 하는데, 뎁스2의 첫번째 메뉴도, 두번째 메뉴도 첫번째 뎁스에 생겨서 선택을 하기가 어렵습니다.


admin.head.php


*기존

menu.style.left = get_left_pos(link) + x;

menu.style.top  = get_top_pos(link) + link.offsetHeight + y;



*수정

menu.style.left = get_left_pos(link) + x + 'px';
menu.style.top  = get_top_pos(link) + link.offsetHeight + y + 'px';



이렇게 수정하면, 정상적으로 됩니다.







PHP에서 텍스트 파일을 load하는 방법은 여러 방법이 있다.



그 중에서 file_get_contents를 사용했지만 값이 정상적이지 않게 배열로 들어 가는 것을 발견




&text_1=111&&text_2=111&&text_3=111&&text_4=111&&text_5=111&&text_6=111&&text_7=111&
&text_8=1111&&text_9=222&&text_10=222&&text_11=222&&text_12=222&



  1. $file = file_get_contents('./textfile.txt', true);
  2. $convert = explode("&&", $file);


첫번째줄 개행 때문에 explode가 제대로 안된다. ㅠㅠ

지금에와서 text file 형태를 수정할수도 없는 노릇이고....



방법은........


$convert2 = preg_split('/[s]*[&][s]*/', $file);


배열원소가 하나씩 밀려나긴 하지만, 이 방법을 택하기로 했다.


지인이 추천해준 방법은 한줄씩 불러 오는 방법을 추천했다.

다음에는 이 방법을 쓰든가 해야 겠다.










  1. if(getenv(QUERY_STRING)){
  2.         $gquery = "?".getenv(QUERY_STRING);
  3. }else{
  4.         $gquery = "";
  5. }
  6. $now_url = urlencode("http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].$gquery);



출처 : 어느 블로그인지 잊어 버렸어요.






Warning: Unknown: open_basedir restriction in effect. File(/*.php) is not within the allowed path(s): (/home/juyeon/:/tmp/) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/*.php' (include_path='.:/home/apm/*/lib/php') in Unknown on line 0


http://koreaidc.tistory.com/24

'tech > PHP' 카테고리의 다른 글

text file load  (0) 2012.07.25
현재 URL 구하기  (0) 2012.06.25
Warning: exec() has been disabled for security reasons in ......  (0) 2012.03.22
[PHP] Warning: Cannot modify header information  (0) 2012.03.09
PHP + SQL select box  (0) 2012.02.24





eclipse AIR plug in



AIR 좀 어떻게 만들어 볼려고 했더니 플러그인 마저도 60일 제한 걸려있네.

결국 flash builder로 가야 하나

'tech' 카테고리의 다른 글

Eclipse PHP Development Tools(PDT) 폰트 변경  (0) 2017.04.18
eclipse 에서 wrap 기능  (0) 2015.10.14
이클립스 plug in 삭제  (0) 2012.05.14
PDT(PHP Development Tools) 다운로드  (0) 2012.05.11
구글 코리아 전화번호  (5) 2012.01.12







설치 했던 플러그인이 정상적이지 않아서 삭제 해야 될 때가 있었는데, 파일을 탐색기에서 삭제하면 이클립스 운용 중에 에러가 뜹니다.

따라서 PDT의 경우 help - about eclipse for php developer를 선택해서 하단 installation details를 선택하면 update나 uninstall 가능


PDT외에도 about eclipse를 선택하면 됨.


'tech' 카테고리의 다른 글

eclipse 에서 wrap 기능  (0) 2015.10.14
eclipse AIR plug in  (0) 2012.05.15
PDT(PHP Development Tools) 다운로드  (0) 2012.05.11
구글 코리아 전화번호  (5) 2012.01.12
natsvc.exe  (0) 2011.05.22

+ Recent posts