You??™ll also notice that each image has onMouseOver and onMouseOut event handlers attached,
and they make use of the imgOver() and imgOut() methods in the RolloversClass instance
(pointed to by the Rollovers variable). These methods take as arguments a reference to a particular
image. The method uses the ID of the
![]()
tag to do a typical JavaScript rollover effect.
There??™s nothing too out of the ordinary here.
CHAPTER 5 n SHARE YOUR KNOWLEDGE: DWIKI, THE DWR-BASED WIKI 209
After that is the markup for the left navigation menu, and you??™ll see that each item is
essentially just like those in the top menu bar. The methods called onClick for each are of
course different, but you??™ll notice they??™re all the same: getArticle(). You see, each of those
items, even though they are in some cases dynamically generated (like the all articles index,
for example), are treated just like any other article is. This was a design decision that greatly
simplified making these things work. As far as the UI is concerned, it??™s simply displaying an
article; it has no idea that it may be something rather different than an article a user might
create (such as the search form, which obviously isn??™t a typical article).
Pages:
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392