On Tue, Dec 16, 2008 at 1:24 PM, designer
<desig...@gwelanmor-internet.co.uk> wrote:
> I expect some may consider this off-topic, though it isn't really :- ).
>
> I recently tried using lightbox and then lightbox++ , the latter because it
> enables flash movies to be presented in the same way as images did in
> lightbox.  However, the big pitfall is that in order to make it work the
> syntax has to be of this form:
>
> <a href="images/gwelanmor.swf" width="600" height="400" rel="lightbox"
> title="Gwelanmor Internet - flash version">
>         <img src="thumbs/tn_flash.jpg" alt="flash page thumbnail"
> width="250" height="147">
> </a>
>
>
> You'll notice that the a href has a width and height specified, but of
> course that won't validate.  I've googled, but found no mention of this. I
> wondered if anyone here has encountered it, or better yet, solved it?
>
> Any bright ideas to solve this non validation?

There's a jQuery plugin called "metadata" that allows you to put these
kinds of options inside the class=" " attribute. An example is on this
page:

http://jqueryjs.googlecode.com/svn/trunk/plugins/metadata/test/index.html

The tags that use a data=" " attribute don't validate, but the ones
that use class=" " seem to validate. Maybe you could try to find a way
to use the class=" " attribute to pass your options to Lightbox++, or
use a similar plugin for jQuery that allows options to be submitted
via the metadata plugin. This way you won't have to rely on putting
incorrect attributes in your tags.

-- 
--
Christian Montoya
christianmontoya.net


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to