우울해~~~~~~~!!!!!

NearFondue PopupNotice_plugin
3 일동안 열지 않음 close

script에 해당되는 글 3건

Category : 데이터뱅크/Web
Reg Date : 2006/05/21 15:09
<script language=javascript>

function browserVersion()
{    
    tmp_MSIE = window.navigator.userAgent.indexOf("MSIE");
    if(tmp_MSIE && window.navigator.userAgent.indexOf("SV1") > tmp_MSIE)
    {  
         //This browser is Internet Explorer with SP2.  
         return true;
    }
    else
    {
          //This browser is not Internet Explorer with SP2.
          return false;
    }
}
var xpie_SP2 = browserVersion();
if(xpie_SP2)
{
    //SP2 true...
}
else
{
    //SP2 false...
}
</script>

SP2에선 팝업창을 띄울시 하단의 status바를 포함하여 세로길이를 20pixel 추가.


이올린에 북마크하기(0) 이올린에 추천하기(0)
Writer profile
author image
LonnieNa 입니다. Needlworks에서 Painter에 있습니다.
http://www.needlworks.org
Painter로,
여러분과 나의 세상을 바라보는 시선을 달리합니다.
위로

Category : 데이터뱅크/Web
Reg Date : 2006/05/12 13:36
IE외 브라우저에서 투명도 설정은
opacity: .5;
아래는 IE전용
filter: alpha(opacity=50);
이올린에 북마크하기(0) 이올린에 추천하기(0)
Writer profile
author image
LonnieNa 입니다. Needlworks에서 Painter에 있습니다.
http://www.needlworks.org
Painter로,
여러분과 나의 세상을 바라보는 시선을 달리합니다.
위로

Category : 데이터뱅크/Web
Reg Date : 2006/04/18 22:26
매번 링크 적을 때마다 귀차니즘 이었는데 .. 이거 딱이네..

스크립트로 페이지를 이동시키는 방법은 링크에 href="링크주소"를 걸어주는 방법보다 중복링크가 많을때 상당히 유용합니다.
js파일에 해당링크를 지정해두고 필요할때 꺼내 쓰기만 하면 되니까요 :)
실로 플래시메뉴를 만들때 이같은 방법으로 링크를 지정하면 플래시 파일의 수정없이 스크립트 파일만 간단히 고칠 수 있어 편리합니다.

아래는 문자를 이용하는 방법과 숫자를 이용하는 방법 2가지 예제가 있습니다.
어느것을 쓰셔도 무방하지만 숫자를 이용하는 방법에는 변수가 항상 숫자여야한다는 점을 주의하셔야합니다.

숫자를 이용하는 방법
js파일
function My(num) {
       if ( num == 1)
      {
              location.href="/index.htm"
              return;
       }
       if ( num == 2)
       {
              location.href="/etc/private.htm"
              return;
       }
}


html부분
<a href="My(1);" onfocus="this.blur()" title="기본정보변경">기본정보변경</a>

문자를 이용하는 방법
js파일
function getTop(code) {
         if ( code == "home")
        {
                 location.href="/index.htm"
                 return;
        }
         if ( code == "login")
        {
                 window.open('/login.htm','login','width=400,height=220');
                 return;
         }
}

html부분
<a href="getTop('login');">로그인</a>


* 스크랩 출처
      cm@blog
이올린에 북마크하기(0) 이올린에 추천하기(0)
Writer profile
author image
LonnieNa 입니다. Needlworks에서 Painter에 있습니다.
http://www.needlworks.org
Painter로,
여러분과 나의 세상을 바라보는 시선을 달리합니다.
위로
N퐁듀뮤직
Null