Jump to content

Need Help with slider


Ronny_Rijksen

Recommended Posts

I bought a slider script and need to merge it in the website. What is the best to put the script in the header or in the footer?
And where i have to put it on wich line? I tried a lot and i have almost no more hair left on my head! One time i managed to get the images below header but not in a slider, it added the images below each other. It's not loading jquery or something else i don't know...
this is the slider script:
<?php echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>JQuery-Image-Slider</title>
<link href=\"css/default.css\" rel=\"stylesheet\" type=\"text/css\" />
<script src=\"js/jquery.js\" type=\"text/javascript\"></script>
<script src=\"js/yslider.js\" type=\"text/javascript\"></script>
<script src=\"js/init.js\" type=\"text/javascript\"></script>
</head>

<body>
<div id=\"content\">
<div class=\"slider\">
<div class=\"sliderContent\">
<div class=\"item\"> <img src=\"img/img1.jpg\" alt=\"\" /> </div>
<div class=\"item\"> <img src=\"img/img2.jpg\" alt=\"\" /> </div>
<div class=\"item\"> <img src=\"img/img3.jpg\" alt=\"\" /> </div>
<div class=\"item\"> <img src=\"img/img4.jpg\" alt=\"\" /> </div>
<div class=\"item\"> <img src=\"img/img5.jpg\" alt=\"\" /> </div>
<div class=\"item\"> <img src=\"img/img6.jpg\" alt=\"\" /> </div>
</div>
</div>
</div>
</body>
</html>
"; ?>

The header and footer script are atached

footer.php

header.php

Link to comment
https://forums.phpfreaks.com/topic/291083-need-help-with-slider/
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.