Page 1 of 1

HyperLinkGadget

Posted: Mon Jan 21, 2019 4:43 am
by Paul
For the HyperLinkGadget the help file says:
The text color for the non-highlighted state can be changed with SetGadgetColor
Yet when I do this, in Chrome the link is always purple and when clicking on the link it is always red, regardless of color specified.
In Internet Explorer the link is always blue, regardless of color specified.

Is this a SB bug or a browser issue??

Re: HyperLinkGadget

Posted: Wed Apr 24, 2019 6:40 pm
by DanLJr
I THINK you'll need to define hyperlink colors in CSS. I haven't personally used the HyperLinkGadget, but if it "translates" like it does in traditional CSS/HTML, you CANNOT just control hyperlink colors inline or via HTML tags, they MUST be definitely in the stylesheet, as you can't use pseudoclasses like :hover in inline CSS.

I pilfered this code from the InterWebz, but you'll need to do something more like this (in your stylesheet for your SB app), I believe:

Code: Select all

<style type="text/css" media="screen">
a:link { color:#33348e; text-decoration: none; }
a:visited { color:#33348e; text-decoration: none; }
a:hover { color:#33348e; text-decoration: none; }
a:active { color:#7476b4; text-decoration: underline; }
</style>


Anyone else have a thought on this one? I THINK I'm leading Paul in the right direction here, but if someone else knows FOR SURE about this one in SB, your help would be greatly appreciated!

-Dan L.
:: falling on my face a lot lately; learning even more because of it! ::
Paul wrote:For the HyperLinkGadget the help file says:
The text color for the non-highlighted state can be changed with SetGadgetColor
Yet when I do this, in Chrome the link is always purple and when clicking on the link it is always red, regardless of color specified.
In Internet Explorer the link is always blue, regardless of color specified.

Is this a SB bug or a browser issue??