Forum Moderators: open
<div name="a" style="background-color:#000" onhover"replace_style()"></div>
How would I reference the style tag in order to replace it (or specifically the bgcolour attribute here), I just want to change the colour of it upon hovering.
<div name="a" class="plain"
onMouseOver="this.className='special'" onMouseOut="this.className='plain'">{whatever)</div>
Of course, you must declare your styles (in the head or a stylesheet):
.plain {background-color:#000; color:#fff; font-weight:bold;}
.special {background-color:#ff0; color:#000;}
A number of authors have agreements with their publishers to allow them to publish their books (or earlier editions) on the Web. If you have Windows, the Compiled Help File (.chm) format is just dandy.
Hunt around Google with the addition: filetype:chm
eg javascript filetype:chm
Goodman's "Definitive Guide" (4th ed) is one of the things you'll quickly find.
Get hold of Microsoft's JScript5.5 documentation too. (There is a 5.6, but I always find an error in it)
warning CHM files probably have greater privileges on your PC. Who knows if there's some evil weirdo baiting his hook and waiting to catch you. I always explore up through the directory hierarchy where a chm file is situated, just to see if the site looks kosher, and perhaps Google it's keywords against "virus", to see if anything comes up. So far, my PC'ssS ABsoluteLy
f
I
N
e.