I’m quite new to coding. I’m coding an Etch-a-sketch (via the Odin Project). Basically, it consists of a grid, which when hovered over, the boxes of the grid will change to a random color. (the container is supposed to keep the same dimensions) Upon loading the page, it starts with a basic grid of 16×16 boxes. The user also has
Tag: setattribute
JS Need help to add href on img
i’m using Innova Content Builder to record my webpage. It’s contains a module called saveimage.php which transforms binary images to jpg files. This works perfectly. Now, i would like to encapsulate these img whith href links, but it doesn’t works. Here is my code : This code is placed into a body onload function. I think it’s a parentality problem.
JavaScript load Images in an Array and Show in Image Source
I created an array of images I then create a function that is linked with a in my html file: My image tag : <img id=”pic” src=”” height=”300″ width=”500″ border=”0″ alt=”image”> This fails to update my img object, i used firebug to look at the DOM and my array is being populated properly but the img src is not be