jQuery
-1
archive,category,category-jquery,category-71,bridge-core-3.0.1,qodef-qi--no-touch,qi-addons-for-elementor-1.5.3,qode-page-transition-enabled,ajax_updown,page_not_loaded,,vertical_menu_enabled,side_area_uncovered_from_content,qode-theme-ver-28.7,qode-theme-bridge,disabled_footer_top,qode_header_in_grid,wpb-js-composer js-comp-ver-6.8.0,vc_responsive,elementor-default,elementor-kit-6

jQuery

I needed to have an HTML5 video with a clickable poster frame. The first issue was that Safari would preload the movie, removing the poster frame after a few seconds. I fixed that by setting preload="none": <div id="promovid"> <video id="video" controls="controls" poster="video-poster.jpg" preload="none" width="640" height="480"> ...

A simple script to detect when a checkbox is clicked. What you do with once you've detected the click is up to you. <html> <head> <script src="http://www.google.com/jsapi"></script> <script> google.load("jquery", "1.3.2"); google.setOnLoadCallback(function() { $('#agree').click( function() { if($(this).attr('checked')){ ...

IE6's well known margin problems can be solved many ways, such as using CSS that only IE6 will read. I like to use CSS and jQuery as follows: CSS: #wrapper  {   margin: 0 auto;   width: 800px;   ...

Mastodon