Ronny_Rijksen Posted September 15, 2014 Share Posted September 15, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/291083-need-help-with-slider/ Share on other sites More sharing options...
drewhew Posted October 30, 2014 Share Posted October 30, 2014 Ronny, Can you provide a link to your website and give me a little explanation as to why you want the slider in the header? Quote Link to comment https://forums.phpfreaks.com/topic/291083-need-help-with-slider/#findComment-1495326 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.