What is wrong with this code? (something to do with the src section)

<?php $home['copy'] = ' * html #previous {background:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='iphoto-slide/left.png', sizingMethod='crop');} * html #next {background:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='photo-slide/right.png', sizingMethod='crop');} ?>

You are escaping double quotes, but need to escape single quotes instead (because here you use single opening and closing quotes). Or change opening and closing quotes to double. Here is the code that should work:
$home[‘copy’] = "<style type=“text/css”>

  • html #previous {background:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=‘iphoto-slide/left.png’, sizingMethod=‘crop’);}

  • html #next {background:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=‘photo-slide/right.png’, sizingMethod=‘crop’);}


Sponsor our Newsletter | Privacy Policy | Terms of Service