I saw a thread that discussed displaying images in place of text for links as explained by Eliot Lee.
The solution is as follows:
1) Add the following variable in your default.cfg file:
$wwwimage = qq|img src="/dir/image.gif" alt="" width="" height="" border="0"|;
2) Then in the sub html_record routine in the html.pl file, change the following codes:
<a href="$rec{'URL'}">$rec{'URL'}</a>
with the following:
<a href="$rec{'URL'}"><$wwwimage></a>
I can see how this works but how do you only display the image if no value is returned? I am pretty (actually very) new to all this and appreciate any help I get.
Thanks
The solution is as follows:
1) Add the following variable in your default.cfg file:
$wwwimage = qq|img src="/dir/image.gif" alt="" width="" height="" border="0"|;
2) Then in the sub html_record routine in the html.pl file, change the following codes:
<a href="$rec{'URL'}">$rec{'URL'}</a>
with the following:
<a href="$rec{'URL'}"><$wwwimage></a>
I can see how this works but how do you only display the image if no value is returned? I am pretty (actually very) new to all this and appreciate any help I get.
Thanks