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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -