나의 성장과정  
Front Page
Tag | Location | Media | Guestbook | Admin   
 
protoload.js

* 기능
- 원하는 때에 (ajax 통신등)로딩이미지 (빙글빙글 이미지)  띄우기 혹은 레이어 띄우기
- 혹은 결제버튼 사용자가 두번 못누르게 화면에 레이어 한장씩 띄울때 등등 적용은 다양할 것이다

*
사용법 (아래 사이트에 친절히)
http://blog.naver.com/eternize?Redirect=Log&logNo=30021887207

* 다운로드 http://aka-fotos.de/protoload/

*
간단 사용법 정리
1. prototype.js protoload.js, protoload.css include하고
2. ${element}.startWaiting();  ${element}.stopWaiting(); 원하는 때에 맞추어 코드만 추가하면됩니다.  
(
시간이나 배경색도 컨트롤 가능합니다)

 

* 해보면서 -_- 경험한 tip

1. prototype.js   1.5 이상

2. css파일 수정이 필요합니다(로딩중 이미지 경로)

3. 자신이 원하는 옵션에 따라서 로딩이미지 생성해줌  ->>>> http://www.ajaxload.info/    (신기신기)

4. ${element}.startWaiting('bigBlackWaiting');  이렇게 인자를 주면 배경색이 검게..  기본은 흰색

5. 엘리먼트 (인풋,셀렉트박스등등) 도 로딩이미지가 뜰수있다는..

6. protoload.js 수정 필수  48라인 근처 주석처리후 코드 추가
   자세한 내용은 http://kingori.egloos.com/3319806 여기서 꼭 보세요.
   안할경우, 많은 레이어를 사용하는 ie에선 적용이 안됩니다.

if (this._waiting) {

offsetValue = findPos( this );
var left = offsetValue[0],
top = offsetValue[1],
width = this.offsetWidth,
height = this.offsetHeight,
l = this._loading;
/* var left = this.offsetLeft,
top = this.offsetTop,
width = this.offsetWidth,
height = this.offsetHeight,
l = this._loading;
*/




BLOG main image
Simple is beatiful!
 Notice
 Category
분류 전체보기 (755)
전직 (0)
일상 (7)
진행중 (6)
3Fs (14)
미정 (3)
Serendipitous! (6)
지르자 : 맥북 (5)
(5)
FaceBook (3)
 TAGS
자바스크립트 커피 laserjet JS HP JavaScript Java 사파리 Debug tomcat 접근지정자 Eclipse 네트워크 DOM URL URLConnection primitive Safari CP1215 color
 Calendar
«   2024/04   »
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
 Recent Entries
 Recent Comments
 Archive
 Link Site
상상할 수 있는 힘이 ..
즐겁게살자
인생의 소중한 꿈
{fly to the ocean.com}
누노의 컴퓨토피아
한RSS
[지인]I can\'t stop. Love. Lo…
[원츄]OK 괜찮아 다 잘 될거야
[원츄]애자일 이야기
[원츄]IBM Developerworks
 Visitor Statistics
Total :
Today :
Yesterday :
rss