user3250798
user3250798

Reputation: 3

proper path to source js

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

Answers (1)

Elliot Bonneville
Elliot Bonneville

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

Related Questions