QUOTE(jGirlyGirl1 @ Apr 28 2005, 01:54 PM)
Can I be so bold as to ask how we could accomplish this if the CheckoutBody class wasn't there? So, say there's no class and we are using a function call... Could we put the function call in a div tag, give the div tag an ID and use the same script??
There are several ways to accomplish the same thing (some better and more efficient than others). Technically, you could put the function inside a div tag. Just remember, the function writes HTML tags, and those are the tags that you will probably want to target.
For example, let's say you have this:
CODE
<div id="one">
<% someaspfunctioncall %>
</div>
That may translate to this:
CODE
<div id="one">
<table>
<tr><td>
<p>Hello World!
</td></tr>
</table>
</div>
.. in which case, assigning a style to the div tag would do you absolutely no good. So you might have to crack the books and learn some fancy JavaScript to do as you asked.
Or you could just use something like this, which works the same magic on nooksandniches original code, and does it with no reference to the class:
CODE
<script language=javascript>
j=document.getElementsByTagName('font');
for(i=0; i<j.length; i++)
{
if (j[i].innerHTML.match (/Customizations:|Details:/))
{
j[i].style.fontFamily='Times';
j[i].style.fontSize='60';
}
}
</script>