http://pixelcode.co.uk/tutorials/webmaster/conditional-comments-with-ie/
<!--[if IE]>
<?php
echo "<td style='text-align:center;'><a href='salary/showtimecard.asp?empid=$myid&empdate=$timedate' target='_blank' title='คลิกเปิดบัตรตอก: $name $surname (id=$myid)'><img style='border-style:none;' src='images/timecard.jpg' width='25%' ></a></td>";
// <div>You are using Internet Explorer (less than version 10)</div>
?>
<![endif]-->
<!--[if !IE]><!-->
<?php
echo "<form><td style='text-align:center;'><input type='image' src='images/timecard.jpg' id=$myid title='คลิกเปิดบัตรตอก: $name $surname (id=$myid)' height='25%' alt='submit' formaction='salary/showtimecard.asp?empid=$myid&empdate=$timedate' formtarget='_blank' formmethod='post'></td></form>";
// <div>You are not using Internet Explorer, or using IE version 10</div>
ไม่มีความคิดเห็น:
แสดงความคิดเห็น