the intent is to display the first query result in full. When the
table area is moused over, then display all of the other results.
Once you mouseout of the table area, only the first result should be
showing.
If I have your intention incorrect, please let me know and I will try
to assist further.
William
On Mar 14, 2008, at 11:08 AM, Don L wrote:
> William,
>
> Would the intent of the following code extract each paragraph from
> ONE/SAME row, hence, show/display the First Paragraph by default,
> then use OnMouseOver, OnMouseOut event handlers to show the rest
> paragraph as well?
>
> <tr><td valign="top" colspan="3"><div id="row#currentrow#"
> class="#iif(currentrow neq 1, de('hidediv'), de('showdiv'))
> #"><b>#title#</b><br/>
> #ParagraphFormat(description)#</div></td>
> </tr>
>
> Thanks.
>
> Don
>> Not tested, but should at least get you started.
>>
>> <style>
>> .showdiv {visibility: visible; display: block;}
>> .hidediv {visibility: hidden; display: none;}
>> </style>
>>
>> <table>
>> <div onMouseOver="showMore()" onMouseOut="showLess()">
>> <cfoutput query="getStuff">
>> <tr><td valign="top" colspan="3"><div id="row#currentrow#"
>> class="#iif(currentrow neq 1, de('hidediv'), de('showdiv'))
>> #"><b>#title#</b><br/>
>> #ParagraphFormat(description)#</div></td>
>> </tr>
>> </cfoutput>
>> </div>
>> </table>
>> <script>
>> function showMore() {
>> for(x=2;x<=#getStuff.recordcount#;x++) {
>> document.getElementById('row' + x).className =
>> "showdiv";
>> }
>> }
>> function showLess() {
>> for(x=2;x<=#getStuff.recordcount#;x++) {
>> document.getElementById('row' + x).className =
>> "hidediv";
>> }
>> }
>> </script>
>>
>> On Mar 14, 2008, at 10:36 AM, D
>>
>>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301311
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4