Jump to content

Need Help with slider


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\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<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>

<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>
"; ?>

The header and footer script are atached



Link to comment
Share on other sites

  • 1 month later...
This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.