버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.
Sv translation
languageko

현재 페이지에서 ‘Text1’이라는 이름을 갖는 텍스트 요소(Text Element)의 폰트 색상(Font Color)을 변경할 수 있습니다.

정보
title참고

요소 이름은 요소 ‘이름 변경 설명’에서 변경할 수 있습니다. 자세한 내용은 다음을 참고하세요. ▶ Web Author 콘텐츠 제작 화면 알아보기

코드 블럭
  <html>
  <head>
    <script src="wplayer-api.1.0.0.js"></script>        
    <script>
      const contentPropertyType = $wp.content.getPropertyType();
      $wp.content.getPage().getElement('Text1').setProperty(contentPropertyType.FONTCOLOR,"rgba(255, 0, 0, 1)");
    </script>
  </head>    
  </html>
  
Sv translation
languageen

Change the font color for the text element named "Text1" on the current page.

정보
titleNote

An element name can be changed from the "name change description" for the element. Refer to the following for details. ▶ Web Author screen layout

코드 블럭
  <html>
  <head>
    <script src="wplayer-api.1.0.0.js"></script>        
    <script>
      const contentPropertyType = $wp.content.getPropertyType();
      $wp.content.getPage().getElement('Text1').setProperty(contentPropertyType.FONTCOLOR,"rgba(255, 0, 0, 1)");
    </script>
  </head>    
  </html>