Just do copy/paste where ever you want.
1) If you want this at one page level.. add it in content editor web part.
2) If you want this for all the pages.. add this at master page level.
3) If you want this for few of the pages and all pages are referring same page layout..add it at page layout level..
Note: Before do copy/paste the below script just keep in mind about image references and .js file
1) If you want this at one page level.. add it in content editor web part.
2) If you want this for all the pages.. add this at master page level.
3) If you want this for few of the pages and all pages are referring same page layout..add it at page layout level..
Note: Before do copy/paste the below script just keep in mind about image references and .js file
Happy coding.. It's perfectly worked for me. Please let me know for any issues..