Skip to main content
Inspiring
Mar 14, 2023 12:50 PM UTC
Answered

ClickTag code removes stage colour

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.

This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
Mar 15, 2023 2:20 PM UTC

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>


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>

7 replies

kglad
Community Expert
Community Expert
Mar 14, 2023 2:38 PM UTC

is window.clickTag defined?

Translate
Inspiring
Mar 14, 2023 3:18 PM UTC

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
kglad
Community Expert
Community Expert
Mar 14, 2023 3:30 PM UTC

where's your canvas color tag?

Translate