Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 使用$polygon[';onmouseover]_Html_Codeigniter_Audio_Polygon_Marker - Fatal编程技术网

Html 使用$polygon[';onmouseover]

Html 使用$polygon[';onmouseover],html,codeigniter,audio,polygon,marker,Html,Codeigniter,Audio,Polygon,Marker,这是我的codeigniter控制器代码,用于创建多边形 $polygon['points'] = array( '17.295907,121.437431', '17.231647,121.2032846', '17.18770214,121.149726', '17.18967,120.853782', '17.13029,120.79468', '17.1046,120.77228',

这是我的codeigniter控制器代码,用于创建多边形

$polygon['points'] = array(
        '17.295907,121.437431',
        '17.231647,121.2032846',
        '17.18770214,121.149726',
        '17.18967,120.853782',
        '17.13029,120.79468',
        '17.1046,120.77228',
        '17.02681,120.78168',
        '16.95022,120.77356',
        '16.93276,120.76159',
        '16.92036,120.75919',
        '16.89474,120.774469',
        '16.85482,120.79026',
        '16.84077,120.79995',
        '16.81769,120.82352',
        '16.86304,120.86974',
        '17.01887,120.92746',
        '17.03652,120.93523',
        '17.07947,120.94323',
        '17.05763,121.00628',
        '17.06138,121.06316',
        '17.04628,121.10641',
        '17.06597,121.14075',
        '17.07779,121.15997',
        '17.0581,121.19705',
        '17.1001,121.24924',
        '17.11323,121.28906',
        '17.14981,121.31367',
        '17.16441,121.33575',
        '17.16083,121.35451',
        '17.17359,121.39618',
        '17.15916,121.49506',
        '17.17491,121.56372',
        '17.24113,121.55039',
        '17.27169,121.55476',
        '17.28476,121.557593',
    );
    $polygon['strokeColor'] = '#13d0ff';
    $polygon['fillColor'] = 'brown';
    $polygon['onmouseover]= "alert('i want to make a color hovering')";
我想创建一个onmouseover函数来更改多边形的颜色


帮帮我

你试了什么?有什么错误?没什么。但在我的代码中。我只使用Alert来显示它正在工作。我想知道当我将鼠标悬停在多边形上时,如何使该多边形更改其颜色