Toggling the border on the CFMEDIAPLAYER tag in ColdFusion

Readability

Toggling the border on the CFMEDIAPLAYER tag in ColdFusion

The fol­low­ing exam­ple shows how you can tog­gle the bor­der on the <CFME­DI­APLAYER> tag in Cold­Fu­sion by set­ting the Boolean hideBorder attribute.






    
    
    

And the out­put of the <CFME­DI­APLAYER> tag is as fol­lows:

The following example shows how you can toggle the border on the <CFMEDIAPLAYER> tag in ColdFusion by setting the Boolean hideBorder attribute.

<cfparam name="URL.hideBorder" default="true" type="boolean" />
 
<html>
<body style="padding:20px;">
 
    <div style="background-color:#EEEEEE; padding:5px;">
        <a href="?hideBorder=true">hideBorder=true</a>
        |
        <a href="?hideBorder=false">hideBorder=false</a>
    </div>
 
    <br/>
 
    <cfmediaplayer name="flvPlayer"
            source="http://helpexamples.com/flash/video/caption_video.flv"
            autoPlay="false"
            hideborder="#URL.hideBorder#" />
 
</body>
</html>

And the output of the <CFMEDIAPLAYER> tag is as follows:

Leave a Reply

Your email address will not be published.