script.aculo.us는 prototype 프레임워크 기반으로 만들어진 효과를 위한 라이브러리입니다. 여기에서 사용할 수 있는 효과는 다양한데, 여기서는 중요한 것 몇 가지를 직접 하드코딩으로 알아보도록 하겠습니다. 자세한 것은 script.aculo.us의 레퍼런스를 참고하시면 도움이 될 것 같네요 ^^

주) 먼저 prototype과 effect.js를 로드하는 것 잊지 마시기 바랍니다!
<script src="http://fs.textcube.com/blog/0/1892/skin/temp/images/js_prototype.jpeg" type="text/javascript"></script>
<script src="http://fs.textcube.com/blog/0/1892/skin/temp/images/js_effects.jpeg" type="text/javascript"></script>



Effect.Morph

In publishing and graphic design, lorem ipsum is the name given to commonly used placeholder text to demonstrate the graphic elements of a document or visual presentation, such as font, typography, and layout. Substituting this dummy text for meaningful content should not be confused with "greeking". Even though using "lorem ipsum" often arouses curiosity due to its resemblance to classical Latin, it is not intended to have meaning. Where text is visible in a document, people tend to focus on the textual content rather than upon overall presentation, so publishers use lorem ipsum when displaying a typeface or design in order to direct the focus to presentation. "Lorem ipsum" also approximates a typical distribution of spaces in English
new Effect.Morph('ex0', {style:'background:#fff; color:#ccc; border-width:3px; border-color:#000;', duration:2.0});

Effect.Fade/Appear

In publishing and graphic design, lorem ipsum is the name given to commonly used placeholder text to demonstrate the graphic elements of a document or visual presentation, such as font, typography, and layout. Substituting this dummy text for meaningful content should not be confused with "greeking". Even though using "lorem ipsum" often arouses curiosity due to its resemblance to classical Latin, it is not intended to have meaning. Where text is visible in a document, people tend to focus on the textual content rather than upon overall presentation, so publishers use lorem ipsum when displaying a typeface or design in order to direct the focus to presentation. "Lorem ipsum" also approximates a typical distribution of spaces in English
Effect.Fade Effect.Appear Effect.Appear("ex1", {duration:0.5})

Effect.BlindUp/BlindDown

In publishing and graphic design, lorem ipsum is the name given to commonly used placeholder text to demonstrate the graphic elements of a document or visual presentation, such as font, typography, and layout. Substituting this dummy text for meaningful content should not be confused with "greeking". Even though using "lorem ipsum" often arouses curiosity due to its resemblance to classical Latin, it is not intended to have meaning. Where text is visible in a document, people tend to focus on the textual content rather than upon overall presentation, so publishers use lorem ipsum when displaying a typeface or design in order to direct the focus to presentation. "Lorem ipsum" also approximates a typical distribution of spaces in English
Effect.BlindUp Effect.BlindDown

Effect.ScrollTo

In publishing and graphic design, lorem ipsum is the name given to commonly used placeholder text to demonstrate the graphic elements of a document or visual presentation, such as font, typography, and layout. Substituting this dummy text for meaningful content should not be confused with "greeking". Even though using "lorem ipsum" often arouses curiosity due to its resemblance to classical Latin, it is not intended to have meaning. Where text is visible in a document, people tend to focus on the textual content rather than upon overall presentation, so publishers use lorem ipsum when displaying a typeface or design in order to direct the focus to presentation. "Lorem ipsum" also approximates a typical distribution of spaces in English
Effect.ScrollTo Effect.ScrollTo("ex3", {duration:0.5})

Effect.Highlight

In publishing and graphic design, lorem ipsum is the name given to commonly used placeholder text to demonstrate the graphic elements of a document or visual presentation, such as font, typography, and layout. Substituting this dummy text for meaningful content should not be confused with "greeking". Even though using "lorem ipsum" often arouses curiosity due to its resemblance to classical Latin, it is not intended to have meaning. Where text is visible in a document, people tend to focus on the textual content rather than upon overall presentation, so publishers use lorem ipsum when displaying a typeface or design in order to direct the focus to presentation. "Lorem ipsum" also approximates a typical distribution of spaces in English
new Effect.Highlight("ex4", { startcolor:"#ffffff", endcolor:"#000000", restorecolor:"#f0f0f0", duration:3 })

복합 효과 [이른바 플래시 킬러]

In publishing and graphic design, lorem ipsum is the name given to commonly used placeholder text to demonstrate the graphic elements of a document or visual presentation, such as font, typography, and layout. Substituting this dummy text for meaningful content should not be confused with "greeking". Even though using "lorem ipsum" often arouses curiosity due to its resemblance to classical Latin, it is not intended to have meaning. Where text is visible in a document, people tend to focus on the textual content rather than upon overall presentation, so publishers use lorem ipsum when displaying a typeface or design in order to direct the focus to presentation. "Lorem ipsum" also approximates a typical distribution of spaces in English
Effect.tagifyText('ex5'); Effect.multiple('ex5', Effect.Fade, { speed:0.05, afterFinishInternal: Prototype.emptyFunction });

그 외 Effect.Move라든가 Effect.Opacity, Effect.Toggle, Effect.Queues 같은 유용한 함수들이 더 많이 있지만, 여기서는 일단 화려하면서 보편적으로 많이 쓰이는 Effect 매서드를 이정도까지만 알아보겠습니다. 더 많은 메서드는 script.aculo.us 레퍼런스에서 보실 수 있습니다.

댓글을 달아 주세요

  1. BlogIcon 2009/05/18 00:46
     addr - mod/del - rep

    이런때 꼭 한번 말해보고 싶었던게 있는데.. 해봐도 될런지 모르겠네요.



    .....그게 뭐죠? 먹는건가요? 우적우적... (...)

    ..죄송-

    • BlogIcon 쿠나 2009/05/18 01:16
       addr - mod/del - rep

      저도 이런 글 써서 죄송해요 (..).
      삽질 했으면 꼭 결과물을 남겨야 직성이 풀리는 요상한 근성을 가진 사람이라.. [응?]

  2. BlogIcon 影猫 2009/05/18 13:03
     addr - mod/del - rep

    좌절...ㅠ.ㅠOTL

  3. BlogIcon kimatg 2009/05/18 15:59
     addr - mod/del - rep

    전 처음 접한게 jQuery라 그런지는 모르겠지만 prototype나 mootools보다는 이쪽이 더 좋아보이더군요 ㅎㅎ;;

    셋 다 강력한 라이브러리임은 틀림없어요. :)

    • BlogIcon 쿠나 2009/05/18 21:02
       addr - mod/del - rep

      jQuery라.. 결국 모두 prototype에서 파생되긴 했지만 [ur=http://equinox.tistory.com]아크히츠님[/ur]도 꽤 극찬하시던 라이브러리인데.. 이거 어지간히 흥미로운 라이브러리인데요. 조만간 또 공부해 봐야겠네요 ^^.

  4. BlogIcon Bardisch 2009/05/19 17:04
     addr - mod/del - rep

    이제 막 프로토타입 입문한 바보는 그저 머엉...

< 1 ... 375 376 377 378 379 380 381 382 383 ... 832 > Top