View Review Details


Book:   Designing with JavaScript
Subject:   That's Magic!
Date:   2004-10-12 03:08:48
From:   Neil Pugh
Rating:  StarStarStarStarStar

I'm a Computer Science student and while using this book to learn Javascript rollovers, i came across a very poorly explained piece of code.


Page 108, "... use the eval() function to combine the image name and the "on" suffix; this is just a bit of required JavaScript magic that makes this script work properly."


Utter rubbish, there is nothing magical about computers or programming languages. Could someone please kindly explain why i've been instructed to create Rollovers this way, it seems like a completely dodgy method as well as explanation.


See larger cover
Browse within this book