Originally Posted by
yellowbird
Hi . I implemented the widescreen slideshow from, acorn, egg, and siren sometime ago. I know there have been discussions on code changes, but they go back and forth-over my head. Attached is the supersite so you can look at the current current coding. The html code body on the placeholder in the main website is:
<iframe src="https://www.cbsi-online.com/autoslider/auto-slider.htm#xl_xr_page_auto-slider" width=100% height=100% scrolling=no frameborder=0 marginheight=0 marginwidth=0></iframe>
Please recommend code changes if any are needed. Thanks. Nancy
Nancy, if this were my customer, this is the start of what I would do:
Main Site Placeholder for slider:
Code:
<iframe
seamless
src="https://www.cbsi-online.com/autoslider/auto-slider.htm#xl_xr_page_auto-slider"
name="cbs-slider"
title="Covering Central Business Systems Inc. core specialisms: A3 Multifunctionals; A4 Multifunctionals; Printers; Business Applications; Computers; Service & Support; Secure Document Destruction Services"
loading="lazy"
style="border: none; width: 100%; height: 100%;"
>
<p>Your browser does not support iframes.</p>
<p>If it did it would shows slides about Central Business Systems Inc. core specialisms: A3 Multifunctionals; A4 Multifunctionals; Printers; Business Applications; Computers; Service & Support; Secure Document Destruction Services</p>
</iframe>
A lot of your attributes are ignored by HTML5.
Presentation slider:
- Every slide must have a Page Title - they won't show but are essential assistance for screen readers.
- A page description will also assist.
- I would make use of the Image Filename feature if you have it.
- Do include Caption (Alt text) in all main images.
- Every slide should have a White Page background where all the slides' content does not fill the 1150x420px page size - you might otherwise get flashes of colour if the main website does not have a White backdrop.
- I assume you are keeping Scale to Fit Width on as you will have a Variant showing a smaller version. Think of the 3G overhead of doing this.
- Remember if you have more to say on a slide, you can adjust the time, slide by slide (e.g., sDispTimes = [10, 6, 17, 6, 5, 7]; I think as it has been a time...).Page 3 could then have slide-ins for the bottom detail.
- The full stop in Page 4 annoys me.
- The CSS can be pruned and corrected:
Code:
<script>
sDispTimes = [10];
function sswitch(){
var n=xr_curp+1;
if (n==xr_spapn) n=0;
xr_spapp(n);
setTimeout(sswitch,sDispTimes[n%sDispTimes.length]*1000);
}
setTimeout(sswitch,sDispTimes[0]*1000);
</script>
Code:
<style>
.zoomThis{
animation: slideZoom linear 10s;
animation-iteration-count: 1;
transform-origin: 50% 50%;
}
@keyframes slideZoom{
0% { transform: scale(1.00); }
100% { transform: scale(1.50); }
}
#xr_palrt, #xr_pnava {
display:none !important;
}
</style>
I can see no reason for the .ZoomThis part.
Acorn
Bookmarks