简体   繁体   中英

How can i add mouse hover effect on the conditioned background rows according to php result

<?php if($result["staff_follow"]== 'By Party'&& $result["Status"]== 'PENDING'): ?> style="background-color:#E99E3E;

the below feiled is not working. "onmouseover="this.bgColor='litegreen'" onmouseout="this.bgColor='#E99E3E'"

                        <?php elseif($result["Status"]== 'PENDING'): ?>style= "background-color:#DB7093; "
                            <?php endif; ?> >
                <!-- <td><?php echo $result["Roll_No"];?></td> -->
                <td style="text-align: center;"><?php echo $counter ;?></td>
                <td><?php echo $result["Document_Name"];?></td>
                <td><?php echo $result["Document_Num"];?></td>
                <td><?php echo $result["Extent"];?></td>
                <td><?php echo $result["Status"];?></td>
                <td><?php echo $result["Document_App_Det"];?></td>
                <td><?php echo $result["staff_follow"];?></td> 

Try again with this.bgColor='LightGreen' .

The named colors can be found here: https://htmlcolorcodes.com/color-names/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM