« Previous : 1 : ... 21 : 22 : 23 : 24 : 25 : 26 : 27 : 28 : 29 : ... 33 : Next »
이미지
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/12/16 16:34 2004/12/16 16:34
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/316

지정된 갯수의 이미지가 순서를 바꾸면서 페이딩되며 나타납니다




J@sko Sample Script
























크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/12/16 16:32 2004/12/16 16:32
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/315

이미지
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/12/16 13:27 2004/12/16 13:27
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/314

여러장의 이미지를 책장을 넘기듯이 보여주는 이미지 슬라이드 스크립트 입니다.
각 이미지별로 링크를 걸 수도 있는 스크립트 입니다






















크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/12/16 11:49 2004/12/16 11:49
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/313

사업자 등록번호 체크

function reg_no_check()
{
var chkRule = "137137135";
var ThisVal1=document.form1.social_no1.value;
var ThisVal2=document.form1.social_no2.value;
var ThisVal3=document.form1.social_no3.value;

var strCorpNum = ThisVal1 + ThisVal2 + ThisVal3; // 사업자번호 10자리
var step1, step2, step3, step4, step5, step6, step7;

step1 = 0; // 초기화

for (i=0; i<7; i++)
{
step1 = step1 + (strCorpNum.substring(i, i+1) *chkRule.substring(i, i+1));
}

step2 = step1 % 10;
step3 = (strCorpNum.substring(7, 8) * chkRule.substring(7, 8))% 10;
step4 = strCorpNum.substring(8, 9) * chkRule.substring(8, 9);
step5 = Math.round(step4 / 10 - 0.5);
step6 = step4 - (step5 * 10);
step7 = (10 - ((step2 + step3 + step5 + step6) % 10)) % 10;

if (strCorpNum.substring(9, 10) != step7) // 결과 비교 판단
{
alert("사업자 등록 번호에 이상이 있습니다.

확인하시고 다시 입력해
주세요. ")
document.form1.social_no1.value = "";
document.form1.social_no2.value = "";
document.form1.social_no3.value = "";
document.form1.social_no1.focus();
return false;
}
return true;
}
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/12/14 13:45 2004/12/14 13:45
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/61

주민 번호 체크

function chk_social_no(jumin1,jumin2)
{
if ((jumin1.length != 6) || (jumin2.length != 7))
{
return false;
}
else
{
a = jumin1.substring( 0, 1) * 2;
b = jumin1.substring( 1, 2) * 3;
c = jumin1.substring( 2, 3) * 4;
d = jumin1.substring( 3, 4) * 5;
e = jumin1.substring( 4, 5) * 6;
f = jumin1.substring( 5, 6) * 7;
g = jumin2.substring(0, 1) * 8;
h = jumin2.substring(1, 2) * 9;
i = jumin2.substring(2, 3) * 2;
j = jumin2.substring(3, 4) * 3;
k = jumin2.substring(4, 5) * 4;
l = jumin2.substring(5, 6) * 5;

pivot = jumin2.substring(6,7);
sum = a + b + c + d + e + f + g + h + i + j + k + l;
modulus = sum % 11;
end_number = 11 - modulus;

if (end_number == 11)
{
end_number = 1;
}
else if (end_number == 10)
{
end_number = 0;
}
else
{
end_number = end_number;
}

if (pivot != end_number)
{
return false;
}
else
{
return true;
}
}
}
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/12/14 13:45 2004/12/14 13:45
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/60

회원가입 아이디 영문만.

function id_check(obj)
{
var login_id = obj.value;
var ascii, i;

if (login_id == "")
{
return false;
}

for (i=0;i < login_id.length ;i++)
{
ascii = login_id.charCodeAt(i);
if ((i==0) && ((ascii < 65) || (ascii > 122)))
{
alert("첫 글자는 영문자만 가능합니다.");
obj.focus();
return false;
}
else if (ascii > 122)
{
alert("한글을 비롯한 특수문자는 사용할 수 없습니다.");
obj.focus();
return false;
}
}

if (login_id.length <= 3)
{
alert("ID는 4자 이상이어야 합니다.");
obj.focus();
return false;
}
return true;
}
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/12/14 13:44 2004/12/14 13:44
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/59

function cartin(theform)
{
var str = "";
var leng =theform.elements.length -1;
for( var i=0; i var ele = theform.elements[i];

if(eval("ele.checked") == true && i != leng) { // "-" 구분자로 연결해서 보낸
다.
str += ele.value +"-";
}
else if(eval("ele.checked") == true && i == leng) {
str += ele.value;
}
}
cart.action="cartin.php?pnos="+str;
cart.submit();
}



[쇼핑 카트에 담기]
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/12/06 18:50 2004/12/06 18:50
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/58

4단 selectbox









앞의 select를 선택하면 뒤에 select의 option값들이 변합니다.

구분



구분1


구분2


구분3



크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/11/12 11:53 2004/11/12 11:53
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/312

Dual Select Box













Select SubList:





크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/11/12 11:51 2004/11/12 11:51
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/311

« Previous : 1 : ... 21 : 22 : 23 : 24 : 25 : 26 : 27 : 28 : 29 : ... 33 : Next »

블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2024/05   »
      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  
Statistics Graph

Site Stats

Total hits:
197872
Today:
381
Yesterday:
379