You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

trigger using text not an image Created Aug 23, 2010

This thread is solved

Views: 1125     Replies: 3     Last reply Aug 24, 2010  
You must login first before you can use this feature

msealey

Posts: 8

Registered:
Aug 23, 2010

trigger using text not an image

Posted: Aug 23, 2010

Instead of using my equivalent of:

<img src="thumbs/barcelona-pavilion2.jpg" rel="#mies2"/>

as at http://flowplayer.org/tools/demos/overlay/index.html

how can I use text (without a link, since the link tries to go somewhere) as my trigger?

Thanks!

randyfyfe

Posts: 17

Registered:
Aug 17, 2010

» trigger using text not an image

Posted: Aug 23, 2010

Reply to: trigger using text not an image, from msealey
wrap the word(s) you want as the trigger in a span, and change the selector for "overlay()" from:

$("img[rel]").overlay();

to

$("span[rel]").overlay();

You will probably want to give the spans a class like "overlayTrigger" and rewrite the selector with "span.overlayTrigger[rel]"

alternatively, You could use a "link" or anchor element, just don't specify the href attribute.

msealey

Posts: 8

Registered:
Aug 23, 2010

» » trigger using text not an image

Posted: Aug 23, 2010

Reply to: » trigger using text not an image, from randyfyfe
randyfyfe,

Thanks. That's really helpful. Shall give it a try :-)

msealey

Posts: 8

Registered:
Aug 23, 2010

» » » trigger using text not an image

Posted: Aug 24, 2010

Reply to: » » trigger using text not an image, from msealey
Thanks again; works perfectly, randyfyfe :-)

What's the current thinking on (= best way) closing an overlay by clicking elsewhere on the 'main' page - outside it?