5 include('/elements/init_overlib.html')
7 include( '/elements/popup_link.html', { #hashref or a list, either way is fine
10 'action' => 'content.html', # uri for content of popup
11 'label' => 'click me', # text of <A> tag
14 'actionlabel => 'You clicked', # popup title
20 'closetext' => 'Go Away', # the value '' removes the link
23 'aname' => "target", # link NAME= value, useful for #targets
24 'target' => '_parent',
28 % if ($params->{'action'} && $label) {
29 <A HREF="javascript:void(0);"
30 onClick="<% $onclick %>"
31 <% $params->{'aname'} ? 'NAME="'. $params->{'aname'}. '"' : '' %>
32 <% $params->{'target'} ? 'TARGET="'. $params->{'target'}. '"' : '' %>
38 if (ref($_[0]) eq 'HASH') {
39 #$params = { %$params, %{ $_[0] } };
42 #$params = { %$params, @_ };
46 my $label = $params->{'label'};
47 my $onclick = include('/elements/popup_link_onclick.html', $params);