버전 비교

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

...

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>