Recently, I came across this piece of code:
<div style="text-align:center; max-width:500px; width:100%; margin:auto"> <script type="text/javascript" src="transition_example.js"></script></div>
Here is the content of transition_example.js:
var show1=new slideshow({
wrapperid: "myslide",
wrapperclass: "sliceClass",
imagearray: [
["1.jpg"],
["2.jpg"]
],
pause: 9000, //pause between content change (millisec)
transduration: 1000 //duration of transition (affects only IE users)
})
I am struggling to figure out how to make the images display at 100% width so that the JavaScript script adjusts accordingly when the screen size changes.
If anyone could provide some guidance on achieving this, it would be greatly appreciated. Thank you in advance!