Jquery img src change on screen width/resize

Here is a quick example. http://jsfiddle.net/9v7ad/1/ <html> <img id=”my-img” src=””> </html> <script> $(document).ready(function(){ if($(window).width() < 640 ) { $(‘#my-img’).attr(‘src’,’http://www.24k.com.sg/images/uploads/hosting.jpg’); } if($(window).width() > 640 ) { $(‘#my-img’).attr(‘src’,’http://www.cadac.com/organice/Style%20Library/Images/organice/mainimg/mi-sol-hosted.jpg’); } }); $(window).resize(function() { if($(window).width() < 640 ) { $(‘#my-img’).attr(‘src’,’http://www.24k.com.sg/images/uploads/hosting.jpg’); } if($(window).width() > 640 ) { $(‘#my-img’).attr(‘src’,’http://www.cadac.com/organice/Style%20Library/Images/organice/mainimg/mi-sol-hosted.jpg’); } }); </script>

Most useful Fortigate commands for troubleshooting connections

I use this commands a lot when testing VPNs, ACL Policies, and basic communication problems. To see all configurations in your unit show full To see a brief configuration list show To restart a VPN tunnel (Change “Tennessee ” to phase1 name) diag vpn tunnel flush Tennessee diag…