PDA

View Full Version : Slideshow on Macs, iPads, iPhones



shf
09-29-2011, 11:44 AM
1) Script Title: Fade Slideshow

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

The slideshow is on the homepage of the site. When users with macs, iphones, ipads and blackberries try to go to the site, they get the error message: Error: Div with ID "fadeshow1"

Please see the code at
http://policyleadershipinstitute.org/

Please help as soon as you can!! Clients are very upset. Thank you.

jscheuer1
09-29-2011, 04:13 PM
There is an unclosed HTML comment block that is allowing browsers with stricter parsing algorithms to ignore most of the page, hence in fact:


Error: Div with ID "fadeshow1" not found on page.

which I believe is the full error message, is true.

Using HTML comment blocks inside script and style tags, once required for legacy browsers, is now a dangerous practice. These browsers are long gone now, and even if they were not, could never render a modern web page anyway, regardless of these useless comment tags. So, get rid of them. The one in question here is (highlighted and red from the page's source code):


. . . fadeduration: 1000,
descreveal: "never",
togglerid: ""

})

</script>

<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
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_pr . . .

As I say, just get rid of it.

The browser cache may need to be cleared and/or the page refreshed to see changes.