Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Generating an IMG tag >Thread Next - Re: Generating an IMG tag Re: Generating an IMG tagTo: NULL Date: 9/2/2005 6:10:00 PM On 1 Sep 2005 15:01:01 -0700, amahmood5@u... wrote: >Hi all, > >I've got an XML data file, with a <percent> element from 0 to 100. I'd >like the XSL file to translate this into an <img> tag. I'll explain... > >I'd like this <percent> value to be presented graphically. I have a >library of 100 graphics files, called 0.png to 100.png. Wow, that's a lot of work ! Wouldn't it make more sense to either : 1) Use an 1(or n-) pixel high image then modify the height attribute of the img tag, or 2) Use CSS and have the img as the background-image property of the html element. Then set background-repeat: repeat-y in the CSS to make it tile? http://www.w3schools.com/css/pr_background-repeat.asp Either way then you just have one image to work with and for the users browser to load. Just a thought .... I did this once, and used DHTML to add a 'baseline' and 'cap' image to make it "look-3D". | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
