The use of $ as function name is quite unfortunate. This causes clashes with other javascript frameworks and thus this script cannot be used with such providers as weebly or webnode. Therefore I propose to rename:
function $(a){document.write(a);}
as:
function addhtml(a){document.write(a);}
I have tested this and it seams to work well (at least with weebly).
BTW. I have ajaxified your script a bit, so if you allow me I would like to contribute my code to this project.
Regards
Karol Kowalik
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
The use of $ as function name is quite unfortunate. This causes clashes with other javascript frameworks and thus this script cannot be used with such providers as weebly or webnode. Therefore I propose to rename:
function $(a){document.write(a);}
as:
function addhtml(a){document.write(a);}
I have tested this and it seams to work well (at least with weebly).
BTW. I have ajaxified your script a bit, so if you allow me I would like to contribute my code to this project.
Regards
Karol Kowalik