In my html code:
<head>
<script type = "text/javascript" src = "elements/effects/my_js_code.js"></script>
</head>
In elements/effects/js/my_js_code.js:
function ($) { $('head').append("<link type = 'text/css' rel =
'stylesheet' href = 'elements/effects/css/my_js_code.css'>"); /* more
code */ }
how to detect the full path of my_js_code.js from my_js_code.js?
function ($) { $('head').append("<link type = 'text/css' rel =
'stylesheet' href = '" + MY_FUNC_CALCULATE_PATH("../css/my_js_code.css") + "'>"); /* more
code */ }