Instead of hacking imagebox.js, why not use a separate jQuery script
(that you write) to modify your markup so that it's recognized as
default behavior by imagebox?  That way when you upgrade imagebox
versions you don't have to reapply your hacks to imagebox.js.  This
markup modification script would have to be called before imagebox.js
though.  I did something very similar for modifying my markup to work
with Thickbox.

Shane


On 1/16/07, Tim Gossett <[EMAIL PROTECTED]> wrote:
> I love interface.
>
> Imagebox creates a nice little slideshow from a group of links pointing to
> images. Check out the demo on eyecon [1].
>
> I've made a modification to my own copy of imagebox.js. Originally, the
> anchor element's title attribute is used for plain caption text. I wanted to
> use HTML for the caption text, so my modification looks for a span.caption
> within the anchor. If it finds one, it sets the span's inner HTML as the
> caption text. If it doesn't find one, it falls back on the original
> behavior.
>
> See it in action [2]. My demo has captions with the strong, em, strike, br,
> and p elements within; the last one has no span.caption.
>
> What do you think, list? Is there a better way to do this? Does my
> modification break?
>
>
> [1] http://interface.eyecon.ro/demos/imagebox.html
> [2] http://mrgossett.com/jQuery/imagebox
>
> --
> Tim is MrGossett
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>


-- 
---------
Bender: "Amy, you like cute things so I baked you a pony."
---------

http://www.reefs.org - Where reefkeeping begins on the internet.
http://www.advancedaquarist.com - High quality, free monthly publication for
the reef keeping hobbyist.
http://www.aquaristcourses.org - Distance learning courses for the
marine aquarist.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to