Windows 7 Gadget Spectrum Analyzer

by Nelson   Last Updated September 11, 2019 18:05 PM

I'm new to programming language. I want to make 16 band spectrum analyzer gadget on windows 7, and I just found similar code in every spectrum analyzer gadget from various sources... the problem is each bar uses the same source of image, that is bar1.png... I want each bar uses different source of image like bar1.png for first bar, bar2.png for second bar, etc... can you help me modify this code, so that each bar uses different source of image? Note: I don't know anything about coding, complete newbie... LOL, please help me.... this is the code that I found :

// EQ band itself
  divGraph.innerHTML += "<div id='divEQpeak" + j + "' style='overflow:hidden; width:" + barWidth +
     "px; top:" + yPos + "px; " + "left:" + xPos + "px;'>" +
     "<img id='imgEQpeak" + j + "' src='" + skinPath + "/peak.png' /></div>";
  // each peak hold
  divGraph.innerHTML += "<div id='divEQband" + j + "' style='overflow:hidden; width:" + barWidth +
     "px; top:" + yPos + "px; " + "left:" + xPos + "px;'>" +
     "<img id='imgEQband" + j + "' src='" + skinPath + "/bar1.png' /></div>";

}

Tags : windows-7


Related Questions



USB Drivers Write to Registry

Updated May 13, 2015 23:02 PM


How do I create a driver for extra buttons?

Updated March 06, 2016 01:02 AM

Experience with Qt on WinRT and Windows Phone

Updated June 02, 2016 08:02 AM