{"id":69438,"date":"2025-08-12T03:01:00","date_gmt":"2025-08-11T17:01:00","guid":{"rendered":"https:\/\/www.rjmprogramming.com.au\/ITblog\/?p=69438"},"modified":"2025-08-12T16:13:11","modified_gmt":"2025-08-12T06:13:11","slug":"tabular-single-row-youtube-audio-or-video-gallery-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/tabular-single-row-youtube-audio-or-video-gallery-tutorial\/","title":{"rendered":"Tabular Single Row YouTube Audio or Video Gallery Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/yacht_rock.html\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Tabular Single Row YouTube Audio or Video Gallery Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/swipe_media_audiovideo.gif\" title=\"Tabular Single Row YouTube Audio or Video Gallery Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Tabular Single Row YouTube Audio or Video Gallery Tutorial<\/p><\/div>\n<p>Today we&#8217;ve connected &#8230;<\/p>\n<ul>\n<li>yesterday&#8217;s <a title='Tabular Single Row Image Gallery Primer Tutorial' href='#tsrigpt'>Tabular Single Row Image Gallery Primer Tutorial<\/a> Image Gallery ideas with &#8230;<\/li>\n<li>our &#8220;Brady Bunch&#8221; YouTube iframe arrangement peer to peer suite (eg. <a target=\"_blank\" title='The Wrecking Crew' href='https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/the_wrecking_crew.html' rel=\"noopener\">The Wrecking Crew<\/a>)<\/li>\n<\/ul>\n<p> &#8230; which now have three new functionality options &#8230;<\/p>\n<ul>\n<li>&lt;&#8211;&gt; &#8230; link to align the (previously) &#8220;Brady Bunch&#8221; YouTube iframes into a single row in the same web browser tab<\/li>\n<li>&lt;&#8211;&gt;<sup>A+V<\/sup> &#8230; call of yesterday&#8217;s Media Gallery web application playing our &#8220;inhouse&#8221; YouTube iframe video playing web application in a new web browser tab<\/li>\n<li>&lt;&#8211;&gt;<sub>A-V<\/sub> &#8230; link to our &#8220;inhouse&#8221; audio stream only YouTube iframe playing functionality in a new web browser tab<\/li>\n<\/ul>\n<p> &#8230; involving changes to &#8230;<\/p>\n<ul>\n<li><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/youtube_brady_bunch.js--------GETME\" rel=\"noopener\">our changed<\/a> &#8230;<br \/>\n<code><br \/>\nvar ytlist='';<br \/>\n<br \/>\nif (('' + document.URL + ('' + location.hash)).indexOf('onerow=') != -1) {<br \/>\n  setTimeout(function(){<br \/>\n    var inis='';<br \/>\n    var iwis=document.getElementById('vplayer1').getBoundingClientRect().width;<br \/>\n    var ifsare=document.getElementsByTagName('iframe');<br \/>\n    for (var jtt=0; jtt&lt;ifsare.length; jtt++) {<br \/>\n      \/\/alert(ifsare[jtt].src);<br \/>\n      if (ifsare[jtt].src.indexOf('\/embed\/') != -1) {<br \/>\n        if (ytlist == '') {<br \/>\n          ytlist='' + ifsare[jtt].src.split('\/embed\/')[1].substring(0,11);<br \/>\n        } else {<br \/>\n          ytlist+=',' + ifsare[jtt].src.split('\/embed\/')[1].substring(0,11);<br \/>\n        }<br \/>\n      }<br \/>\n      ifsare[jtt].style.width='' + iwis + 'px';<br \/>\n    }<br \/>\n    var toho=document.getElementsByTagName('table')[0];<br \/>\n    var tih=toho.innerHTML;<br \/>\n    var newtih=tih;<br \/>\n    \/\/alert(tih);<br \/>\n    var thingos=tih.split('&lt;tr');<br \/>\n    for (var itt=3; itt&gt;=1; itt--) {<br \/>\n      if (itt == 1) {<br \/>\n        inis='&lt;tr' + thingos[itt].split('&lt;\/tr&gt;')[0] + '&lt;\/tr&gt;';<br \/>\n        newtih=newtih.replace(inis, inis.replace('&lt;\/tr&gt;','&lt;!--\/tr--&gt;'));<br \/>\n      } else if (itt == 3) {<br \/>\n        inis='&lt;tr' + thingos[itt].split('&lt;\/tr&gt;')[0] + '&lt;\/tr&gt;';<br \/>\n        newtih=newtih.replace(inis, inis.replace('&lt;tr&gt;','&lt;!--tr--&gt;'));<br \/>\n      } else {<br \/>\n        inis='&lt;tr' + thingos[itt].split('&lt;\/tr&gt;')[0] + '&lt;\/tr&gt;';<br \/>\n        newtih=newtih.replace(inis, inis.replace('&lt;tr&gt;','&lt;!--tr--&gt;').replace('&lt;\/tr&gt;','&lt;!--\/tr--&gt;'));<br \/>\n      }<br \/>\n    }<br \/>\n    toho.innerHTML=newtih;<br \/>\n    toho.style.width='1000%';<br \/>\n  }, 4000);<br \/>\n}<br \/>\n<br \/>\nsetTimeout(function(){<br \/>\n   var antwo='';<br \/>\n   if (ytlist == '') {<br \/>\n    var ifsare=document.getElementsByTagName('iframe');<br \/>\n    for (var jtt=0; jtt&lt;ifsare.length; jtt++) {<br \/>\n      \/\/alert(ifsare[jtt].src);<br \/>\n      if (ifsare[jtt].src.indexOf('\/embed\/') != -1) {<br \/>\n        if (ytlist == '') {<br \/>\n          ytlist='' + ifsare[jtt].src.split('\/embed\/')[1].substring(0,11);<br \/>\n        } else {<br \/>\n          ytlist+=',' + ifsare[jtt].src.split('\/embed\/')[1].substring(0,11);<br \/>\n        }<br \/>\n      }<br \/>\n    }<br \/>\n   }<br \/>\n   if (ytlist != '') {<br \/>\n     antwo+='&nbsp;&lt;a title=\"Audio and video plays of YouTube videos\" target=_blank href=\"\/HTMLCSS\/swipe_media.html?youtube=' + encodeURIComponent(ytlist) + '\"&gt;&lt;--&gt;&lt;sup&gt;A+V&lt;\/sup&gt;&lt;\/a&gt;';<br \/>\n     antwo+='&nbsp;&lt;a title=\"Audio only plays of YouTube videos\" target=_blank href=\"\/HTMLCSS\/swipe_media.html?audioyoutube=' + encodeURIComponent(ytlist) + '\"&gt;&lt;--&gt;&lt;sub&gt;A-V&lt;\/sub&gt;&lt;\/a&gt;';<br \/>\n   }<br \/>\n   if (document.URL.indexOf('?') != -1) {<br \/>\n    document.getElementById('wshuffle').innerHTML+='&nbsp;&lt;a title=\"Present in one table row\" target=_self href=\"' + document.URL.replace('?', '?onerow=' + Math.floor(Math.random() * 1989786)) + '\"&gt;&lt;--&gt;&lt;\/a&gt;' + antwo + '&nbsp;';<br \/>\n   } else {<br \/>\n    document.getElementById('wshuffle').innerHTML+='&nbsp;&lt;a title=\"Present in one table row\" target=_self href=\"' + document.URL + '?onerow=' + Math.floor(Math.random() * 1989786) + '\"&gt;&lt;--&gt;&lt;\/a&gt;' + antwo + '&nbsp;';<br \/>\n   }<br \/>\n}, 9000);<br \/>\n<\/code><br \/>\n &#8230; <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/youtube_brady_bunch.js--------GETME\" rel=\"noopener\">youtube_brady_bunch.js<\/a> being used in our inhouse <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/disco_version.html\" rel=\"noopener\">Disco<\/a> web application &#8220;peer to peer suite&#8221; web application &#8220;grandparent&#8221; level example &#8230;<\/li>\n<li><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/swipe_media.html-GETME\" rel=\"noopener\">&#8220;second draft&#8221;<\/a> <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/swipe_media.html-GETME\" rel=\"noopener\">swipe_media.html<\/a> <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/swipe_media.html\" rel=\"noopener\">Tabular Single Row Image Gallery<\/a> web application<\/li>\n<\/ul>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=\"_blank\" href='\/\/www.rjmprogramming.com.au\/ITblog\/tabular-single-row-youtube-audio-or-video-gallery-tutorial\/' rel=\"noopener\">Tabular Single Row YouTube Audio or Video Gallery Tutorial<\/a>.<\/p-->\n<hr>\n<p id='tsrigpt'>Previous relevant <a target=\"_blank\" title='Tabular Single Row Image Gallery Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/tabular-single-row-image-gallery-primer-tutorial\/' rel=\"noopener\">Tabular Single Row Image Gallery Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/swipe_media.html\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Tabular Single Row Image Gallery Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/swipe_media.gif\" title=\"Tabular Single Row Image Gallery Primer Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Tabular Single Row Image Gallery Primer Tutorial<\/p><\/div>\n<p>&#8220;Tabular Single Row Image Gallery&#8221; &#8230;<\/p>\n<blockquote><p>\nSmabular Single Row Image Gallery\n<\/p><\/blockquote>\n<p> &#8230; we&#8217;re sure is the reaction of some readers out there, to today&#8217;s &#8220;starting draft&#8221; for an idea we had.  Today&#8217;s part of the jigsaw we want to explore may be &#8220;ho hum&#8221; and &#8220;so non-mobile&#8221;, but we&#8217;re hoping the thread appeals to more modern ideas as we go along.<\/p>\n<p>So much for the apologies, and so let&#8217;s now look at the basis to this start &#8230;<\/p>\n<ul>\n<li>media (so far just image) &#8230;<\/li>\n<li>gallery &#8230; presented in &#8230;<\/li>\n<li>table &#8230; HTML element &#8230; in &#8230;<\/li>\n<li>single <i>tr<\/i> row<\/li>\n<li>deliberately overflowing to the right of the screen view of the webpage &#8230; and so &#8230;<\/li>\n<li>scrollable (ie. window scrollable) to &#8230; those right hand parts &#8230;<\/li>\n<li>only &#8220;media loaded&#8221; &#8230;<\/li>\n<li>as &#8220;scrolled to&#8221; <font size=1>or &#8220;stumbled upon&#8221;<\/font><\/li>\n<\/ul>\n<p>So far the <i>window scrollable<\/i> detection goes (thanks to <a target=\"_blank\" title='Useful link, thanks' href='https:\/\/stackoverflow.com\/questions\/10605197\/detect-if-user-is-scrolling' rel=\"noopener\">this useful link<\/a>) &#8230;<\/p>\n<p><code><br \/>\n  window.onscroll = function (e) {<br \/>\n     \/\/ called when the window is scrolled.<br \/>\n     vspos4=document.body.scrollTop;<br \/>\n     vspos3=document.body.scrollLeft;<br \/>\n     var vstdn=Math.ceil(eval('' + vspos3) \/ eval('' + amin));<br \/>\n     if (curtdn != vstdn) {<br \/>\n       checkthen(vstdn);<br \/>\n     }<br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; and the CSS produced <font color=blue>&#8220;wording (ie. non-media) content&#8221;<\/font> is produced down the bottom left of &#8220;inhouse WordPress Blog image cell background&#8221; ( possible because of background-size:contain ) we think is interesting &#8230;<\/p>\n<p><code><br \/>\n&lt;style&gt;<br \/>\n  td {<br \/>\n    border: 1px dotted green;<br \/>\n  }<br \/>\n  <br \/>\n  <font color=blue>.inhouse {<br \/>\n    vertical-align: bottom;<br \/>\n    padding-bottom: 20px;<br \/>\n  }<br \/>\n  <br \/>\n  .inhouse::after {<br \/>\n    content: 'Media Gallery \\a RJM Programming \\a August, 2025 \\a Thanks to Lorem Picsum at https:\/\/picsum.photos\/ \\a ' attr(alt);<br \/>\n    white-space: pre-wrap;<br \/>\n  }<\/font><br \/>\n&lt;\/style&gt;<br \/>\n<\/code><\/p>\n<p> &#8230; in a <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/swipe_media.html_GETME\" rel=\"noopener\">&#8220;first draft&#8221;<\/a> <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/swipe_media.html\" rel=\"noopener\">Tabular Single Row Image Gallery<\/a> web application for your perusal.  Thanks to <a target=\"_blank\" title='Lorem Picsum' href='https:\/\/picsum.photos\/' rel=\"noopener\">Lorem Picsum<\/a> regarding, as so often happens for us, when we&#8217;d like beautiful random images to be involved with web applications!<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d69433' onclick='var dv=document.getElementById(\"d69433\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/gallery\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d69433' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d69438' onclick='var dv=document.getElementById(\"d69438\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/youtube\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d69438' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today we&#8217;ve connected &#8230; yesterday&#8217;s Tabular Single Row Image Gallery Primer Tutorial Image Gallery ideas with &#8230; our &#8220;Brady Bunch&#8221; YouTube iframe arrangement peer to peer suite (eg. The Wrecking Crew) &#8230; which now have three new functionality options &#8230; &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/tabular-single-row-youtube-audio-or-video-gallery-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[113,5268,1580,257,281,367,475,587,590,2348,1643,3982,760,822,3440,914,997,1075,1917,1107,2056,1238,3312,1644,3906,1319,5267,1418,1583,5266,1493],"class_list":["post-69438","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-audio","tag-brady-bunch","tag-cell","tag-content","tag-css","tag-dropdown","tag-gallery","tag-iframe","tag-image","tag-image-gallery","tag-justification","tag-lorem-picsum","tag-media","tag-music-2","tag-peer","tag-peer-to-peer","tag-programming","tag-row","tag-scroll","tag-scrolling","tag-suite","tag-table","tag-tabular","tag-text-justification","tag-tr","tag-tutorial","tag-vide","tag-webpage","tag-window","tag-window-scroll","tag-youtube"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/69438"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=69438"}],"version-history":[{"count":7,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/69438\/revisions"}],"predecessor-version":[{"id":69447,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/69438\/revisions\/69447"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=69438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=69438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=69438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}