PDA

View Full Version : Menu colors and title


Storm
04-21-2004, 03:39 AM
Hi,

I've read that iSilo menus:
"can be styled with individually specified background and text colors."
"can have a title that is not part of the menu item choices."

But I have not been able to find any documentation on how to do this. Could you please help me?

Regards,
Storm

Voltage Spike
04-21-2004, 01:17 PM
Essentially, I believe they were conveying that iSilo supports more of the HTML and CSS standards.

With respect to the first comment, you can see an example of it in their display sample (the HTML is here (http://isilo.com/support/sample/iSiloDisplaySample/menus/menus.htm)). They have simply used the "background" and "color" attributes present in CSS.

With respect to the second comment, they could be implying two things. The first is the "disabled" attribute of an option. The following example has Menus as the default option, but that option cannot be selected otherwise.


<select onchange="GoURLValue(this);">
<option selected disabled>Menus</option>
<option value="basic.htm">Basic</option>
<option value="colors.htm">Colors</option>
<option value="width.htm">Width</option>
<option value="long.htm">Long</option>
</select>


The other alternative is the "optgroup" tag, as demonstrated in W3C's Forms documentation (http://www.w3.org/TR/html401/interact/forms.html):


<SELECT name="ComOS">
<OPTION selected label="none" value="none">None</OPTION>
<OPTGROUP label="PortMaster 3">
<OPTION label="3.7.1" value="pm3_3.7.1">PortMaster 3 with ComOS 3.7.1</OPTION>
<OPTION label="3.7" value="pm3_3.7">PortMaster 3 with ComOS 3.7</OPTION>
<OPTION label="3.5" value="pm3_3.5">PortMaster 3 with ComOS 3.5</OPTION>
</OPTGROUP>
<OPTGROUP label="PortMaster 2">
<OPTION label="3.7" value="pm2_3.7">PortMaster 2 with ComOS 3.7</OPTION>
<OPTION label="3.5" value="pm2_3.5">PortMaster 2 with ComOS 3.5</OPTION>
</OPTGROUP>
<OPTGROUP label="IRX">
<OPTION label="3.7R" value="IRX_3.7R">IRX with ComOS 3.7R</OPTION>
<OPTION label="3.5R" value="IRX_3.5R">IRX with ComOS 3.5R</OPTION>
</OPTGROUP>
</SELECT>


The "optgroup" appears as a title on the group, but you cannot actually select it as an option.

Voltage Spike
04-21-2004, 02:03 PM
Scratch that. "optgroup" is not fully supported by iSilo (or iSiloX, I suppose).

Storm
04-22-2004, 12:09 AM
Thank you for your kind help.
I am now able to give my menus different colors and I should have seen the display samples on the support homepage myself. :rolleyes:

Regarding the title that is not part of the menu item choises:
I tried using the code you supplied:

<select onchange="GoURLValue(this);">
<option selected disabled>Menus</option>
<option value="basic.htm">Basic</option>
<option value="colors.htm">Colors</option>
<option value="width.htm">Width</option>
<option value="long.htm">Long</option>
</select>


But it seems that I'm still able to select the default option. I have just copy/pasted your code and converted it using iSiloXC. What could I be doing wrong?

Voltage Spike
04-22-2004, 09:53 AM
It seems you are correct. I guess I don't know what they were talking about. :D