[Javascript] Combining Behaviors/Effects
Paul Novitski
paul at juniperwebcraft.com
Tue Oct 4 16:15:32 CDT 2011
At 10/4/2011 09:06 AM, Tedd Sperling wrote:
>Given this example:
>
>http://www.webbytedd.com/test/
>
>As explained in the example, can these two behaviors/effects be combined?
>
>In short, I would like to create a single "fade-cycle image
>replacement" technique. Both behaviors use the background image, but
>I can't seem to master the problem just yet. My current code and
>images are there for your review.
Hi Tedd,
This shouldn't be difficult. The fade-cycle routine uses the array
gblImg() to point to the images it toggles between. I'd try giving it
two such arrays, e.g. gblImg_normal() and gblImg_hover(), set gblImg
equal to gblImg_normal, and on hover set gblImg equal to gblImg_hover.
Regards,
Paul
__________________________
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
More information about the Javascript
mailing list