l

이런프로그램도 제작이 가능활까요?

· 2010-11-03 (수) 17:34:07 · 1949 · 3
작은창에

텍스트창 하나

버튼 두개개 있고

생성하기 버튼을 누르면 텍스트창에 랜덤으로 숫자,영어가 조합된 10자리정도 텍스트가 나오고

복사하기 버튼을 누르면 다른곳에 붙여넣기 할수있도록 복사되는방식인데

만약 제작을 한다고 하면 이런건 제작비용이 얼마나 나올까요;;?
|

댓글 3개

2010-11-03 (수) 18:48:54
돈십만원 쥐어 주시면 제가 10분안에 만들어 드리겠습니다....
ㅜㅜ 공부하시면 쉽습니다
<script>
function RndStr() {
this.str = '';
this.pattern = /^[a-zA-Z0-9]+$/;

this.setStr = function(n) {
if(!/^[0-9]+$/.test(n)) n = 0x10;
this.str = '';
for(var i=0; i<n-1; i++) {
this.rndchar();
}
}

this.setType = function(s) {
switch(s) {
case '1' : this.pattern = /^[0-9]+$/; break;
case 'A' : this.pattern = /^[A-Z]+$/; break;
case 'a' : this.pattern = /^[a-z]+$/; break;
case 'A1' : this.pattern = /^[A-Z0-9]+$/; break;
case 'a1' : this.pattern = /^[a-z0-9]+$/; break;
default : this.pattern = /^[a-zA-Z0-9]+$/;
}
}

this.getStr = function() {
return this.str;
}

this.rndchar = function() {
var rnd = Math.round(Math.random() * 1000);
if(!this.pattern.test(String.fromCharCode(rnd))) {
this.rndchar();
} else {
this.str += String.fromCharCode(rnd);
}
}
}

var rndstr = new RndStr();

rndstr.setType('a1');
rndstr.setStr(11);
document.write(rndstr.getStr() + "<br />");

rndstr.setType('A1');
rndstr.setStr(11);
document.write(rndstr.getStr() + "<br />");
</script>
이미 러셀러 파트너 베너 시스템에 있는 기능이라죠?ㅎㅎㅎㅎ
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

203,117건
+
제목 글쓴이 날짜 조회
10-11-03 조회 1,926
10-11-03 조회 1,537
10-11-03 조회 1,915
10-11-03 조회 1,876
10-11-03 조회 2,090
10-11-03 조회 1,911
10-11-03 조회 1,948
10-11-03 조회 2,124
10-11-03 조회 1,827
10-11-03 조회 1,924
10-11-03 조회 2,031
10-11-03 조회 1,887
10-11-03 조회 2,097
10-11-03 조회 1,950
10-11-03 조회 1,817
10-11-03 조회 1,463
10-11-03 조회 2,385
10-11-03 조회 2,487
10-11-03 조회 1,980
10-11-03 조회 1,884