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
21 'title' => 'Hover Text',
24 'aname' => "target", # link NAME= value, useful for #targets
25 'target' => '_parent',
26 'style' => 'css-attribute:value',
27 'html_label' => '<IMG SRC="something.png">', # overrides label
32 % if ($params->{'action'} && $label) {
33 <A HREF="javascript:void(0);"
34 onClick="<% $onclick |n %>"
35 <% $params->{'title'} ? 'TITLE="' . $params->{'title'}. '"' : '' |n %>
36 <% $params->{'aname'} ? 'NAME="'. $params->{'aname'}. '"' : '' |n %>
37 <% $params->{'target'} ? 'TARGET="'. $params->{'target'}. '"' : '' |n %>
38 <% $params->{'style'} ? 'STYLE="'. $params->{'style'}. '"' : '' |n %>
44 if (ref($_[0]) eq 'HASH') {
45 #$params = { %$params, %{ $_[0] } };
48 #$params = { %$params, @_ };
52 my $label = $params->{'label'};
53 $label =~ s/ / /g;
54 $label = $params->{'html_label'} || $label;
55 my $onclick = include('/elements/popup_link_onclick.html', $params);