php - HTML Attribute CHtml::link -
i know there's post kind of question. there no (correct) answer that's why wanted open new 1 me , other people want know this.'
in code below want add onmouseover have hover effect on image, possible? if yes me please out?
echo chtml::link(chtml::image($home['src'], $home['alt']), yii::app()->getcontroller()->createurl("/admin")); it's written in yii framework , php. in advance!
thanks helped me!
i grateful this, , people need , reading too. , quick response!
this working code
echo chtml::link(chtml::image($home['src'], $home['alt'],array("onmouseover" => "this.src='/limesurvey/styles/scanyours/images/home1.png';")), yii::app()->getcontroller()->createurl("/admin"));
you can add on image too
echo chtml::link(chtml::image($home['src'], $home['alt'],array('onmouseover'=>'your function'), yii::app()->getcontroller()->createurl("/admin"));
Comments
Post a Comment