[JavaScript] Impossible to see the animated sprites - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1) +--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3) +--- Thread: [JavaScript] Impossible to see the animated sprites (/showthread.php?tid=72227) |
[JavaScript] Impossible to see the animated sprites - gwen226 - 11-24-2018 Hello, So here, as the title indicates I would like to display an animated image with a script built into my view.php. So I started by creating and launching my .php page out CodeIgniter (there is no problem all works) but as soon as I try to open my view the script starts but the image does not appear.However, I have checked that the path of the image in the script is good, so if someone sees what the problem is? Here is my view.php: PHP Code: <!DOCTYPE html> Thanks for your help ! RE: [JavaScript] Impossible to see the animated sprites - InsiteFX - 11-25-2018 Place your script in document.ready RE: [JavaScript] Impossible to see the animated sprites - gwen226 - 11-25-2018 (11-25-2018, 04:40 AM)InsiteFX Wrote: Place your script in document.ready Thx but I don't understand the syntax ... can you show me an example without reciting all my code? I have to do that in my view.php ? RE: [JavaScript] Impossible to see the animated sprites - gwen226 - 11-26-2018 how do you use document.ready pls RE: [JavaScript] Impossible to see the animated sprites - InsiteFX - 11-26-2018 It depends on what JavaScript you are using. Code: // For plain JavaScript. But there you go. |