5 <& /elements/init_overlib.html &>
7 <& /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',
30 % if ($params->{'action'} && $label) {
31 <A HREF="javascript:void(0);"
32 onClick="<% $onclick |n %>"
33 <% $params->{'aname'} ? 'NAME="'. $params->{'aname'}. '"' : '' |n %>
34 <% $params->{'target'} ? 'TARGET="'. $params->{'target'}. '"' : '' |n %>
35 <% $params->{'style'} ? 'STYLE="'. $params->{'style'}. '"' : '' |n %>
41 if (ref($_[0]) eq 'HASH') {
42 #$params = { %$params, %{ $_[0] } };
45 #$params = { %$params, @_ };
49 my $label = $params->{'label'};
50 $label =~ s/ / /g;
51 my $onclick = include('/elements/popup_link_onclick.html', $params);