ddaba
12-31-2011, 11:05 PM
Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
Flexi Slideshow inside middle column of a 3-column div.
Image float text truncated in the middle column only in IE8 (worked fine Firefox/Chrome) (http://www.fanninsentinel.com) so I added
clear:both;
overflow:visible;
under colleft div css
That made text extend from center column into right column in IE8 & Firefox.
This ONLY happens with slideshow code and not on any of the other pages with 3-column flexible divs.
Below is code that extends text into third column behind jpgs:
...typical stuff
/* Header styles */
#header {
clear:both;
float:left;
width:100%;
}
#header {
border-bottom:1px solid #000;
}
#header p,
#header h1,
#header h2 {
padding:.4em 15px 0 15px;
margin:0;
}
}
/* column container */
.colmask {
position:relative;
clear:both;
float:left;
width:100%; /* width of whole page */
overflow:hidden; /* chops off any overhanging divs */
}
/* common column settings */
.colright,
.colmid,
.colleft {
clear:both; /*try to fix IE8 bug*/
overflow:visible; /*try to fix IE8 bug*/
float:left;
width:100%;
position:relative;
}
.col1 {
float:left;
position:relative;
padding:0 0 1em 0;
}
.col2,
.col3 {
float:left;
position:relative;
padding:0 0 1em 0;
overflow:hidden;
}
/* 3 Column settings */
.threecol {
background:#eee;
}
.threecol .colmid {
right:25%;
background:#fff;
}
.threecol .colleft {
right:50%;
background:#f4f4f4;
}
.threecol .col1 {
width:46%;
left:102%; /* 100% plus left padding of center column */
}
.threecol .col2 {
width:21%; /* Width of left column content (column width minus padding on either side) */
left:31%; /* width of (right column) plus (center column left and right padding) plus (left column left padding) */
}
.threecol .col3 {
width:21%; /* Width of right column content (column width minus padding on either side) */
left:85%; /* (100% - left column width) plus (center column left and right padding) plus (left column left and right padding) plus (right column left padding) */
}
/* Footer styles */
#footer {
clear:both;
float:left;
width:100%;
border-top:1px solid #000;
}
#footer p {
padding:10px;
margin:0;
}
</style>
<title>Fannin Sentinel</title>
</head>
<body>
<div id="header" align="right">Subscribe: <a href="delivery.html">Home Delivery</a></div>
<div class="colmask threecol">
<div class="colmid">
<div class="colleft">
<div class="col1">
<!--Left Column start-->
<img src="images/FS logo2.jpg" alt="Fannin Sentinel logo" width="444" height="112" /></div>
<div class="col2">
<!-- Center Column start -->
<a href="http://blueridgemountains.com/"><img src="images/FCchamber.jpg" name="FCchamber" width="148" height="110" id="FCchamber" target="_blank"/></a></div>
<!--Right Column start-->
<div class="col3" align="right"><a href="http://bestofblueridge.biz/"><img src="images/BRBAlogo.gif" width="140" height="110" target="_blank"/></a></div><!--End <div class="col3">-->
</div>
</div>
</div>
<div id="header" align="center">29 State Street, P.O. Box 799, Blue Ridge, Georgia 30513 706-258-3406<br /><br /></div>
<div class="colmask threecol">
<div class="colmid">
<div class="colleft">
<div class="col1">
<script language="JavaScript1.2">
/******
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
********/
var variableslide=new Array()
//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
variableslide[0]=['images/RayTidman.jpg', 'http://www.FanninSentinel.com/features.html', '<p class="posted">Posted Dec. 22, 2011 9:32 p.m.</p><h2>Assisted living facility to come to county</h2><p>Dr. Ray Tidman confirmed</p>']
variableslide[1]=['images/TracySummers.jpg', 'http://www.FanninSentinel.com/features.html', '<p class="posted">Posted Dec. 22, 2011 9:32 p.m.</p><h2>Xtreme Teens returns</h2><p>Xtreme Teens—and its coordinator, Tracy Summers—is back.<br />Read <a href="http://www.fanninsentinel.com/features.html#xtreme">more</a>.</p>']
variableslide[2]=['images/BuddyFinch.jpg', 'http://www.FanninSentinel.com/government.html#McCaysville', '<p class="posted">Posted Dec. 22, 2011 9:32 p.m.</p><h2>McCaysville applies for water loan</h2><p>During the McCaysville City Council meeting Dec. 13<br />Read <a href="http://fanninsentinel.com/government.html#McCaysville">more</a>.</p>']
variableslide[3]=['images/FCSOAwards12-17-11Davenport.jpg', 'http://www.FanninSentinel.com/features.html#FCSO', '<p class="posted">Posted Dec. 22, 2011 9:32 p.m.</p><h2>Sheriff’s Christmas Party includes awards</h2><p>Sheriff Dane Kirby congratulated<br />Read <a href="http://fanninsentinel.com/features.html#FCSO">more</a>.</p>']
var slidewidth='580px' //set to width of LARGEST image in your slideshow
var slideheight='200px' //set to height of LARGEST image in your slideshow, plus any text description
var slidebgcolor='transparent'
var slidedelay=9000
////Do not edit pass this line//////
var ie=document.all
var dom=document.getElementById
for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}
var currentslide=0
function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="5" style="float:left; margin:0 10px 0 0">'
//contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="5">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]
//if (variableslide[currentslide][3]!="")
//contentcontainer+=variableslide[currentslide][3]
if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}
if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')
function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}
if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
</script>
<ilayer id="slidensmain" width=&{slidewidth}; height=&{slideheight}; visibility=hide><layer id="slidenssub" width=&{slidewidth}; left=0 top=0></layer></ilayer>
<h2 align="center">VIDEO OF THE WEEK!</h2>
<p align="center">The Fannin Sentinel accepts submissions of videos <br />
three minutes or shorter regarding anything <br />
related to Fannin County.<br />
See our first video!</p>
<p align="center"><strong>Video of the Week:</strong> Rotary Mobile Minute<br />
<br />
<iframe width="420" height="315" align="center" src="http://www.youtube.com/embed/M050oSr_KhA" frameborder="3" allowfullscreen></iframe>
</p>
</div>
<div class="col2">
<ul>
<li><a href="features.html">Features</a><br />
</li>
<li><a href="government.html">Government</a><br />
</li>
<li><a href="schools.html">Schools</a><br />
</li>
<li><a href="events.html">Events</a><br />
</li>
<li><a href="photos.html">Photos</a></li>
</ul>
<p> </p>
<a href="mailto:fanninsentinel.gail@tds.net"><img src="images/AD.jpg" width="148" height="148" /></a>
</div>
<div class="col3">
<p align="right"><a href="mailto:fanninsentinel.gail@tds.net"><img src="images/AD.jpg" width="140" height="140" /></a></p>
<p align="right"><a href="http://georgiasentinel.com/" target="_blank"><img src="images/GeorgiaSentinel.jpg" width="150" height="117" alt="Click here to contact the Georgia Sentinel" /></a></p>
</div>
</div>
</div>
</div>
<div id="footer" align="center"><a href="weather.html"><img src="images/emergencyupdate.jpg" width="100%" height="200" /></a>
<p class="copyright" align="center">© 2011 Fannin Sentinel</p>
</div>
</body>
</html>
Flexi Slideshow inside middle column of a 3-column div.
Image float text truncated in the middle column only in IE8 (worked fine Firefox/Chrome) (http://www.fanninsentinel.com) so I added
clear:both;
overflow:visible;
under colleft div css
That made text extend from center column into right column in IE8 & Firefox.
This ONLY happens with slideshow code and not on any of the other pages with 3-column flexible divs.
Below is code that extends text into third column behind jpgs:
...typical stuff
/* Header styles */
#header {
clear:both;
float:left;
width:100%;
}
#header {
border-bottom:1px solid #000;
}
#header p,
#header h1,
#header h2 {
padding:.4em 15px 0 15px;
margin:0;
}
}
/* column container */
.colmask {
position:relative;
clear:both;
float:left;
width:100%; /* width of whole page */
overflow:hidden; /* chops off any overhanging divs */
}
/* common column settings */
.colright,
.colmid,
.colleft {
clear:both; /*try to fix IE8 bug*/
overflow:visible; /*try to fix IE8 bug*/
float:left;
width:100%;
position:relative;
}
.col1 {
float:left;
position:relative;
padding:0 0 1em 0;
}
.col2,
.col3 {
float:left;
position:relative;
padding:0 0 1em 0;
overflow:hidden;
}
/* 3 Column settings */
.threecol {
background:#eee;
}
.threecol .colmid {
right:25%;
background:#fff;
}
.threecol .colleft {
right:50%;
background:#f4f4f4;
}
.threecol .col1 {
width:46%;
left:102%; /* 100% plus left padding of center column */
}
.threecol .col2 {
width:21%; /* Width of left column content (column width minus padding on either side) */
left:31%; /* width of (right column) plus (center column left and right padding) plus (left column left padding) */
}
.threecol .col3 {
width:21%; /* Width of right column content (column width minus padding on either side) */
left:85%; /* (100% - left column width) plus (center column left and right padding) plus (left column left and right padding) plus (right column left padding) */
}
/* Footer styles */
#footer {
clear:both;
float:left;
width:100%;
border-top:1px solid #000;
}
#footer p {
padding:10px;
margin:0;
}
</style>
<title>Fannin Sentinel</title>
</head>
<body>
<div id="header" align="right">Subscribe: <a href="delivery.html">Home Delivery</a></div>
<div class="colmask threecol">
<div class="colmid">
<div class="colleft">
<div class="col1">
<!--Left Column start-->
<img src="images/FS logo2.jpg" alt="Fannin Sentinel logo" width="444" height="112" /></div>
<div class="col2">
<!-- Center Column start -->
<a href="http://blueridgemountains.com/"><img src="images/FCchamber.jpg" name="FCchamber" width="148" height="110" id="FCchamber" target="_blank"/></a></div>
<!--Right Column start-->
<div class="col3" align="right"><a href="http://bestofblueridge.biz/"><img src="images/BRBAlogo.gif" width="140" height="110" target="_blank"/></a></div><!--End <div class="col3">-->
</div>
</div>
</div>
<div id="header" align="center">29 State Street, P.O. Box 799, Blue Ridge, Georgia 30513 706-258-3406<br /><br /></div>
<div class="colmask threecol">
<div class="colmid">
<div class="colleft">
<div class="col1">
<script language="JavaScript1.2">
/******
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
********/
var variableslide=new Array()
//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
variableslide[0]=['images/RayTidman.jpg', 'http://www.FanninSentinel.com/features.html', '<p class="posted">Posted Dec. 22, 2011 9:32 p.m.</p><h2>Assisted living facility to come to county</h2><p>Dr. Ray Tidman confirmed</p>']
variableslide[1]=['images/TracySummers.jpg', 'http://www.FanninSentinel.com/features.html', '<p class="posted">Posted Dec. 22, 2011 9:32 p.m.</p><h2>Xtreme Teens returns</h2><p>Xtreme Teens—and its coordinator, Tracy Summers—is back.<br />Read <a href="http://www.fanninsentinel.com/features.html#xtreme">more</a>.</p>']
variableslide[2]=['images/BuddyFinch.jpg', 'http://www.FanninSentinel.com/government.html#McCaysville', '<p class="posted">Posted Dec. 22, 2011 9:32 p.m.</p><h2>McCaysville applies for water loan</h2><p>During the McCaysville City Council meeting Dec. 13<br />Read <a href="http://fanninsentinel.com/government.html#McCaysville">more</a>.</p>']
variableslide[3]=['images/FCSOAwards12-17-11Davenport.jpg', 'http://www.FanninSentinel.com/features.html#FCSO', '<p class="posted">Posted Dec. 22, 2011 9:32 p.m.</p><h2>Sheriff’s Christmas Party includes awards</h2><p>Sheriff Dane Kirby congratulated<br />Read <a href="http://fanninsentinel.com/features.html#FCSO">more</a>.</p>']
var slidewidth='580px' //set to width of LARGEST image in your slideshow
var slideheight='200px' //set to height of LARGEST image in your slideshow, plus any text description
var slidebgcolor='transparent'
var slidedelay=9000
////Do not edit pass this line//////
var ie=document.all
var dom=document.getElementById
for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}
var currentslide=0
function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="5" style="float:left; margin:0 10px 0 0">'
//contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="5">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]
//if (variableslide[currentslide][3]!="")
//contentcontainer+=variableslide[currentslide][3]
if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}
if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')
function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}
if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
</script>
<ilayer id="slidensmain" width=&{slidewidth}; height=&{slideheight}; visibility=hide><layer id="slidenssub" width=&{slidewidth}; left=0 top=0></layer></ilayer>
<h2 align="center">VIDEO OF THE WEEK!</h2>
<p align="center">The Fannin Sentinel accepts submissions of videos <br />
three minutes or shorter regarding anything <br />
related to Fannin County.<br />
See our first video!</p>
<p align="center"><strong>Video of the Week:</strong> Rotary Mobile Minute<br />
<br />
<iframe width="420" height="315" align="center" src="http://www.youtube.com/embed/M050oSr_KhA" frameborder="3" allowfullscreen></iframe>
</p>
</div>
<div class="col2">
<ul>
<li><a href="features.html">Features</a><br />
</li>
<li><a href="government.html">Government</a><br />
</li>
<li><a href="schools.html">Schools</a><br />
</li>
<li><a href="events.html">Events</a><br />
</li>
<li><a href="photos.html">Photos</a></li>
</ul>
<p> </p>
<a href="mailto:fanninsentinel.gail@tds.net"><img src="images/AD.jpg" width="148" height="148" /></a>
</div>
<div class="col3">
<p align="right"><a href="mailto:fanninsentinel.gail@tds.net"><img src="images/AD.jpg" width="140" height="140" /></a></p>
<p align="right"><a href="http://georgiasentinel.com/" target="_blank"><img src="images/GeorgiaSentinel.jpg" width="150" height="117" alt="Click here to contact the Georgia Sentinel" /></a></p>
</div>
</div>
</div>
</div>
<div id="footer" align="center"><a href="weather.html"><img src="images/emergencyupdate.jpg" width="100%" height="200" /></a>
<p class="copyright" align="center">© 2011 Fannin Sentinel</p>
</div>
</body>
</html>