PDA

View Full Version : Vertical slideshow



MarciaB
09-04-2006, 11:04 AM
Hi, I'm new on this forum. I just want to know if there's a script exactly like the 'Conveyor belt slideshow' script, but sliding vertically. I've tried to change it to vertical, but obviously didn't succeed... I like the vertical slideshow from the Screensafer ad on this website too. Maybe that one is available?
Thanks,

jscheuer1
09-04-2006, 05:31 PM
http://home.comcast.net/~jscheuer1/side/marquee_v_slide.htm

and:

http://home.comcast.net/~jscheuer1/side/marquee_v_slide_pause_top.htm

MarciaB
09-05-2006, 06:50 AM
http://home.comcast.net/~jscheuer1/side/marquee_v_slide.htm

and:

http://home.comcast.net/~jscheuer1/side/marquee_v_slide_pause_top.htm

Thanks John, that's where I was looking for!
I saved it on my computer, opened it in Dreamweaver, but when I preview in IE it doesn't work...It only sais: Loading.... What am I doing wrong? :confused:

jscheuer1
09-05-2006, 09:57 AM
Thanks John, that's where I was looking for!
I saved it on my computer, opened it in Dreamweaver, but when I preview in IE it doesn't work...It only sais: Loading.... What am I doing wrong? :confused:

I'm not sure except, unless the images are where you say that they are in the code, IE would do that. Make sure the image paths are correct here:


var photos=new Array();
//Specify images, optional link, optional target:
photos[0]=['files/photo1.jpg', 'http://www.google.com', '_blank'] //Image w/link and target
photos[1]=['files/photo2.jpg', 'http://www.dynamicdrive.com'] //Image w/link
photos[2]=['files/photo3.jpg'] //Plain Image
photos[3]=['files/photo4.jpg']
photos[4]=['files/photo5.jpg']
photos[5]=['files/photo6.jpg']
photos[6]=['files/photo7.jpg']
photos[7]=['files/photo8.jpg']
photos[8]=['files/photo9.jpg']

and that they all exist. That's for the second one. The first one shouldn't have that problem but, it doesn't preload as well. In any case, all your images should be available to either script as listed in its array.

Generally, you should insert scripts of this type into your page using a text editor after copying them from the web, in this case, by using your browser's 'view source'. It would be virtually impossible for me to tell anything more specific than that without seeing your code and knowing at least which script you are trying to use.

MarciaB
09-05-2006, 12:43 PM
Thanks for all your trouble, but it doesn't work. :( I did all the things you wrote already. I send you my code anyway. The second one is in it. I left the links as they where. BTW this page is a page I use for try-outs, so it's a bit of a mess... If you don't have time to answer me, that's ok...Thanks again.

blm126
09-05-2006, 11:03 PM
I took a quick look through that file. First off, you have two <title> tags. Secondly, it appears you have two copies of the script copied into that file. One of them has the default images. Remove the second one, I don't think you wan t it there.

jscheuer1
09-06-2006, 01:30 AM
I took a quick look through that file. First off, you have two <title> tags. Secondly, it appears you have two copies of the script copied into that file. One of them has the default images. Remove the second one, I don't think you wan t it there.

All that and more, do remove the second duplicate script and - get rid of this:


<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

and the red stuff here:


<body text="#000000" background="bg.jpg" onstart="MM_preloadImages('buttons/button3.gif','buttons/button5.gif')"onload="start();">