{"id":514,"date":"2005-02-01T00:00:00","date_gmt":"2005-01-31T23:00:00","guid":{"rendered":"https:\/\/wwwneu.strehle.de\/tim\/weblog\/archives\/2005\/02\/01\/449\/"},"modified":"2005-02-01T00:00:00","modified_gmt":"2005-01-31T23:00:00","slug":"449","status":"publish","type":"post","link":"https:\/\/www.strehle.de\/tim\/weblog\/archives\/2005\/02\/01\/449\/","title":{"rendered":"JavaScript Triggers"},"content":{"rendered":"<p>Peter-Paul Koch on A List Apart &#8211; <a href=\"http:\/\/www.alistapart.com\/articles\/scripttriggers\/\" title=\"JavaScript Triggers: A List Apart\">JavaScript Triggers<\/a>:<\/p>\n<p>&#8222;CSS triggers are well known. The class and id attributes allow you to fully control the presentation of your websites. [&#8230;]<\/p>\n<p>The behavior layer should function in exactly the same way. We should separate behavior and structure by discarding inline event handlers like onmouseover=&#8220;switchImages(&#8218;fearful&#8216;,6,false)&#8220;. Instead, as with CSS, we should use triggers to tell the script where to deploy the behavior.&#8220;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Peter-Paul Koch on A List Apart &#8211; JavaScript Triggers: &#8222;CSS triggers are well known. The class and id attributes allow you to fully control the presentation of your websites. [&#8230;] The behavior layer should function in exactly the same way. We should separate behavior and structure by discarding inline event handlers like onmouseover=&#8220;switchImages(&#8218;fearful&#8216;,6,false)&#8220;. Instead, as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[1],"tags":[],"class_list":["post-514","post","type-post","status-publish","format-standard","hentry","category-weblog"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/comments?post=514"}],"version-history":[{"count":0,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/514\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/media?parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/categories?post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/tags?post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}