turefugio
12-03-2003, 11:41 AM
I have a table that contains a few js files and is show in all my pages (but the index). To save bandwidth I have decided to convert the this block of information to a js file, but I need to include a few js files, like banner rotations, add to favorites and announcements to this js file and I don't know how to make it work.
I have tried the following without success:
document.writeln('<script language="javascript1.2" src="0favorite.js" type="text/javascript"></script>');
document.writeln('<script language="javascript1.2" src="0favorite.js" type="text/javascript"><\/script>');
document.writeln('<script language=\"javascript1.2\" src=\"0favorite.js\" type=\"text/javascript\"><\/script>');
document.writeln('<script language="javascript1.2" src="0favorite.js" type="text/javascript">');
This is the complete 0table.js, which contains the table that is show in all my pages (the 0favorite.js is in the last line):
document.writeln(" <table bordercolorlight=\"#C1B76C\" border=\"0\" bordercolordark=\"#A89850\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"bottom\" height=\"45\"><p align=\"center\"><img height=\"24\" width=\"90%\" src=\"barflores.gif\" border=\"0\"></td></tr><tr><td><div align=\"center\"> ");
document.writeln(" <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td> ");
document.writeln(" <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"messagetop\"><tr><td bgcolor=\"#000000\" valign=\"middle\" align=\"center\"><font color=\"#FFFFFF\"><b><i>");
document.writeln(" </i></b></font></td></tr></table></td></tr><tr><td><div align=\"center\"> ");
document.writeln(" <table border=\"0\" cellpadding=\"0\" cellspacing=\"3\"><tr><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"><a href=\"1hazmehogar.html\" class=\"menu\">HAZME*HOGAR</a></td><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"></td><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"> ");
document.writeln(" <script language="javascript1.2" src="0favorite.js" type="text/javascript"></td><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"><a href=\"1mapa.html\" class=\"menu\">ÍNDICE*MAPA</a></td><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"><a href=\"#envia\" class=\"menu\">ENVÍA*PAGINA</a></td></table></div></td></tr></table></div></td><center></center></tr></table> ");
How can I make it work???
Everyting works but including the 0favorite.js inside the 0table.js file
In advance thanks a lot for your help
I have tried the following without success:
document.writeln('<script language="javascript1.2" src="0favorite.js" type="text/javascript"></script>');
document.writeln('<script language="javascript1.2" src="0favorite.js" type="text/javascript"><\/script>');
document.writeln('<script language=\"javascript1.2\" src=\"0favorite.js\" type=\"text/javascript\"><\/script>');
document.writeln('<script language="javascript1.2" src="0favorite.js" type="text/javascript">');
This is the complete 0table.js, which contains the table that is show in all my pages (the 0favorite.js is in the last line):
document.writeln(" <table bordercolorlight=\"#C1B76C\" border=\"0\" bordercolordark=\"#A89850\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"bottom\" height=\"45\"><p align=\"center\"><img height=\"24\" width=\"90%\" src=\"barflores.gif\" border=\"0\"></td></tr><tr><td><div align=\"center\"> ");
document.writeln(" <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td> ");
document.writeln(" <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"messagetop\"><tr><td bgcolor=\"#000000\" valign=\"middle\" align=\"center\"><font color=\"#FFFFFF\"><b><i>");
document.writeln(" </i></b></font></td></tr></table></td></tr><tr><td><div align=\"center\"> ");
document.writeln(" <table border=\"0\" cellpadding=\"0\" cellspacing=\"3\"><tr><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"><a href=\"1hazmehogar.html\" class=\"menu\">HAZME*HOGAR</a></td><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"></td><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"> ");
document.writeln(" <script language="javascript1.2" src="0favorite.js" type="text/javascript"></td><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"><a href=\"1mapa.html\" class=\"menu\">ÍNDICE*MAPA</a></td><td class=\"button\" onmouseover=\"this.className='cell_over';\" onmouseout=\"this.className='button';\" align=\"center\"><a href=\"#envia\" class=\"menu\">ENVÍA*PAGINA</a></td></table></div></td></tr></table></div></td><center></center></tr></table> ");
How can I make it work???
Everyting works but including the 0favorite.js inside the 0table.js file
In advance thanks a lot for your help