Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 5 posts ] 
Index.xsl 
Author Message

Joined: Sat Dec 04, 2004 12:19 pm
Posts: 221
Post Index.xsl

How can I change in Index.xsl the font color of Album: Artist

<!-- Search database -->
<FORM METHOD="POST">
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="2">
<TR>
<TD WIDTH="100%" CLASS="indexheading2"><B>Browse</B></TD>
</TR>
<TR>
<TD>
<SELECT SIZE="1" NAME="_Field">
<OPTION VALUE="Artist==@xsltemplate=AlbumList.xsl@orderby=Artist,Released@xmltitle=Artist: |filter1|">Album: Artist
</OPTION>
</SELECT>
<xsl:text> </xsl:text>
<INPUT TYPE="TEXT" NAME="Value_" SIZE="50" ID="FOCUS"/>
</TD>
</TR>
<TR>
<TD><INPUT TYPE="SUBMIT" NAME="btnSearch" VALUE=" Search "/></TD>
</TR>
</TABLE>
</FORM>


Sun Sep 20, 2009 9:15 pm
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Index.xsl

Rumpelstilzchen wrote:
How can I change in Index.xsl the font color of Album: Artist

<!-- Search database -->
<FORM METHOD="POST">
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="2">
<TR>
<TD WIDTH="100%" CLASS="indexheading2"><B>Browse</B></TD>
</TR>
<TR>
<TD>
<SELECT SIZE="1" NAME="_Field">
<OPTION VALUE="Artist==@xsltemplate=AlbumList.xsl@orderby=Artist,Released@xmltitle=Artist: |filter1|">Album: Artist
</OPTION>
</SELECT>
<xsl:text> </xsl:text>
<INPUT TYPE="TEXT" NAME="Value_" SIZE="50" ID="FOCUS"/>
</TD>
</TR>
<TR>
<TD><INPUT TYPE="SUBMIT" NAME="btnSearch" VALUE=" Search "/></TD>
</TR>
</TABLE>
</FORM>

I'm afraid that is not possible. Form fields always use the default (Windows) font and color.

_________________
Fredrik Nordbakke
www.fnprg.com


Mon Sep 21, 2009 2:33 pm
Profile WWW

Joined: Sat Dec 04, 2004 12:19 pm
Posts: 221
Post Re: Index.xsl

FredrikN wrote:
Rumpelstilzchen wrote:
How can I change in Index.xsl the font color of Album: Artist

<!-- Search database -->
<FORM METHOD="POST">
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="2">
<TR>
<TD WIDTH="100%" CLASS="indexheading2"><B>Browse</B></TD>
</TR>
<TR>
<TD>
<SELECT SIZE="1" NAME="_Field">
<OPTION VALUE="Artist==@xsltemplate=AlbumList.xsl@orderby=Artist,Released@xmltitle=Artist: |filter1|">Album: Artist
</OPTION>
</SELECT>
<xsl:text> </xsl:text>
<INPUT TYPE="TEXT" NAME="Value_" SIZE="50" ID="FOCUS"/>
</TD>
</TR>
<TR>
<TD><INPUT TYPE="SUBMIT" NAME="btnSearch" VALUE=" Search "/></TD>
</TR>
</TABLE>
</FORM>

I'm afraid that is not possible. Form fields always use the default (Windows) font and color.


But to change in the Explorer options the font color is possible. My problem is that I set the font on white and because of this I can't see nothing anymore. White letters on white background, hard to read.


Mon Sep 21, 2009 6:24 pm
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Index.xsl

Rumpelstilzchen wrote:
But to change in the Explorer options the font color is possible.

Yes, setting the default colors from the Options window will affect the background color of form controls, but not the foreground color. This is just how the 3rd party HTML control works, and cannot be changed.

However, there is a workaround:

1. Set the colors in the Options window to the default (blank on white).

2. Open \Explorer Templates\Style.css in Notepad and specify the colors in the "body" style, for example:

Code:
BODY {
   background-color : grey;
   color: white;
}

_________________
Fredrik Nordbakke
www.fnprg.com


Tue Sep 22, 2009 9:13 am
Profile WWW

Joined: Sat Dec 04, 2004 12:19 pm
Posts: 221
Post Re: Index.xsl

FredrikN wrote:
Rumpelstilzchen wrote:
But to change in the Explorer options the font color is possible.

Yes, setting the default colors from the Options window will affect the background color of form controls, but not the foreground color. This is just how the 3rd party HTML control works, and cannot be changed.

However, there is a workaround:

1. Set the colors in the Options window to the default (blank on white).

2. Open \Explorer Templates\Style.css in Notepad and specify the colors in the "body" style, for example:

Code:
BODY {
   background-color : grey;
   color: white;
}
That was it! Exactly what I've needed. Thank you!


Tue Sep 22, 2009 9:35 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.