I’m currently working on building a site as part of an external University project. I have basic knowledge of coding and have got to a point where I’m a little out of my depth. The page that I am having trouble with is the home page as I want to run a javascript twitter feed and a slideshow on the same page. I have never used javascript before and have tried to follow tutorials and other forum posts, but I don’t really know what I’m doing and it is taking up to much of my time trying to work out what I’m doing wrong.
I have tried search for image/birg.png and can’t find where that is in the code, but it should be images/bird.png. I have added the slideshow.css to a new css folder; but I am unsure what loader.gif is, as I have searched my computer and can’t find it anywhere.
I am unsure why the files won’t load, but they are all place in the correct paths that you have said,
Thanks. It seems that after loading jquery and the cycle plugin, you are loading jquery again and are then thereby clobbering the cycle that was initially there.
I’m not really sure what you mean. I have the:
<script type=“text/javascript” src=“js/jquery.cycle.js”></script>
<script type=“text/javascript” src=“/js/slideshow.js”></script>
in the Head tag, but where is it loading again?
On the index page I wants to have the twitter feed, which is the script labelled //Twitter in the <head>. This has been working fine, up until the point where I added the script for the slideshow.
This is the original file that I downloaded with the slideshow in:
Since downloading it, I’ve changed the styling the slideshow.css. Which I also added to my site stf_style_sheet.css.
I added the <script type=“text/javascript” src=“js/jquery.cycle.js”></script>
<script type=“text/javascript” src=“/js/slideshow.js”></script>
to run the slideshow in the <head> tag.
I’m unsure what <script type=“text/javascript” src=“http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js”></script>
is doing, but I think its for the twitter feed.
But I’ve just realised that this is in the <head> twice, is that what you meant that I should delete?
That’s the jQuery library. You should only load that once, and ensure that it’s loaded before anything else that requires it, such as the jquery cycle plugin.