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',
25 'style' => 'css-attribute:value',
29 % if ($params->{'action'} && $label) {
30 <A HREF="javascript:void(0);"
31 onClick="<% $onclick |n %>"
32 <% $params->{'aname'} ? 'NAME="'. $params->{'aname'}. '"' : '' |n %>
33 <% $params->{'target'} ? 'TARGET="'. $params->{'target'}. '"' : '' |n %>
34 <% $params->{'style'} ? 'STYLE="'. $params->{'style'}. '"' : '' |n %>
40 if (ref($_[0]) eq 'HASH') {
41 #$params = { %$params, %{ $_[0] } };
44 #$params = { %$params, @_ };
48 my $label = $params->{'label'};
49 my $onclick = include('/elements/popup_link_onclick.html', $params);