- 26 jun 2013, 18:59
#57713
Dag allemaal,
Ik heb de steelseries gauges wel aan de praat, maar hoe krijg je voor elkaar dat de grafiekjes getoond worden bij een mouseover.
http://www.ollivier.nl/weather/steelseries/gauges-ssT-nl.htm
De .php bestanden in wxgraphs werken wel.
Bijvoorbeeld: http://www.ollivier.nl/weather/wxgraphs/baro_24hr.php
Ik vermoed dat 't in het bestand "ddimgtooltip.js" ergens moet ingesteld worden, maar ik vind de commentaar niet echt duidelijk.
Is dit wel de goede bestand ? Wat moet ik aanpassen en hoe ? Graag een voorbeeldje.
Grt.
Bernez
Ik heb de steelseries gauges wel aan de praat, maar hoe krijg je voor elkaar dat de grafiekjes getoond worden bij een mouseover.
http://www.ollivier.nl/weather/steelseries/gauges-ssT-nl.htm
De .php bestanden in wxgraphs werken wel.
Bijvoorbeeld: http://www.ollivier.nl/weather/wxgraphs/baro_24hr.php
Ik vermoed dat 't in het bestand "ddimgtooltip.js" ergens moet ingesteld worden, maar ik vind de commentaar niet echt duidelijk.
Code: Selecteer alles
Each tooltip's syntax should be as follows:
tooltip[x]=['path_to_image', 'optional desc', optional_CSS_object]
Where x should be an sequential integer starting from 0, with the following 1 to 3 components defined:
1. Full path or URL to the tooltip image
2. Description that is displayed beneath the image (optional)
3. Object containing the desired CSS properties to add to the tooltip.
The syntax should be:
{property1:"cssvalue1", property2:"cssvalue2", etc}
where "property" should be a valid CSS property, and "value" a valid CSS value.
If more than one pair is defined, separate each pair with a comma.
*/
var ddimgtooltip={
tiparray:function(){
var tooltips=[];
var style = {background:"#FFFFFF", color:"black", border:"2px ridge darkblue"};
if (g_showPopupDataGraphs) {
tooltips[0]=[(g_tipImgs[0][0] !== null ? g_imgPathURL + g_tipImgs[0][0] : null), " ", style];
tooltips[1]=[(g_tipImgs[1][0] !== null ? g_imgPathURL + g_tipImgs[1][0] : null), " ", style];
tooltips[2]=[(g_tipImgs[2] !== null ? g_imgPathURL + g_tipImgs[2] : null), " ", style];
tooltips[3]=[(g_tipImgs[3] !== null ? g_imgPathURL + g_tipImgs[3] : null), " ", style];
tooltips[4]=[(g_tipImgs[4][0] !== null ? g_imgPathURL + g_tipImgs[4][0] : null), " ", style];
tooltips[5]=[(g_tipImgs[5] !== null ? g_imgPathURL + g_tipImgs[5] : null), " ", style];
tooltips[6]=[(g_tipImgs[6] !== null ? g_imgPathURL + g_tipImgs[6] : null), " ", style];
tooltips[7]=[(g_tipImgs[7] !== null ? g_imgPathURL + g_tipImgs[7] : null), " ", style];
tooltips[8]=[(g_tipImgs[8] !== null ? g_imgPathURL + g_tipImgs[8] : null), " ", style];
tooltips[9]=[(g_tipImgs[9] !== null ? g_imgPathURL + g_tipImgs[9] : null), " ", style];
} else {
tooltips[0]=[null, " ", style];
tooltips[1]=[null, " ", style];
tooltips[2]=[null, " ", style];
tooltips[3]=[null, " ", style];
tooltips[4]=[null, " ", style];
tooltips[5]=[null, " ", style];
tooltips[6]=[null, " ", style];
tooltips[7]=[null, " ", style];
tooltips[8]=[null, " ", style];
tooltips[9]=[null, " ", style];
}
return tooltips; //do not remove/change this line
}(),
tooltipoffsets: [20, -30], //additional x and y offset from mouse cursor for tooltips
tipDelay: 1000,
Is dit wel de goede bestand ? Wat moet ik aanpassen en hoe ? Graag een voorbeeldje.
Grt.
Bernez