<cffunction name="embedYouToobVideo" access="public" hint="EMbeds a youtube video for lazy people"> <cfargument name="theurl" required="true" hint="Either the YouToob page url or the actual video url" /> <cfargument name="width" required="false" default="425" hint="Width of the video" /> <cfargument name="height" required="false" default="355" hint="Height of the video" /> <cfsavecontent variable="embedCode"> <object width="#val(arguments.width)#" height="#val(arguments.height)#"> <param name="movie" value="#rereplace(arguments.theurl, '\?|=', '/', 'all')#"></param> <param name="wmode" value="transparent"></param> <embed src="#rereplace(arguments.theurl, '\?|=', '/', 'all')#" type="application/x-shockwave-flash" wmode="transparent" width="#val(arguments.width)#" height="#val(arguments.height)#"></embed> </object> </cfsavecontent> <cfreturn embedCode /> </cffunction>
#embedYouToobVideo('http://www.youtube.com/watch?v=0ONJfp95yoE')#<br /> #embedYouToobVideo('http://www.youtube.com/watch/v/0ONJfp95yoE')#<br /> #embedYouToobVideo('http://www.youtube.com/watch?v=0ONJfp95yoE&feature=relat ed&hl=en')#<br /> ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303933 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4