Hey Scott -

If you've already linkified Twitter usernames yourself according to
the pattern used by the @anywhere linkifyUsers() method (@<a
href="...">...</a>, then you can tell hovercards not to linkify as
follows:

twttr.anywhere(function (T) {
  T.hovercards({ linkify: false });
});

If your anchor elements include the @ symbol, and/or use a different
class name, you can configure hovercards as follows:

twttr.anywhere(function (T) {
  T(".YOUR_CLASS_NAME").hovercards({ infer: true });
});

For more, see the docs: http://dev.twitter.com/pages/anywhere_begin#hovercards

- Todd


On Tue, Apr 20, 2010 at 9:09 AM, Furkan Kuru <furkank...@gmail.com> wrote:
>
> I have just added class="twitter-anywhere-user" manually to the links which
> I want to show hovercards.
>
> and just:
>
>  <script type="text/javascript">
>
>   twttr.anywhere(function (T) {
>       T.hovercards();
>   });
> </script>
>
>
> On Tue, Apr 20, 2010 at 6:44 PM, scotth_uk <satsc...@gmail.com> wrote:
>>
>> Hi, been playing with the @anywhere stuff, very excited about this!
>> I know its still a work in progress and things may change, but is
>> there a way to make hovercards() work as normal for onmouseover, but
>> let my javascript handle the onclick event, rather than sending the
>> user off to their twitter profile page?
>>
>> Currently if I link @screenname myself, hovercards() ignores it, so
>> its one or the other.
>>
>> Cheers,
>> Scott
>>
>>
>> --
>> Subscription settings:
>> http://groups.google.com/group/twitter-development-talk/subscribe?hl=en
>
>
>
> --
> Furkan Kuru
>

Reply via email to