Page 1 of 1

jquery giving no effect

Posted: Sat Oct 01, 2016 7:21 am
by bastingse
Folks,
I'm using a jquery effect on a website but the result is zero.
As you can see here http://www.jqueryscript.net/demo/Create ... uery-CSS3/ the content blocks a jumping into the page from left and right while you are scrolling down.

Using this in a cmsimple template it does not work. What can cause the problem for this???
http://mosamprodukties.nl/index.php?Tijdlijn

Template Head:

Code: Select all

<head>
<link href='http://fonts.googleapis.com/css?family=Droid+Serif|Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<?php echo head();?>
<style type="text/css">
body, html {margin:0; padding:0; border:0;} /* Re-sets IE to "zero" for these values */
</style>
</head>
Template Body:

Code: Select all

</div>

<script src="js/main.js"></script> <!-- Resource jQuery -->
</body>
</html>
Any help is much appreciated!

Re: jquery giving no effect

Posted: Sat Oct 01, 2016 8:08 am
by frase
jQuery v1.11.3 -> jQuery v2.1.1 [edit] irrelevant

main.js ??? !!! not found

<!doctype html>

Re: jquery giving no effect

Posted: Sat Oct 01, 2016 10:35 am
by bastingse
frase wrote: main.js ??? !!! not found
http://mosamprodukties.nl/js/main.js

Re: jquery giving no effect

Posted: Sat Oct 01, 2016 10:39 am
by frase
Yes, exist on the server.
In template?
---

Doubtful, inside a Table-based Layout ...?

Re: jquery giving no effect

Posted: Sat Oct 01, 2016 11:20 am
by bastingse
frase wrote:Yes, exist on the server.
In template?
Yes, also in template. It was in the body first , i replace it to the header but noting did change
frase wrote:Doubtful, inside a Table-based Layout ...?
I replace it outside the table now, nothing change :(

Re: jquery giving no effect

Posted: Sat Oct 01, 2016 11:21 am
by frase
place the script inside the body-tag.

Re: jquery giving no effect

Posted: Sat Oct 01, 2016 11:30 am
by bastingse
frase wrote: <!doctype html>
I did forget this one... that did the trick :D
Thanks Frase !!!

Re: jquery giving no effect

Posted: Sat Oct 01, 2016 11:33 am
by frase
looks good.

often is it helpful: F12

But, where is your menu? Home...
[edit] okay ... i see