PDA

View Full Version : Need to change a font color...


parallon
05-16-2006, 06:07 PM
Hello all. I have the following code that generates a hyperlink, and I need the text (End) after the hyperlink to be red. I tried the following code, but I can't seem to get it to work.

<head>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>

And the following is imbeded within an ASP script:

Schedule(d) = "<a href=\""javascript:GetDetail('" & WOList & "')\"">" & Schedule(d) & "</a> " & "<span class="style1">(End)</span>"

Any help would be greatly appreciated,

Parallon

domedia
05-16-2006, 08:03 PM
Hmm.. nothing wrong there.. not sure why it won't be red.
Can you copy source of the *rendered* page in browser and paste in here?

parallon
05-16-2006, 08:08 PM
Actually, I finally got it with the following code:

Schedule(d) = "<a href=\""javascript:GetDetail('" & WOList & "')\"">" & Schedule(d) & "</a> " & "<span class=\""style1\"">(End)</span>"

I had to escape out of the quotes in the <span> tag.

Thank you for your time though,

Parallon

domedia
05-16-2006, 09:25 PM
That's why I wanted you to paste the actual code the browser was rendering from, my brain doesn't interpret ASP ;)