Jump to content

Javascript stopping page loading


toolman

Recommended Posts

Hi,

 

When I add the following javascript, my page stops loading. I have tried adding it to various places in my page, but it doesn't seem to make a difference.

 

 

<script type="text/javascript">
jQuery(document).ready(function() 
{
    $('#parallax .parallax-layer')
    .parallax({
        mouseport: $('#parallax')
    });
});
</script> 

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/266491-javascript-stopping-page-loading/
Share on other sites

This is why you need to ask clear questions. In your original post you said it was PHP code, which it's not, it's HTML/Javascript, and it's on a .tpl!

If you had said from the beginning it was on a tpl (I assume it's Smarty, but I don't know if any other engines use .tpl) this thread would be much shorter.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.