diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index b6d1a42d00..bc474737da 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -188,7 +188,11 @@ function overlib_link($url, $text, $contents, $class) $contents = str_replace("\"", "\'", $contents); $output = '"; + if ($config['web_mouseover'] === FALSE) { + $output .= ">"; + } else { + $output .= " onmouseover=\"return overlib('".$contents."'".$config['overlib_defaults'].", WRAP,HAUTO,VAUTO);\" onmouseout=\"return nd();\">"; + } $output .= $text.""; return $output; diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index 223c8e36ca..5349e919fb 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -259,6 +259,7 @@ $config['rrdgraph_def_text'] = "-c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#E $config['rrdgraph_def_text'] .= " -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal"; $config['rrdgraph_real_95th'] = FALSE; # Set to TRUE if you want to display the 95% based on the highest value. (aka real 95%) $config['overlib_defaults'] = ",FGCOLOR,'#ffffff', BGCOLOR, '#e5e5e5', BORDER, 5, CELLPAD, 4, CAPCOLOR, '#555555', TEXTCOLOR, '#3e3e3e'"; +$config['web_mouseover'] = TRUE;// Set this to false if you want to disable the mouseover popup graphs $list_colour_a = "#ffffff"; $list_colour_b = "#eeeeee";