Welcome to forums of Dark eFfectX !
Enter the digital revolution. Design technology, coding & gaming.

The exchange of Digital Knowledge while Anime, Manga and Technology collide in a Alchemy of Thought and Illusion.

Learn the magic of today from the science of tomorrow. Web site modifications, custom style sheets (CSS) and coding support + more.

Guests, please register or log in to view the entire forum.

Convert HTML to .Js

View previous topic View next topic Go down

Convert HTML to .Js

Post  Bad Wolf on Fri Nov 23, 2007 6:29 pm


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>

Bad Wolf

Age : 39
Number of posts : 1643
Location : The Evil Empire

Reputation : 6
Usage Points : 649
Registration date : 2006-12-24

Title: The Digital Alchemist
555/555  (555/555)
670/777  (670/777)

View user profile http://www.darkfx.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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