du_1993 2013-09-25 09:20
浏览 404
已采纳

在HTML中传递多个参数onMouseover事件处理程序

I would like to know how to pass multiple arguments to the the function with onmouseover event handler in HTML.

Here is the following code in PHP ,

<a href='Page2.php?user=" . $userid . "' target='_blank' onMouseOver=\"writetxt('" . $info  "')\" onMouseOut=\"writetxt(0)\">" 

I would like to pass 2 arguments to writetxt() function something like this :

writetxt($arg1, $arg2)

<a href='Page2.php?user=" . $userid . "' target='_blank' onMouseOver=\"writetxt('" . $info . "," . $img . "')\" onMouseOut=\"writetxt(0)\">" 

Thanks

  • 写回答

2条回答 默认 最新

  • dowdw44426 2013-09-25 09:26
    关注

    It should be like...

    writetxt('" . $info . "', '" . $img . "');
                           ^  ^
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?