My Code looks somthing like this
when i hover on the icon i can see the message on click i am changing the
properties, as it shows, will this work
<script>
function sayHello() {

   $.fn.cluetip.defaults.sticky=true;
   $.fn.cluetip.defaults.activation='focus';
   document.getElementById("test12345").focus();
  }
</script>

<a class="title"  title="Test the clue Tip|Tip: Test the clue Tip.Test the
clue Tip.Test the clue Tip." href="#"  id="test12345"
onclick="javascript:sayHello()" ><img src="test.png"></a>

On Mon, Feb 2, 2009 at 1:02 AM, Ricardo Tomasi <ricardob...@gmail.com>wrote:

>
> Ah that's quite confusing mark-up. A <dt> element can only contain
> inline elements, certainly not divs and other definition lists. Nested
> definition lists make no sense! I couldn't find the problem.
>
> Try $(this).parents('dl').slice(1) or $(this).parents('dl').slice
> (0,-1), that will probably work.
>
> cheers,
> - ricardo
>
> On Feb 1, 10:57 pm, Garito <gar...@gmail.com> wrote:
> > Gracias, Ricardo!
> > I change the code with the complete test case for my issue
> >
> > Sorry for the identation but the original code is generated and I copy/
> > paste with firebug
> >
> > If I'm not wrong, with the selector 'dl:not(:last)' SITE dl is
> > incorrect in the returned list because is the last dl (if not 'dl'
> > will be equal to 'dl:not(:last)')
> >
> > am I confused or there is a bug?
> >
> > Thanks!
> >
> > On 1 feb, 21:07, Ricardo Tomasi <ricardob...@gmail.com> wrote:
> >
> > >http://jquery.nodnod.net/cases/85
> >
> > > Parece ok aqui. Pode ser alguma outra coisa na tua página, não dá pra
> > > saber sem ver o html.
> > > --------
> > > Seems to work fine here. Could you post a complete test page showing
> > > this issue?
> >
> > > - ricardo
> >
> > > On Feb 1, 1:25 pm,Garito<gar...@gmail.com> wrote:
> >
> > > > Hi!
> > > > Please, consider this code:
> >
> > > > $.fn.url2 = function(absoluta) {
> > > >                 var slots =
> $(this).parents('dl:not(:last)').map(function() {
> > > >                         return $(".Texto:first", $(this)).text();
> > > >                 });
> > > >                 var slots2 = $(this).parents('dl').map(function() {
> > > >                         return $(".Texto:first", $(this)).text();
> > > >                 });
> > > >                 return slots.get().join("/") + ' -- ' +
> slots2.get().join("/");
> > > >         };
> >
> > > > The funny thing of this code is that slots and slots2 have the same
> > > > items
> > > > Could you point me why slots put the last dl?
> >
> > > > I suppose that dl:not(:last) retrieves all the parents except the
> last
> > > > one but this don't work
> >
> > > > Thanks!

Reply via email to