Skip to main content

Posts

Showing posts with the label Image Hosting

Handling Image Loading Errors - img tag onerror

The onerror attribute in an HTML <img> tag is an event handler attribute that allows you to specify a script to run if an error occurs while loading an image. This can be useful for handling situations where an image fails to load, such as when the image URL is incorrect or the image is missing. Here's the basic syntax for using the onerror attribute with an <img> tag: <img src="image.jpg" onerror="imgError()"> In this example, if the image "image.jpg" fails to load, the imgError() function will be called. You can define the imgError() function in a <script> tag in the same HTML document or in an external JavaScript file: <script> function imgError() { // Code to handle the error, such as replacing the image with a placeholder console.log('Image failed to load'); } </script> You can also pass some information to the error handling function using this , which refers to the <img>

Free Unlimited File hosting & Video Hosting on siasky.net

Free Unlimited File hosting & Video Hosting on siasky.net This website  https://siasky.net/ is verified on GitHub (Means it trusted )  https://github.com/SkynetLabs .  So there is no hesitation on writing article about it. It provides free file hosting  . Decentralized Internet for a  Free Future Skynet is a hosting platform that makes it easy to join the decentralized internet movement. Start your free account today. Bonus (Use/Play the Video on Website/Blogger) Know More about Custom HTML5 Video Player :-  https://codexdindia.blogspot.com/2021/05/plyrio-video-player-integration-skin-Customizing-and-Adding-Download-Button-to-plyr.html Some More Tips :- Upload Multiple Files Deploy your HTML Website Here or Upload your folder Dashboard Feature - Detailed Analytics  100gb Space in Free Account -  Make it Unlimited  by Using Many Emails - Many Accounts (Using  temporary emails  create different accounts

Unlimited Image and Short Video Hosting on Imgur.com

 Unlimited Image and Short Video Hosting on Imgur.com The thing for getting unlimited image hosting is to get the direct image url. That we can use in the src attribute of <img/> Tag. To show Image on our website using image cdn. You can also use alternate services like pinterest . For Getting the direct image or also the direct video URL you have to go to imgur and upload your files there. Like :-  https://imgur.com/a/f6d7eVi  I uploaded an Image here. Logo Now Right Click on Image then copy Image address i.e. :-  https://i.imgur.com/T6FedGu.png  and use it in img tag :- Host Videos All Process are same for Video File Right click and copy video  address . and you will get the direct video URL. Like :-  https://i.imgur.com/NACeqYD.mp4  and Then Use the URL in html video tag . Like :-  <video controls width="100%">   <source src=" https://i.imgur.com/NACeqYD.mp4 " type="video/mp4">   Your browser does not suppo

Random Posts