Convert HTML to .Js
Page 1 of 1 • Share •
Convert HTML to .Js
http://help.angel.msu.edu/tips/javascript/convert.php
/**edit**/
i've have discovered that the script generator used by the site sometimes cause errors when combining Multiple JavaScripts due to ' spaces ' put between the individual scripts or line breaks .. if this occurs, please refer to this manual process:
Start with your single/individual scripts
Change over to This:
save the combined scripts as one JS file then enter it into your sites/forum description area
/**edit**/
i've have discovered that the script generator used by the site sometimes cause errors when combining Multiple JavaScripts due to ' spaces ' put between the individual scripts or line breaks .. if this occurs, please refer to this manual process:
Start with your single/individual scripts
<script src="http://www.myhost.com/myJSfile.js"></script>
<script src="http://www.myhost.com/myJSfile2.js"></script>
<script src="http://www.myhost.com/myJSfile3.js"></script>
<script src="http://www.myhost.com/myJSfile4.js"></script>
Change over to This:
document.write('<script src="http://www.myhost.com/myJSfile.js" language="javascript"><\/script>');
document.write('<script src="http://www.myhost.com/myJSfile2.js" language="javascript"><\/script>');
document.write('<script src="http://www.myhost.com/myJSfile3.js" language="javascript"><\/script>');
document.write('<script src="http://www.myhost.com/myJSfile4.js" language="javascript"><\/script>');
save the combined scripts as one JS file then enter it into your sites/forum description area
<script src="http://www.myhost.com/myCOMBINED_JSfile.js" language="javascript"></script>
_________________

Permissions of this forum:
You cannot reply to topics in this forum
Home







