Hi Tom,
Effectively, you idea is pretty cool!
If you want to go a step farther in your idea, I can propose that solution!
In html, dynamic is coming with javascript. Then a thing that we can think of is to play with an ID.
We can put an "id" on near everithing html. Suppose that we are using a div. We build it
as if we are allways having a new record set, We need:
- A link pointing to Record page or system page.
<a href="......">- An image to show big alert
<img src="..." alt="..." title="..." />Let mix all this together<div id="record_set">
<p><a href="system.htm"><img src="images/BigAlertButton.png" alt="message if button not available" title="A new record is set - for mouse over button" /></a></p>
</div>Sure you can do it to your own taste, just text, or adding more thing into our
record_set id!
Now, we don't want it when no record is set! Then just add these lines just before
</head><style type="text/css">
/* Hide div record_set until we know if a record is set */
#record_set{visibility:hidden}
</style>We have our record_set div, and we have hide it until end of page.
Now we need Cumulus webtag <#newrecord> (0 if nothing, 1 if record!)
Then, just before </body> we add a little javascript trick:
<script type="text/javascript">
alerts=<#newrecord>;
if(alerts=1) document.getElementById("record_set").style.visibility="visible";
</script>Thats it! alerts is taking value of
<#newrecord> and if 1, it unhide our
id="record_set"If no record is set,
record_set stay hided and take no place!
Them you could hide/show as big as you want, and there is no hole if anything!
Hope you lot of fuj with that trick!
Jacques