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, Don L wrote:

> Hi William,
>
> short version
> -------------
> 1. run a qry
>
> 2. display data
>
> <table>
>
>          <cfoutput query="getStuff">
>                  <tr><td valign="top" colspan="3"><b>#title#</b><br/>
>                    #ParagraphFormat(description)#</td>
>                  </tr>                
>          </cfoutput>
> </table>
>
> -- notes:
> the above Description column may have 3 paragraphs but I only want  
> to display the first paragraph when the page is first loaded.  And  
> display/show all content for this row when the cursor is moved over  
> to this window.
>
> Thanks.
>
> Don
>
>> Can you post the code you are using to generate this display
>> currently?  This way we can help you alter it to get the results that
>> you desire.
>>
>> William
>> On Mar 14, 2008, at 9:59 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:301297
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to