{"id":53892,"date":"2021-11-12T03:01:22","date_gmt":"2021-11-11T17:01:22","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=53892"},"modified":"2021-11-13T16:01:27","modified_gmt":"2021-11-13T06:01:27","slug":"marquee-placeholder-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/marquee-placeholder-primer-tutorial\/","title":{"rendered":"Marquee Placeholder Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/marquee_placeholder.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Marquee Placeholder Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/marquee_placeholder.jpg\" title=\"Marquee Placeholder Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Marquee Placeholder Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve got what we think is a very interesting proof of concept web application for you today.  What do you think of &#8230;<\/p>\n<blockquote><p>\nMarquee Placeholder\n<\/p><\/blockquote>\n<p> &#8230; combining that &#8230;<\/p>\n<ul>\n<li>HTML <a target=_blank title='HTML marquee element information from W3schools' href='https:\/\/www.w3schools.in\/html-tutorial\/marquee-tag\/'>marquee<\/a> element for that &#8220;Eat at Joe&#8217;s&#8221; or <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=2AE5O_kor2Q#t=2m42s'>&#8220;share ticker tape&#8221;<\/a> feeling &#8230; combined with &#8230;<\/p>\n<li>HTML input type=text textbox &#8220;placeholder&#8221; attribute existant before the textbox is given a value<\/li>\n<\/ul>\n<p> &#8230; way to get a long but important explanation to the user even when the textbox is not wide enough to fit the &#8220;placeholder&#8221; explanation?<\/p>\n<p>You will see trying our pretty simple HTML <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/marquee_placeholder.html_GETME\">marquee_placeholder.html<\/a> calling external Javascript <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/marquee_placeholder.js_GETME\">marquee_placeholder.js<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/marquee_placeholder.html\" title=\"Click picture\">web application<\/a> below, with thanks to <a target=_blank title='Useful link' href='https:\/\/stackoverflow.com\/questions\/2057682\/determine-pixel-length-of-string-in-javascript-jquery\/25467363#25467363'>this useful link<\/a> &#8230;<\/p>\n<div class=\"container demo animated\"><iframe data-onload=\"(this.contentWindow || this.contentDocument).document.getElementById('tbe').innerHTML=(this.contentWindow || this.contentDocument).document.getElementById('tbe').innerHTML.replace('Textbox element with a long placeholder','Textbox with long placeholder')'; (this.contentWindow || this.contentDocument).document.getElementById('tbe').style.paddingBottom='1px';\" style='width:100%;height:280px;' src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/marquee_placeholder.html\"><\/iframe><\/div>\n<p><\/p>\n<p> &#8230; that this can be alternative idea on mobile platforms to show what on non-mobile we have happening when we hover over an HTML element (with that element&#8217;s title attribute), quite often.  Cute, huh?!<\/p>\n<p><i><b>Stop Press<\/b><\/i><\/p>\n<p>Take a look at this blog page&#8217;s <a href='#s#andabit=-60'>&#8220;Search&#8221; textbox<\/a>.  It now uses a &#8220;Marquee Placeholder&#8221;.  Tune in tomorrow to read more about why!<\/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='#d53892' onclick='var dv=document.getElementById(\"d53892\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/textbox\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d53892' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve got what we think is a very interesting proof of concept web application for you today. What do you think of &#8230; Marquee Placeholder &#8230; combining that &#8230; HTML marquee element for that &#8220;Eat at Joe&#8217;s&#8221; or &#8220;share ticker &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/marquee-placeholder-primer-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":[112,1549,2364,409,576,609,652,1928,2643,997,1986,1200,1675,3852,2167,3853,1360,2257],"class_list":["post-53892","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-attribute","tag-element","tag-explanation","tag-external-javascript","tag-html","tag-input","tag-javascript","tag-marquee","tag-placeholder","tag-programming","tag-proof-of-concept","tag-stop-press","tag-textbox","tag-ticker-tape","tag-title","tag-tutprial","tag-value","tag-width"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/53892"}],"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=53892"}],"version-history":[{"count":25,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/53892\/revisions"}],"predecessor-version":[{"id":53930,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/53892\/revisions\/53930"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=53892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=53892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=53892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}