I am new to Magento.
I have create one dummy page in Magento, when I display this page images are not showing.
But this code works in an .html file. Could you tell me where I went wrong?
public function indexAction()
{
echo '<html lang="en">';
echo '<head>';
echo '<title>Simplest jQuery Slideshow</title>';
echo '<style type="text/css">
.body
{
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.fadein
{
position: relative;
height: 332px;
width: 500px;
margin: 0 auto;
background: url("slideshow-bg.png") repeat-x scroll left top transparent;
padding: 10px;
}
.fadein img
{
position: absolute;
left: 10px;
top: 10px;
}
</style>';
echo '<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>';
echo '<script type="text/javascript">';
echo ' $(function () {';
echo '$(\'.fadein img:gt(0)\').hide();';
echo 'setInterval(function () { $(\'.fadein :first-child\').fadeOut().next(\'img\').fadeIn().end().appendTo(\'.fadein\'); }, 3000);
});';
echo '</script>';
echo '</head>
<body>
<div class="fadein">';
echo '<img src="C:/xampp/htdocs/magento/skin/frontend/test/default/images/media/1.jpg" >
<img src="C:/xampp/htdocs/magento/skin/frontend/test/default/images/media/2.jpg" >
<img src="C:/xampp/htdocs/magento/skin/frontend/test/default/images/media/3.jpg" >
<img src="C:/xampp/htdocs/magento/skin/frontend/test/default/images/media/4.jpg" >
<img src="C:/xampp/htdocs/magento/skin/frontend/test/default/images/media/5.jpg" >
</div>
</body>
</html>';
}