Couple of questions / suggestions.
The 2 clubs I’m a member have decided to go with the Background image for results.
eg http://www.gygsc.org.uk/Results/2020/2020Thursday.htm
All works well in the style sheet but it does mean it’s fixed.
I was wondering if in the future it might be an option to add background images to series properties, like the logos. To add flexibility for others.
You’d need to add the CSS too.
Second Question.
I have row cell highlight CSS in my style sheet
/* KS - Added Lines Below to create hover effect */
.summarytable tr:hover {background: #ffff99;}
.summarytable td:hover {background: #ffff00;}
I have tried to turn it into an effect based on the social media one so others could use it.
As its CSS I need it insert elsewhere or apply it in a different manner.
I tried the code below, but I suspect I have hold of the wrong end of the stick, can you advise.
//
// name=HighlightRow.js
// dependencies=
// description=Highlight row in table when hovered over.
// author=Keith Sykes
// version=1.0
// date=2020-10-30
// url=
// email=
// twitter=
//
/* KS - Add css Lines Below to create hover effect to highlight row.*/
$(function() {
var hlstart = ‘’;
var hlrow = ‘.summarytable tr:hover {background: #ffff99;}’;
var hlcell = ‘.summarytable td:hover {background: #ffff00;}’;
var hlend = ‘’;
$(‘head’).prepend(hlstart + ’ ’ +hlrow + ’ ’ + hlcell + ’ ’ hlend);