Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Lazy Load on hover on element https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4942 |
Page 1 of 1 |
Author: | sumanta [ 9. Aug 2018, 15:59 ] |
Post subject: | Lazy Load on hover on element |
I am able to lazy load iframe on click. How to activate lazy loading on hover? |
Author: | TinyWebGallery [ 9. Aug 2018, 21:52 ] |
Post subject: | Re: Lazy Load on hover on element |
Please see http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/lazy-loading#e25 the onclick is only an example. you can use e.g. onmouseover as well there. Best, Michael |
Author: | sumanta [ 10. Aug 2018, 19:32 ] |
Post subject: | Re: Lazy Load on hover on element |
But I could not find on how to add onmouseover and generating the corresponding shortcode. In the example shortcode (as given below), there is no option for onclick or onmouse event. [advanced_iframe securitykey="your key" src="http://examples.tinywebgallery.com/example3u4/example.html" use_shortcode_attributes_only="true" id="example25" height="1200" width="1600" show_part_of_iframe="true" show_part_of_iframe_x="460" show_part_of_iframe_y="400" show_part_of_iframe_width="500" show_part_of_iframe_height="260" show_part_of_iframe_next_viewports="460,180,800,720" show_part_of_iframe_next_viewports_loop="true" iframe_zoom="2" enable_lazy_load="true" enable_lazy_load_threshold="5000" enable_lazy_load_fadetime="5000" enable_lazy_load_manual="true" enable_lazy_load_manual_element="#button25"] |
Author: | TinyWebGallery [ 10. Aug 2018, 21:02 ] |
Post subject: | Re: Lazy Load on hover on element |
example 25 has 2 ways to add this to an element: enable_lazy_load_manual_element="#button25" -> this is a onclick event added automatcially But as you see I have a onclick="aiLoadIframe_example25();" added manually added to the first link. so you have to add this manually in your case to your element onmouseover ="aiLoadIframe_example25();" Best, Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |