Need help with slideshow - Geeks to Go Forums

Jump to content

Log in Register Register Malware removal guide How it works

Need help with slideshow

#1 vanbrad

  • Group: Member
  • Posts: 1
  • Joined: 18-January 11

Posted 18 January 2011 - 02:22 PM

this is where the problem is http://www.thompsonp...iving-Pool.aspx

I am trying to create this slideshow for my website but i really need to figure out the resto fo the codes. I am a beginner and I dont have much of a clue what I am doing. If you could please help me by filling in the blanks or taking out the unnecessary things, that would be greatly appreciated. Here is what i have:

<html xmlns="/http://www.thompsonpoolsinc.com">
<head>
<title> Concert Ads </title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
//<![cdata[
var images = new Array(5);
images[0] = new Image();
images[1] = new Image();
images[2] = new Image();
images[3] = new Image();
images[4] = new Image();
images[0].src ="/uploads/cave5.jpg.jpg"
images[1].src ="/uploads/cave5.jpg"
images[2].src ="/uploads/cave5.jpg"
images[3].src ="/uploads/cave5.jpg"
images[4].src ="/uploads/cave5.jpg"
function change (y) {
var plaatje=document.getElementById("picture");
var lengte = (plaatje.src).length;
var picurl = (plaatje.src).substring(lengte-14);
if(picurl=="/uploads/cave1.jpg") { x=0; }
if(picurl=="/uploads/cave2.jpg") { x=1; }
if(picurl=="/uploads/cave3.jpg") { x=2; }
if(picurl=="/uploads/cave4.jpg") { x=3; }
if(picurl=="/uploads/cave5.jpg") { x=4; }
document.getElementById("picture").src = images[x+y].src;
}
//]]>
</script>
</head>
<body>
<p><img src="/uploads/cave2.jpg" id="picture" height="250" width="380" alt="Photos of a cave" /></p>
<p><a href="#" onclick="change(-1);"><img border="0" SRC="/uploads/previous.png"></a>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<a href="#" onclick="change(1);"><img border="0" SRC="/uploads/next.png"></a></p>
<p class="b2"><strong></strong></p>
</body>
</html>


Please help me

Thank you

#2 AstraNut

  • Group: Member
  • Posts: 329
  • Joined: 15-June 10

Posted 19 January 2011 - 04:58 AM

Just which one is the slide? Nothings moving, lol. Is it the one with the previous/next buttons? Those produce a jump to top because you are using href="#" and the onclick script. Where did you get the slideshow script?

Maybe check and use a JQuery Slider or something else:

JQuery Slideshows:

http://malsup.com/jquery/cycle/
http://speckyboy.com...-and-tutorials/
http://javabyexample...-scrollers.html
http://jonraasch.com...query-slideshow
http://bradblogging....ou-cannot-miss/

Slideshow: A Javascript class for Mootools: http://www.electricp...eron/slideshow/
5 Ways to Create Beautiful Slideshows of your Digital Pictures: http://www.makeuseof...gital-pictures/
XnView (One of many features - Slide show with effects): http://www.xnview.com/en/features.html
Image Slideshows: http://www.dynamicdr...ex14/index.html
Slideshows: http://www.javascrip...utindex21.shtml
-----------------------------------------------------
JavaScript Slideshow: http://www.barelyfit...how/index.php/4
JavaScript Tutorial: Build Your Own Image Viewer with Scrollbar: http://www.htmlgoodi...cle.php/3870076

ANVSOFT Flash Slide Show Maker (free for personal use): http://flash.dvd-pho...photo_fader.php
Ultimate Fade-in slideshow (v2.0): http://www.dynamicdr...inslideshow.htm
Scriptocean Javascript Slideshow: http://www.scriptoce...show/index.html
VAMP is an easy-to-use multimedia dashboard for all your creative needs.: http://www.imvamp.com/
Also, both http://photobucket.com/ and http://www.imageshack.us/ have online Slideshow makers.

10 CSS errors

HTML Errors

Share this topic: