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

ClickTag code removes stage colour

Contributor ,
Mar 14, 2023 Mar 14, 2023

By a process of elimination, when I add clickTag code to my HTML file, it's removing the stage colour.

 

</head>
<body onload="init();" style="margin:0px;">
<a href="javascript&colon;window.open(window.clickTag)">
<canvas id="canvas" width="250" height="250"></canvas></a>

 

Is there a workaround please?

 

Thank you.

TOPICS
Code , Publish package
721
Translate
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

correct answers 1 Correct answer

Community Expert , Mar 15, 2023 Mar 15, 2023

yes but you have duplicate canvas tags with identical ids, so your encoding is malformed.

 

try:

 

<body onload="init();" style="margin:0;">
<div id="animation_container" style="background-color:rgba(16, 24, 31, 1.00); width:250px; height:250px">

<a href="javascript&colon;window.open(window.clickTag)">
<canvas id="canvas" width="250" height="250" style="position: absolute; display: block; background-color:rgba(16, 24, 31, 1.00);"></canvas>

</a>
<div id="dom_overlay_container" style="pointer-events:

...
Translate
Community Expert ,
Mar 14, 2023 Mar 14, 2023

is window.clickTag defined?

Translate
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
Contributor ,
Mar 14, 2023 Mar 14, 2023

Sorry, do you mean this?

<meta name=”ad.size” content=”width=640,height=480”>
<script type="text/javascript">
var clickTag = "http://www.xyz.com"; </script>

Then, yes.

Translate
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 ,
Mar 14, 2023 Mar 14, 2023

where's your canvas color tag?

Translate
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
Contributor ,
Mar 15, 2023 Mar 15, 2023

Sorry, is part of this the canvas color tag?

 

</head>
<body onload="init();" style="margin:0;">
<a href="javascript&colon;window.open(window.clickTag)">
<canvas id="canvas" width="250" height="250"></canvas></a>
<div id="animation_container" style="background-color:rgba(16, 24, 31, 1.00); width:250px; height:250px">
<canvas id="canvas" width="250" height="250" style="position: absolute; display: block; background-color:rgba(16, 24, 31, 1.00);"></canvas>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:250px; height:250px; position: absolute; left: 0px; top: 0px; display: block;">
</div>
</div>
</body>
</html>

Translate
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 ,
Mar 15, 2023 Mar 15, 2023

yes but you have duplicate canvas tags with identical ids, so your encoding is malformed.

 

try:

 

<body onload="init();" style="margin:0;">
<div id="animation_container" style="background-color:rgba(16, 24, 31, 1.00); width:250px; height:250px">

<a href="javascript&colon;window.open(window.clickTag)">
<canvas id="canvas" width="250" height="250" style="position: absolute; display: block; background-color:rgba(16, 24, 31, 1.00);"></canvas>

</a>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:250px; height:250px; position: absolute; left: 0px; top: 0px; display: block;">
</div>
</div>
</body>

Translate
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
Contributor ,
Mar 15, 2023 Mar 15, 2023

Thank you so much.

Perhaps I need a course in coding...

Translate
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 ,
Mar 15, 2023 Mar 15, 2023
LATEST

you're welcome.

Translate
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