참조 : http://naradesign.net/wp/2007/07/11/123/

a 태그에 target을 넣지 말라는 이야기가 있다

이유인 즉슨

 

a 태그의 새창 띄우기

현재 HTML의 활성 표준인 XHTML 표준(strict) 명세에는 target 이라는 속성이 폐기(deprecated)되었으며 strict DTD를 사용하는 경우 target 속성은 더이상 유효하지 않습니다. 이것은 링크의 타겟 프레임을 사용자가 직접 제어하도록 유도하기 위한 방침이며 사용자의 의지와 관계없이 강제로 새창을 띄우는 것이 합리적인 방식이 아니라는 것을 의미합니다. 사용자는 Ctrl+Click, Shift+Click 등의 단축키를 이용하여 선택적으로 새창을 띄울 수 있습니다. target 속성으로 하여금 사용자의 의사에 반하는 새창 띄우기 관행은 사라져야 함이 옳습니다. 한편 현재 대부분의 웹페이지 제작자들이 사용하고 있는 transitional DTD를 사용하는 경우 target 속성을 여전히 유효하게 취급하고 있으므로 새창을 띄우는 것이 전혀 금기시 되는 상황은 아닙니다. 다만 그것이 불합리한 방식이며 링크 타겟에 대한 선택권을 점진적으로 사용자에게 돌려주도록 바꿔 나아가야 할 것입니다. 새창이 부담스러운 열악한 PC 사용자를 생각해서라도 그것이 맞고 이것은 접근성이슈인 동시에 사용성 이슈이기도 합니다.

 

 

이란다...

맞는말 같다..

좀 복잡한 사이트이 경우 2페이지이상 띄우면 문제가 될경우가 있다

만약 셀렉트박스로 사이트를 띄우는것이 아니라면

target을 주지 않는것이 맞지 않을가 싶다.

Posted by 삽지리
,

알고보니 맞지 않는 일자가 들어갈경우 이런일이 생긴다.

 

예를 들면

2008-04-31 << 과 같이 존재하지 않는 날짜를 넣으려고 할경우..

Posted by 삽지리
,

<html>
<head>
<script language='javascript' type='text/javascript'>
    function unload()
    {
  alert("unload 됩니다.")       

  if (self.screenTop > 9000) {
  // 브라우저 닫힘
  alert("브라우저가 닫힘.")
  } else {
   if (document.readyState == "complete") {
   // 새로고침
   alert("새로고침")
   } else if (document.readyState == "loading") {
   // 다른사이트로 이동
   alert("다른사이트로 이동");
   }
  }

    }
</script>
</head>
<body onunload="unload()">
 <a href="http://www.naver.com"> 네이버 </a>
</body>
</html>

 

 

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

 

오페라,사파리에서는 페이지 이동시에만 unload 이벤트가 발생한다.

 

파폭,익스는 3가지 이벤트를 다 잡아내지만 document.readyState가 표준 속성이 아니라서 파폭은 onunload이벤트만 잡아낸다.

 

Posted by 삽지리
,

C:\WINDOWS\system32\drivers\etc 에 있는 hosts 파일을 수정하려고 했는데..

안보여..

 

그래서 폴더옵션에서

파일 및 폴더 > 보호된 운영 체제 파일 숨기기(권장) 

이놈을 체크 풀고

숨김 파일 및 폴더 표시

를 했다.

 

그런데도 수정이 안돼..

알고보니 에디트 플러스로 열었더니 수정이 안된다..

그래서 노트패드로 열었더니 수정이 된다.

흠냥 -_-

Posted by 삽지리
,

체크 1 :

tracert 해당사이트주소

를 입력하였는데 중간에서 멈춘다.

다른사이트는 괜찮은데..

 

체크 2:

직접 공유기를 사용하지 않고 연결시에는 공공기관접속이 된다.

 

 

원인 ? 잘 모르겠다.

하지만 해결방법은

 

인터넷 연결성정에서 mac주소변경부분 체크박스를 풀거나 체크를 해서

외부 ip를 바꾸니 되었다..

 

이유는??

나도 잘 모르겠다 흠좀무

Posted by 삽지리
,

바로바로바로

도구 > 인터넷 옵션 > 고급 > 인쇄 > 배경색 및 이미지 인쇄를 체크 않해서 그렇다는거..

Posted by 삽지리
,

이클립스로 commit중에

  dev: cvs [server aborted]: Failed to obtain lock on mail.gif,v

 

이런에러가 떴다..

cvs서버 서비스와 락 서비스 stop하고 다시 start했더니 되네...

 

------

 dev: cvs server: Up-to-date check failed for `antispam/btn_back.gif'
  dev: cvs [server aborted]: correct above errors first!

 

이런메시지가 떳다

리플래쉬하고 다시 하니깐 잘된다.

----------

 

해결책은 위에것이 아니고.

실제로는 서버문제인듯

서버가 2003에 팬3..

한번에 3천개정도의 파일을 커밋하면 문제가 생긴다.

문제인 즉슨 파일이 커밋은 됐는데 내 로컬 피시의 파일에서 cvs 버전업이 안되는것..

그래서 또 커밋하라고 뜬다..

거기다가 cvs서버와 파일비교를 하면 충돌나거나 혹은 커밋이 아직도 안된파일이 있다고 한다.

이에 굴하지 않고 리플래쉬 하면..

죄다 충돌..

귀찮아서 로컬에 있는 파일 다지우고 업데이트 받았다

오버라잇 업뎃을 않한이유는 thumbs.db파일이 충돌시 오버라잇 업뎃하면..

에러가 떨어진다 제길슨

Posted by 삽지리
,

이것저것 알아봤는데

asx파일을 생성시켜 이걸 읽어들이는 방법이 제일 무난하다고 생각

java.io를 이용하여 asx생성을 하고 javascript 에서는 특정 asx파일만 읽어들이게 한다.

 

개선의 여지가 많다..

한개의 재생목록이 아닌 사용자별로 각각 다른 재생목록필요시 문제가 될수있다..

'개인적인 프로그램 > JAVA/JSP' 카테고리의 다른 글

request 라인단위로 읽기  (0) 2011.10.26
java 썸네일 thumbnail  (0) 2011.10.26
흠 static{} 이걸 왜 쓰는걸가?  (0) 2011.10.26
CalendarUtil을 만들면서..  (0) 2011.10.26
util을 만들면서...  (0) 2011.10.26
Posted by 삽지리
,

왜 이걸 몰랐을까? 라는 생각이 든다.

창의 크기를 줄이고 늘렸을때 특정 엘리먼트의 크기가 변해야되는 일이 있었을때

내가 생각한건 setinterval 함수로 계속 체크를 해주는 방법이였다.

벗뜨 onresize라는 이벤트가 있었으니.

다음은 msdn에서 퍼온것이다.

여기서 놀란것은 난 window.onresize 만 생각했는데

div.onresize도 있넴.. 흠좀무

출처 : http://msdn2.microsoft.com/en-us/library/ms536959(VS.85).aspx

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

onresize Event

Fires when the size of the object is about to change.

Syntax

Inline HTML <ELEMENT onresize = "handler" ... > All platforms
Event property object.onresize = handler JScript only
object.onresize = GetRef("handler") Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = object EVENT = onresize> Internet Explorer only

Event Information

Bubbles No
Cancels No
To invoke Change the height or width of the object.
Default action No default action.

Event Object Properties

Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query the event object for the following event properties.

Available Properties

altKey Sets or retrieves a value that indicates the state of the ALT key.
altLeft Sets or retrieves a value that indicates the state of the left ALT key.
clientX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
clientY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
ctrlKey Sets or retrieves the state of the CTRL key.
ctrlLeft Sets or retrieves the state of the left CTRL key.
offsetX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the object firing the event.
offsetY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event.
returnValue Sets or retrieves the return value from the event.
screenX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the user's screen.
screenY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the user's screen.
shiftKey Sets or retrieves the state of the SHIFT key.
shiftLeft Retrieves the state of the left SHIFT key.
srcElement Sets or retrieves the object that fired the event.
type Sets or retrieves the event name from the event object.
x Sets or retrieves the x-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.
y Sets or retrieves the y-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.

Remarks

The onresize event fires for block and inline objects with layout, even if document or CSS (cascading style sheets) property values are changed. Objects have layout when measurements such as the height and width attributes are set, or when the position of the object is set. Intrinsic objects, such as button, and windowed objects, such as window and iframe, fire as expected. This event does not fire for files with embedded controls.

Resizing HTML applications also fires the onresize event.

Standards Information

There is no public standard that applies to this event.

Applies To

A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, CUSTOM, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, FRAME, hn, HR, I, IMG, INPUT type=button, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, window, XMP

 

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

Posted by 삽지리
,

간단히 말해서

상위 엘리먼트에 overflow: auto 를 줬다

참조 :

http://hyeonseok.com/soojung/web/2005/03/07/123.html

그런데 ie6에서 상위엘리먼트가 하위를 덮어서 하위레이어가 안보인다.

이이유가 haslayout과 관련된 버그란다..

그래서 다시 그 상위엘리먼트에 zoom:1;을 주었다

참조 :

http://crowelee.wordpress.com/2007/01/26/ie-css-bug-fix-hack/

 

http://stophobia.tistory.com/90

Posted by 삽지리
,