• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Can I change html bgcolor on html 5 Canvas documents published by Animate 2020?

Explorer ,
Oct 26, 2020 Oct 26, 2020

Copy link to clipboard

Copied

Anyone help me please..

 

In html 5 (Canvas) documents of Animate 2020, although I set up black (or red) on stage color, I see white on html background color.

Html bgcolor is always white.

Can I change html bgcolor on html 5 Canvas document published by Animate 2020?

Is there any way I can match stage color with html background color?

Anyone help me please!

Views

116

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 26, 2020 Oct 26, 2020

Copy link to clipboard

Copied

Of course you can. It's HTML. You can do literally anything to it that you can with any other HTML document.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 26, 2020 Oct 26, 2020

Copy link to clipboard

Copied

Hi.

 

There is.

 

In the beginning of your code, write this down:

document.body.style.backgroundColor = lib.properties.color;

 

Please let us know if you have any further questions.

 

Regards,

JC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 26, 2020 Oct 26, 2020

Copy link to clipboard

Copied

Thank you for your help.

 

Is there any other way I can operate in Animate 2020 to change html bgcolor?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 27, 2020 Oct 27, 2020

Copy link to clipboard

Copied

LATEST

I am sorry that I don't know how to use the above script you gave me..

Let me know how to use the script in specific.. where to insert the script and what is variables..

 

Thank you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines