$(".block").mousemove(function (event) {
if (event.target == this) {
$("#X").text(event.offsetX);
$("#Y").text(event.offsetY);
var effect = $(this).find(".effect");
effect.css({"left" : event.offsetX - 15 + "px", "top" : event.offsetY - 15 + "px"});
}
});
php -m
'urlManager' => [
'enablePrettyUrl' => true,
'enableStrictParsing' => false,
'showScriptName' => false,
'rules' => [
'<controller>/<action>' => '<controller>/<action>',
'<module>/<controller>/<action>' => '<module>/<controller>/<action>',
],
],
public $layout = 'buble_main';