Hi everyone, I have a question about homework,
I need to put out a gallery-style image using JavaScript. Note: NOT jQuery. I cannot use jQuery according to the destination outline.
So, there is a grid of images (32 of them, if you are interested), they are all 100x100px thumbnails. Each of them is in its own div, and all this is nested inside another div, for example:
gallery.html
<div id="imageContent">
<div id="img" class="imageWhite"
onclick="fade(1984)"
onmouseover="highlightWhiteFunction(this)"
onmouseout="unHighlightFunction(this)">
<img src="../Media/Thumbs/1984.jpg"/>
</div>
...31 others just like that
</div>
, , . 500 , , . , JQuery ... , , .
, , :
gallery.js
function fade(name) {
var theName = name;
console.debug("Clicked " + theName);
}
, . , , , .
:
, div 500, , / div . , , , JavaScript , .
, , , ( ) , . , , , , , , .
, , .
: NO JQuery!:)