Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Background color on hyperlink

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Background color on hyperlink
 Login/Join
 
Silver Member
posted
Hi,

I have a HTML page with 4 hyperlinks - setup to look like buttons. When any of the 4 links is clicked they will load into the the frame of this HTML page. What I would like is have the background color change when they click on one of the buttons (Hyperlinks). which I've been able to do with using "active" however, if the user click anywhere on the loaded new HTML page the background color of the button disappears. do I need some short of onmousedown function to maintain the background color? If anyone has an example or can direct me to some some additional information on this that would be great.


WEBFOCUS 7.14
WEBFOCUS.8.04
 
Posts: 44 | Registered: March 30, 2007Report This Post
Expert
posted Hide Post
You'll have to use JavaScript to manipulate this. Take a look at StackOverflow: How to keep :active css style after clicking an element, particularly the third answer. You will have to deal with the scenario of un-highlighting a hyperlink when a second one is clicked on...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Silver Member
posted Hide Post
Thanks Francis that works great. But I do need it to un-highlight when the next one is selected....any insight??


WEBFOCUS 7.14
WEBFOCUS.8.04
 
Posts: 44 | Registered: March 30, 2007Report This Post
Expert
posted Hide Post
If you're using JavaScript, the quickest method would be to remove the background colour of each of the four hyperlinks, then apply the background colour on the clicked-on hyperlink.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Background color on hyperlink

Copyright © 1996-2020 Information Builders