This wil put a red/yellow/green box on the page (or Dashboard) with a title. Moving Your mouse over will reveal the text in the Body.
This is intended for status messages.
Name | driftstatus |
|---|---|
Macro Body Processing | Unrendered |
Output format | HTML |
Usage | {driftstatus} |
This still needs a small fix, if You use ' in the texts, javascript will be broken.
Code
## @param System:title=System|type=enum|enumValues=Generel,FMK,NSP,SDN|required=true|desc=Select System
## @param Status:title=Status|type=enum|enumValues=Red,Green,Yellow|required=true|desc=Select Status
## @param Title:Title=Title Text|type=string|required=true|desc=Title Text
<div width=300px onmouseover="document.getElementById('${paramSystem}').style.display='block';" onmouseout="document.getElementById('${paramSystem}').style.display='none';">
<table class=$paramStatus width=100%>
<tr>
<td><b>$paramSystem Driftstatus</b></td>
</tr><tr>
<td>
<font color=black size=2><center>$paramTitle</center></font>
<br>
<font size=1><center>Hold musen over for at se hele teksten</center></font>
<div id=$paramSystem style="display: none;" width=100%>
<br><center>-------------------------<center><br>$body
</div>
</td>
</tr>
</table>
</div>