Ok, where we have:
Code:
var resizeFlag=sliderwidth.indexOf('%')!==-1? 1 : 0
if (resizeFlag){
var percentWidth=parseInt(sliderwidth, 10)/100
sliderwidth=parseInt(sliderwidth, 10)*5+'px'
function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}
function widenIt(){
var allWide=window.innerWidth? window.innerWidth : iecompattest().clientWidth
var firstContainer=document.getElementById? document.getElementById("firstC") : document.all.firstC
firstContainer.style.width=allWide*percentWidth-20+'px'
}
onresize=widenIt;
}
Change it to:
Code:
var resizeFlag=sliderwidth.indexOf('%')!==-1? 1 : 0
if (resizeFlag){
var percentWidth=parseInt(sliderwidth, 10)/100
function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}
function widenIt(){
var allWide=window.innerWidth? window.innerWidth : iecompattest().clientWidth
var firstContainer=document.getElementById? document.getElementById("firstC") : document.all.firstC
var nextContainer=document.getElementById? document.getElementById("nextC") : document.all.nextC
firstContainer.style.width=allWide*percentWidth-20+'px'
nextContainer.style.width=allWide*percentWidth-20+'px'
}
onresize=widenIt;
}
and where it has:
Code:
write('<div id="firstC" style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
Make it:
Code:
write('<div id="firstC" style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div id="nextC" style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
That will take care of the background issues. Now, about that pesky gap. There were two ways I thought it would look good, depending upon one's opinion. One is where the two images touch each other, the other is where the two images overlap by 1 pixel, making the adjacent border width look the same as the the top and bottom border widths, I like this second option better. Either way, find this line in the code (be careful, there are a few similar looking lines to this one, but only one exactly like it):
Code:
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"
Change it to this:
Code:
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap-3+"px"
Then set the:
Code:
//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=-1
for the 1 pixel overlap, or 0 for the two images to touch each other.
Bookmarks