Re: Thumbnail gallery without tables?
"Eric Bohlman" <ebohlman@earth link.net> wrote in message
news:Xns949A971 AC1ECDebohlmano msdevcom@130.13 3.1.4...[color=blue]
> "Andrew Urquhart" <reply_via_cont act_page@websit e_in.sig> wrote in
> news:HKF_b.2618 $Vv.1980@newsfe 2-gui.server.ntli .net:
>[color=green]
> > 2. This gallery has a DHTML-based display mechanism (for those that
> > support it, for those that don't there's an alternative) so each[/color][/color]
image[color=blue][color=green]
> > has a rather large onclick handler attached that really beefs-up the
> > markup.[/color]
>
> You can probably refactor your code to achieve a large space saving.[/color]
It[color=blue]
> sounds to me like there's a whole lot of code duplicated in each[/color]
handler;[color=blue]
> figure out what's common, write functions with parameters to do the[/color]
common[color=blue]
> stuff, and have the individual handlers simply call the functions with[/color]
the[color=blue]
> right parameters. That way the common code appears in only one place
> rather than duplicated for every image.[/color]
Hi Eric, if you _look_ you'll see that that is exactly how it already
works.
--
Andrew Urquhart
Reply: https://www.andrewu.co.uk/about/cont...sgroup_althtml
"Eric Bohlman" <ebohlman@earth link.net> wrote in message
news:Xns949A971 AC1ECDebohlmano msdevcom@130.13 3.1.4...[color=blue]
> "Andrew Urquhart" <reply_via_cont act_page@websit e_in.sig> wrote in
> news:HKF_b.2618 $Vv.1980@newsfe 2-gui.server.ntli .net:
>[color=green]
> > 2. This gallery has a DHTML-based display mechanism (for those that
> > support it, for those that don't there's an alternative) so each[/color][/color]
image[color=blue][color=green]
> > has a rather large onclick handler attached that really beefs-up the
> > markup.[/color]
>
> You can probably refactor your code to achieve a large space saving.[/color]
It[color=blue]
> sounds to me like there's a whole lot of code duplicated in each[/color]
handler;[color=blue]
> figure out what's common, write functions with parameters to do the[/color]
common[color=blue]
> stuff, and have the individual handlers simply call the functions with[/color]
the[color=blue]
> right parameters. That way the common code appears in only one place
> rather than duplicated for every image.[/color]
Hi Eric, if you _look_ you'll see that that is exactly how it already
works.
--
Andrew Urquhart
Reply: https://www.andrewu.co.uk/about/cont...sgroup_althtml
Comment