Reputation: 3
what is the proper path to source js?
<script type="text/javascript">
function downloadJSAtOnload() {
var element = document.createElement("script");
element.src = "/public_html/wp-content/plugins/revslider/js/jquery.tipsy.js";
document.body.appendChild(element);
}
if (window.addEventListener)
window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", downloadJSAtOnload);
else window.onload = downloadJSAtOnload;
</script>
when i use this i got error:
Failed to load resource: the server responded with a status of 404 (Not Found)
thank you..
Upvotes: 0
Views: 45
Reputation: 53351
Looks like http:/yoururl.com/wp-content/plugins/revslider/js/jquery.tipsy.js
did the trick for you. If you would be so kind as to mark this the accepted answer... :)
Upvotes: 1