posted on February 15, 2002 07:08:31 AM
I would like to have my "Default Listing Text" (DLT) use the same font color that the template uses, so that I can use the same DLT for all my auctions (without having to adjust the font color each time).
Is the template's font color available as a global variable that I can access via javascript? If so, what is the variable name?
posted on February 16, 2002 12:06:21 PM
I use several different templates depending on what color scheme works best with my photo. However, I only need one "Default Listing Text". I can change the color attribute of the font tag each time, but that is time intensive. I would like the "Default Listing Text" to be usefull as a default, as implied by the name, but it really isn't if you have to modify it each time to match your color scheme.
I've written a javascript function that can automatically change the text color based on a given background color. The problem is in detecting the color used as the table backround.
If the template colors where available as global variables that would make it easy. I could then use whatever font color is being used by the template.
posted on February 16, 2002 12:25:44 PM
Suggest you clear out the DLT and hard code the phrase in your auction with the appropriate color - and forget about the javascript.