Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
Can I use same canvas id to position same graphics in two different position?

I am trying to use the same canvas id for identical drawings, but trying to put them in different positions. It's only letting me position the first graphic.

var display = new drawDisplay("display");
display.pattern = "#";
display.cornerType = 2;
display.displayType = 7;
display.displayAngle = 0;
display.digitHeight = 32;
display.digitWidth = 20;
display.digitDistance = 2;
display.segmentWidth = 3;
display.segmentDistance = 0.5;
display.colorOn = "rgba(255, 255, 255, 0.9)";
display.colorOff = "rgba(0, 0, 0, 0.1)";

draw();

function draw() {
  display.setValue();
  window.setTimeout('draw()', 100);
}
<div style="width: 1796px; height: 184px; position: relative">
  <img src="A24.jpg" usemap="#indbuttonmap">
  <div style="position: absolute; left: 121px; top: 17px; width: 35px; height: 57px">
    <canvas id="display" width="35" height="57"></canvas>
  </div>
  <div style="position: absolute; left: 119px; top: 115px; width: 35px; height: 57px">
    <canvas id="display" width="35" height="57"></canvas>
  </div>
</div>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!