PDA

View Full Version : Another slideshow question



rcroome
06-03-2008, 03:51 PM
1) Script Title: Ultimate slideshow

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: Cant get the images to display.

The following code gives me a cursor that I can click on and it will take me to the coreect link, but I cannot see the images.

I've have tried and tried to get this to work.

Please help.

Thanks.

This in the <head>

var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["http://www.phuketpropertyandhomes.com/image-files/psd.jpg", "http://www.projectsuppliesdirect.com", "_new"];
fadeimages2[1]=["http://www.phuketpropertyandhomes.com/image-files/helicamad.jpg", "http://www.helicam-asia.com", "_new"];
fadeimages2[2]=["http://www.phuketpropertyandhomes.com/image-files/absolute.jpg", "http://www.seapearl-beach.com", "_new"];

This is in the <body>

<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages2, 150, 113, 0, 3000, 1, "R")
</script>


Thanks.

thetestingsite
06-03-2008, 11:06 PM
Just looking at the code you posted above, I can't see anything out of the ordinary that would cause an issue, so ...
Please post a link to the page on your site that contains the problematic script so we can check it out.

rcroome
06-03-2008, 11:25 PM
Thanks for looking at the code.

The page I'm using to test this is


http://www.phuketpropertyandhomes.com/phuket-architects.html

Thanks again.

thetestingsite
06-03-2008, 11:52 PM
Remove the highlighted code on your page:



if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="http://www.phuketpropertyandhomes.com/'+this.postimages[0].src+'"></div>')



Hope this helps.

rcroome
06-04-2008, 09:57 AM
This may sound wierd, but I didn't put that url in the code and when I go to look at it, it isn't there.

Somehow it gets added when the page loads. Is this possible?

This is how it looks in my file when I upload it to the server.

if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="http://www.phuketpropertyandhomes.com/'+this.postimages[0].src+'"></div>')


I see it now has the url once I paste it here.

However, if I just paste the bit from document.write as I have below, the URL is not present.

Can you explain what is happening?

I hope so.

document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')