The scripts folder is in on the root of the server (Tomcat) created where the html files are located (ROOT). The functions.js is in the same directory with the HTML files.
2. The functions.js file has the following content:
However, when I refresh the page, the fade in does not occur.
I'm probably missing something basic.
I've modified the paths to the jquery library, but that didn't do it. The HTML also had some onLoad logic to other JS code which I removed, but that didn't help either.
<body> <div id="content"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum nec eros. Duis erat sem, fringilla quis, malesuada ut, condimentum rutrum, metus. Pellentesque aliquam. Donec cursus justo ac ligula. Cras nunc tellus, pharetra a, ullamcorper faucibus, mollis quis, tellus. Sed nibh. Aenean venenatis erat id elit. Donec molestie elit nec ipsum euismod accumsan. Aenean porttitor neque vel nisl. Aliquam tempus libero et purus. Integer in turpis. Curabitur et nisl a libero ullamcorper hendrerit. Ut est nulla, posuere vitae, facilisis sed, aliquam dictum, est. Sed vitae ligula pellentesque erat tristique pharetra. Duis consequat viverra dui. Nullam libero massa, vulputate euismod, semper eu, pulvinar vel, pede. Nulla fermentum tincidunt dui. Mauris non magna. </div> </body> </html> </pre></blockquote>
Note: for a fade effect you wouldn't use show(). That will create a :scale in" effect. Use fadeIn() as I show in this example.