Header Code Stop Working
Header Code Stop Working
The following line of code is no longer being recognized. Changed between from V 3.25 to 3.1. The "headerbgcolor" is not being recognized.
aI("text=;type=header;itemheight=2;headerbgcolor=gold;");
aI("text=;type=header;itemheight=2;headerbgcolor=gold;");
I'm not sure what version you mean? 5.31? I just tested it in both horizontal and vertical. It doesn't work as you posted, to have a header it requires something in the item, so try a non-breaking line space. That brought it back. However, that also caused the header item to be the same height as the other items. The only way I could get it to accept the 2 as height was to insert a transparent1x1.gif image Hope that helps
Ruth
Code: Select all
aI("image=transparent1x1.gif;type=header;itemheight=2;headerbgcolor=gold;");
Ruth
I can't read or type.
It works as written under Version 5.25 but not under 5.31a....
Also, ruth on June 18, this is what you told me to do.
Yes, headerbgcolor is both a global and item property, so you can specify it in the item. The same is true of headercolor, though without text you dont need that.
Code:
aI("text=;type=header;itemheight=2;headerbgcolor=#f0f0f0;");
This would allow the globally defined headerbgcolor to apply to other headers and this one to have whatever you specify in that item.
Ruth
It works as written under Version 5.25 but not under 5.31a....
Also, ruth on June 18, this is what you told me to do.
Yes, headerbgcolor is both a global and item property, so you can specify it in the item. The same is true of headercolor, though without text you dont need that.
Code:
aI("text=;type=header;itemheight=2;headerbgcolor=#f0f0f0;");
This would allow the globally defined headerbgcolor to apply to other headers and this one to have whatever you specify in that item.
Ruth
You can't read or type, and I can't formulate correct expressions of what I meant to say! What I meant with the 'as you posted' was your statement is correct, it doesn't work. So, let's try this again. It seems now that to have the properties work something has to be put into the aI string. Because you are making it 2px in height, you would need an image, something like a 1x1 transparent gif because if you put in a non-breaking line space it makes that item the same height as all the other items and though I put itemheight=2 when trying the non-breaking line space, that did not work.
As to the headerbgcolor and headercolor, they are both global and item properties still, but it seems that in 5.31 and 5.31a for them to apply something must be in the aI string, some text or a non-breaking space or an image.
Sorry, for the confusion. I think half my brain has gone on 4th of July vacation and the other half was asleep
Ruth
As to the headerbgcolor and headercolor, they are both global and item properties still, but it seems that in 5.31 and 5.31a for them to apply something must be in the aI string, some text or a non-breaking space or an image.
Sorry, for the confusion. I think half my brain has gone on 4th of July vacation and the other half was asleep
Ruth
Hi Bob,
I'm not sure if Andy really meant that code snippet as a complete example, so much as he meant somethink like, "have you tried using the separatorsize and separatorcolor properties in your existing menu items?"
In other words, you could probably get rid of the blank headers that you're essentially using for separators, and modify te separator properties of specific menu items to achieve the same effect. For example, you have a "header/separator" before the "Rapid City 2005" item in the "series" menu. Try getting rid of that, and then modify the separator in the "Highlights & Notes" item. So, change:
to
(all on one line)
See if that gives the effect you're after.
Cheers,
Kevin
I'm not sure if Andy really meant that code snippet as a complete example, so much as he meant somethink like, "have you tried using the separatorsize and separatorcolor properties in your existing menu items?"
In other words, you could probably get rid of the blank headers that you're essentially using for separators, and modify te separator properties of specific menu items to achieve the same effect. For example, you have a "header/separator" before the "Rapid City 2005" item in the "series" menu. Try getting rid of that, and then modify the separator in the "Highlights & Notes" item. So, change:
Code: Select all
aI("text=Highlights & Notes;url=/2003/notes.htm;status=Game Highlights;separatorsize=1;");
Code: Select all
aI("text=Highlights & Notes;url=/2003/notes.htm;status=Game Highlights;separatorsize=3;separatorcolor=gold;");
See if that gives the effect you're after.
Cheers,
Kevin
Hi Bob,
As far as I know it won't throw an error, it's just not a css style. I'm not sure what happens when that occurs, maybe css defaults to solid? As for ridge not showing, it's a strange style, usually it won't show much difference at a borderwidth of 1px or if the color of the border is much like the color of the item it surrounds and things like the high/low 3d affect how ridge displays.
Ruth
As far as I know it won't throw an error, it's just not a css style. I'm not sure what happens when that occurs, maybe css defaults to solid? As for ridge not showing, it's a strange style, usually it won't show much difference at a borderwidth of 1px or if the color of the border is much like the color of the item it surrounds and things like the high/low 3d affect how ridge displays.
Ruth