I am constructing a set of meta-tools for constructing frames/dialogue boxes/forms/tables/etc. I was doing well until I tried to be clever by making my CSS editable.
My CSS is stored as a string to make inserting an Internal Style Sheet easier.
Code: Select all
[myCSS=["
<style>
#newTable { background-color: #F0FFFF; color: #FFFFFF }
#newTable, caption { background-color: #FFFAF0; color: #44444F }
#newTable, th { background-color: #D0D0D0; color: #444444 }
#newTable, tr { color: #4B0082 }
#newTable, tr.alt { background-color: #FFFFF0; color: #8B4513 }
</style>
"]
What I want is to present the user with a form having a Text Input for each class, and each class style like so:
Code: Select all
...snip:
<tr><td>
<input type="text" name="line1.class" value="#newTable">
<input type="text" name="line1.style" value="{ color: #AE23AF }">
rinse and repeat
There are a three restricting conditions;
- No UDF
- No trusted functions
- My ability