/    Sign up×
Community /Pin to ProfileBookmark

Slideshow browser compatable

Hello

I have adapted a slideshow script for my web page Which works in all browsers (i think) but only fades in IE 6. Does anybody know of a way to make it fade in Netscape?

Thankyou

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
http://www.w3.org/TR/html4/loose.dtd“>
<html>
<head>

<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>

<title>PORTFOLIO</title>

<link href=”port2.css” rel=”stylesheet” type=”text/css”>
<link href=”roll4.css” rel=”stylesheet” type=”text/css”>

<script language=”javascript” type=”text/javascript”>

var SlideShowSpeed = 3000;
var CrossFadeDuration = 2;
var picture = new Array();
var caption = new Array();
var links = new Array();

picture[0] = “pic/bcn2.jpg”;
picture[1] = “pic/bcn1b.jpg”;
picture[2] = “pic/bcn3.jpg”;
picture[3] = “pic/bcn4.jpg”;

caption[0] = “pic/btn1.gif”;
caption[1] = “pic/btn2.gif”;
caption[2] = “pic/btn3.gif”;
caption[3] = “pic/btn4.gif”;

links[0] = “#”;
links[1] = “javascript:doImagePopUp1()”;
links[2] = “http://www.google.com“;
links[3] = “http://www.google.com“;

count=0
preload= new Array()
for(i =0 ; i < picture.length; i++){
preload[i] = new Image();
preload[i].src = picture[i];
}

function control(how){
if (how==”F”){count++}
if (how==”B”){count–}

if(count<0){count=picture.length-1}
if(count>picture.length-1){count=0}

if (document.all){
document.images.picturebox.style.filter=”blendTrans(duration=2)”;
document.images.picturebox.style.filter=”blendTrans(duration=CrossFadeDuration)”;
document.images.picturebox.filters.blendTrans.Apply();
}

document.images.picturebox.src = picture[count]
document.images.captionbox.src = caption[count]
document.getElementById(“theLink”).href = links[count];

if (document.all){
document.images.picturebox.filters.blendTrans.Play();
}

}
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_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_findObj(n, d) { //v4.01
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 && d.getElementById) x=d.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];}
}
function doImagePopUp1(){
doImagePopUpWindow =window.open(“big.htm”,”ImagePopup”,”left=20,top=150,width=450,height=251″);
}
function setDescription(strText)
{
document.getElementById(“objDescription”).innerHTML = strText;
}

</script>
</head>
<body onLoad=”showHot=true;self.focus(); MM_preloadImages(‘pic/arr1b.gif’,’pic/arr2b.gif’,’pic/bot1.gif’,’pic/bot2.gif’,’pic/bot4.gif’,’pic/bot5.gif’,’pic/bot6.gif’)”>

<div class=”container”>

<div class=”btnbox”><img src=”pic/btn1.gif” name=captionbox width=60 height=22></div>

<table width=”390″ border=”0″ cellspacing=”0″ cellpadding=”0″ align=”right”>
<tr>
<td width=”330″><a href=”#” id=”theLink”><img src=”pic/bcn2.jpg” name=picturebox width=330 height=220 border=0></a></td>
<td width=”60″ valign=”bottom”><a href=”javascript:control(‘F’);” class=”aro2″ ></a><a href=”javascript:control(‘B’);” class=”aro1″></a></td>
</tr>
</table>
</div>
div>
</div>
</body>
</html>

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@Willy_DuittMar 20.2005 — Firstly; your question has already been answered here:

http://www.codingforums.com/showthread.php?t=54829

Secondly; please return the proper credits to that script both here and on your page so it does not continue to be distributed without the proper credits ([i]please note the credits browser compatability statement for the fading[/i])


http://www.codelifter.com/main/javascript/slideshow3.html

<!--

SlideShow with Captions and Cross-Fade

(C)2002 by CodeLifter.com

Shows images and accompanying captions.

Browsers: NS4-7,IE4-6

Fade effect only in IE; degrades gracefully.

NS4 shows default caption only.

INSTRUCTIONS:

Copy this entire script into a completely blank

page. Follow the commented instructions within.

//-->

// (C) 2002 www.CodeLifter.com

// http://www.codelifter.com

// Free for all users, but leave in this header.
[/quote]


And lastly; I would just like to give a shout out to Warren...

The anti-credit advocate... ?

.....Willy
Copy linkTweet thisAlerts:
@jamespatrickauthorMar 20.2005 — Hi, thanks for the reply. No problem will put credits back, they got taken out with the amount of changes that have been made.

thanks again
Copy linkTweet thisAlerts:
@Warren86Mar 20.2005 — Jamespatrick:

The respondent who ordered you to restore the code credits isn't a lawyer. I am.


The code in question is not copyrighted. You have the ABSOLUTE RIGHT to remove the credits or do anything else you choose with the code, and no one can prevent you from doing just that, not even the author of the code.


ALL CODE, wherever found, on the internet or otherwise, that isn't copyrighted, is in the public domain and may be freely used by anyone in any manner at any time.


This is a JavaScript forum. People who dispense legal advice here without a license are committing a crime.

Removing credits from non-copyrighted code is your absolute legal right.

If authors of code don't want to place their code in the public domain then they should copyright it, otherwise, don't whine when someone takes what is clearly no longer your exclusive property and makes changes to it you don't like.
Copy linkTweet thisAlerts:
@Willy_DuittMar 20.2005 — [i]Originally posted by Warren86 [/i]

[B]Jamespatrick:



The respondent who ordered you to restore the code credits isn't a lawyer. I am.


The code in question is not copyrighted. You have the ABSOLUTE RIGHT to remove the credits or do anything else you choose with the code, and no one can prevent you from doing just that, not even the author of the code.


ALL CODE, wherever found, on the internet or otherwise, that isn't copyrighted, is in the public domain and may be freely used by anyone in any manner at any time.


This is a JavaScript forum. People who dispense legal advice here without a license are committing a crime.

Removing credits from non-copyrighted code is your absolute legal right.

If authors of code don't want to place their code in the public domain then they should copyright it, otherwise, don't whine when someone takes what is clearly no longer your exclusive property and makes changes to it you don't like. [/B]
[/QUOTE]


Heh Pony Boy;

As was previously pointed out...

Your legal advise is as worthless as your coding advice... :rolleyes:

Just because you are a piece of shyte with no respect for the works of others and are morally bankrupt to boot, is no reason to lead others down the same path...

Besides, perhaps you should read what one of the moderators feels upon the same subject... I give him credit, he is much more eloquent than I...

http://www.webdeveloper.com/forum/showthread.php?s=&postid=336643#post336643

Nice riding you Warren...

Hi-Ho Silver!! ?

.....Willy
×

Success!

Help @jamespatrick spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...