使用$ polygon ['onmouseover]

时间:2014-01-07 20:42:08

标签: 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',
        '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函数,它将改变我的多边形的颜色..

帮助我。

0 个答案:

没有答案