We have this initial iframe code:
<iframe allowtransparency="true" frameborder="0" scrolling="no" width="160" height="120" src="http://www.gmodules.com/gadgets/ifr?url=http://ciupercomania.googlecode.com/svn/trunk/flickr-slideshow-simple.xml&up_CCOL=%23FFFFFF&up_SCOL=%23FFFFFF&up_PWH=160&up_PHT=120&up_DTime=3000&up_TTime=3000&up_NAB=No&up_RND=Yes&up_CLP=No&up_FEED=https://www.flickr.com/photos/123749019@N08/sets/72157644161519777"></iframe>
which for me say something like this
<iframe [COLOR="#FF0000"]some frame display settings[/COLOR] + the source composed by ([COLOR="#008000"]behavior driving script[/COLOR] + [COLOR="#800080"]custom content setting[/COLOR] + [COLOR="#0000FF"]FEED url[/COLOR])></iframe>
So, if all these are correct and this is how suppose to work than something is wrong. Why? becasue the a FEED url is only an appendix; something which is there but have no use anymore.
reading (again) the autors instructions, i found out that the code used by me for the iframe, wasn’t fully the original code, which should look like:
<iframe allowtransparency="true" frameborder="0" scrolling="no" width="160" height="120" src="http://www.gmodules.com/gadgets/ifr?url=http://ciupercomania.googlecode.com/svn/trunk/flickr-slideshow-simple.xml&up_PWH=160&up_PHT=120&up_DTime=2000&up_TTime=3000&up_RND=Yes&up_CLP=No&up_NAB=Yes&up_SCOL=%23fff&up_BCOL=%23fff&up_CCOL=%23fff&up_SET=72157644203160489"></iframe>
and there i need to change only the ID of the photo album. so, the final code should look like:
<iframe id="myIframe" allowtransparency="true" frameborder="0" scrolling="no" width="160" height="120"></iframe>
<script>
var currentDate = new Date();
var currentMonth = currentDate.getMonth();
var baseSrc= 'http://www.gmodules.com/gadgets/ifr?url=http://ciupercomania.googlecode.com/svn/trunk/flickr-slideshow-simple.xml&up_PWH=160&up_PHT=120&up_DTime=2000&up_TTime=3000&up_RND=Yes&up_CLP=No&up_NAB=Yes&up_SCOL=%23fff&up_BCOL=%23fff&up_CCOL=%23fff&up_SET=';
var albums = [
"72157644203145229",
"72157644203023628",
"72157644658452893",
"72157644203029388",
"72157644617542914",
"72157644603864001",
"72157644562981576",
"72157644658463213",
"72157644203160489",
"72157644604321892",
"72157644603872451",
"72157644202997660",
]
var currAlbumUrl = albums[currentMonth];
var iframeSrc = baseSrc + currAlbumUrl;
document.getElementById("myIframe").src=iframeSrc;
</script>
it’s functional, thank you.
BUT, i have another request now: since i found out that this “display” can be solved with script too (without iframe).
<script src="http://www.gmodules.com/gadgets/ifr?url=http://ciupercomania.googlecode.com/svn/trunk/flickr-slideshow-simple.xml&up_SET=[COLOR="#FF0000"]72157644617542914[/COLOR]&up_PWH=480&up_PHT=360&up_DTime=&up_TTime=&up_RND=&up_CLP=&up_NAB=&up_SCOL=%23c3d9ff&up_BCOL=%23f00&up_CCOL=%23d1dae3&up_PWidth=490&up_PHeight=420&synd=open&w=510&h=440&title=Diaporama+Flickr+(Photoset)&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
which is the best way to go, with script or with iframe? how is faster for loading?..
and one more thing. i took a look inside this used xml and there is a lot “unused default settings… which are repeated in the script too” but since there is html and javascripts (or jquery) commands in that file. Can be imported/writen in “my” script, to void loading/calling an external file? is hard to import only the important details/commands? I asking too much? Thank you.