Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / November 2004



Tip: Looking for answers? Try searching our database.

Creating dynamic GIF's in ColdFusion?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
puffbunny - 24 Nov 2004 19:55 GMT
Has anyone ever tried creating dynamic GIF's using ColdFusion?  I would like to
do something like this: <cf_CreateBarGif' width='140' height='20' value='23'
scale='100'>  This would create an image 140x200 with a bar 'thermometer' that
is at the 23% mark.  Also, I'd like to put the text '23%' centered over the
created bar...  So now, how to do......  
leontova - 29 Nov 2004 16:33 GMT
Hi. You could also create a gif that is x-pixels high and 1 pixel wide. Then
use a regular <IMG SRC> tag and make the with attibute a percentage. If you are
using this for search engine results (like with verity), you are given a
percentage as a variable. Then you could place in the width attribute of the
<IMG SRC> tag and then wrap the CFOUTPUT around it. If you are not using a var
that gives you a percentage right off the bat, take what you have and convert
to a percentage.  Hope this helps.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.