Reply to Re: css to act like a simple 2 frame setup? yes or no

Your name:

Reply:


Posted by S Kalynuik on 03/13/06 18:38

I found the problem using a HTML to Javascript converter, so the following
code wotks great and over 100 pages will save some 4600 lines of code:
I kept the same call line as before in each html file:
<script language="javascript" type="text/javascript"
src="ktptgs-head.js"></script>

but the js script file now contains only this:


<!--
function writeJS(){
var str='';
str+=' <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"
id=\"table1\" class=\"c3\">';
str+=' <tr>';
str+=' <td>';
str+=' <img src=\"menu_images\/mlt.gif\" border=\"0\" width=\"303\"
height=\"28\" alt=\"mlt\" \/><img src=\"menu_images\/mp.gif\" border=\"0\"
width=\"80\" height=\"28\" alt=\"mp\" \/><img src=\"menu_images\/mrt.gif\"
border=\"0\" width=\"303\" height=\"28\" alt=\"mrt\" \/>';
str+=' <br \/>';
str+=' <img src=\"menu_images\/mlb.gif\" border=\"0\" width=\"303\"
height=\"97\" alt=\"mlb\" \/><img src=\"menu_images\/tutani.gif\"
border=\"0\" width=\"80\" height=\"97\" alt=\"tutani\" \/><img
src=\"menu_images\/mrb.gif\" border=\"0\" width=\"303\" height=\"97\"
alt=\"mrb\" \/>';
str+=' <\/td>';
str+=' <\/tr>';
str+=' <\/table>';
str+=' <table border=\"1\" cellspacing=\"0\" cellpadding=\"0\"
id=\"table2\" class=\"c3\">';
str+=' <tr>';
str+=' <td>';
str+=' <img src=\"menu_images\/menuleft.gif\" width=\"4\" height=\"32\"
alt=\"menuleft\" \/><\/td>';
str+=' <td colspan=\"2\">';
str+=' <!-- Main Menu-Buttons -->';
str+=' <table align=\"center\" cellpadding=\"0\" cellspacing=\"0\"
border=\"0\" id=\"table3\" class=\"c4\">';
str+=' <tr>';
str+=' <td title=\"index\" align=\" center\" class=\"c5\">';
str+=' <a href=\"index.html\" target=\"_parent\">';
str+=' <img src=\"wbimg\\imgn0.gif\" rsrc=\"wbimg\\imgo0.gif\"
border=\"0\" width=\"90\" height=\"30\" alt=\"Index\" \/><\/a><\/td>';
str+=' <td title=\"creatures 1 &amp; 2\" align=\" center\"
class=\"c5\">';
str+=' <a href=\"mc12.html\" target=\"_parent\">';
str+=' <img src=\"wbimg\\imgn1.gif\" rsrc=\"wbimg\\imgo1.gif\"
border=\"0\" width=\"90\" height=\"30\" alt=\"Creatures 1 &amp; 2\"
\/><\/a><\/td>';
str+=' <td title=\"dragon warrior monsters\" align=\" center\"
class=\"c5\">';
str+=' <a href=\"mdwm.html\" target=\"_parent\">';
str+=' <img src=\"wbimg\\imgn2.gif\" rsrc=\"wbimg\\imgo2.gif\"
border=\"0\" width=\"90\" height=\"30\" alt=\"Dragon Warrior Monsters\"
\/><\/a><\/td>';
str+=' <td title=\"japanese pangya\" align=\" center\" class=\"c5\">';
str+=' <a href=\"mjp.html\" target=\"_parent\">';
str+=' <img src=\"wbimg\\imgn3.gif\" rsrc=\"wbimg\\imgo3.gif\"
border=\"0\" width=\"90\" height=\"30\" alt=\"Japanese Pangya\"
\/><\/a><\/td>';
str+=' <td title=\"ogre battle saga\" align=\"center\" class=\"c5\">';
str+=' <a href=\"mobs-start.html\" target=\"_parent\">';
str+=' <img src=\"wbimg\\imgn4.gif\" rsrc=\"wbimg\\imgo4.gif\"
border=\"0\" width=\"90\" height=\"30\" alt=\"Ogre Battle Saga\"
\/><\/a><\/td>';
str+=' <td title=\"wizardry\" align=\" center\" class=\"c5\">';
str+=' <a href=\"mw.html\" target=\"_parent\">';
str+=' <img src=\"wbimg\\imgn5.gif\" rsrc=\"wbimg\\imgo5.gif\"
border=\"0\" width=\"90\" height=\"30\" alt=\"Wizardry\" \/><\/a><\/td>';
str+=' <td title=\"guestbook\" align=\" center\" class=\"c5\">';
str+=' <a href=\"mgb.html\" target=\"_parent\">';
str+=' <img src=\"wbimg\\imgn6.gif\" rsrc=\"wbimg\\imgo6.gif\"
border=\"0\" width=\"90\" height=\"30\" alt=\"Guestbook\" \/><\/a><\/td>';
str+=' <\/tr>';
str+=' <\/table>';
str+=' <script type=\"text\/javascript\" language=\"JavaScript1.1\"
src=\"rotatingimagemain.txt\"><\/script>';
str+=' <!-- Main Menu-Buttons End --><\/td>';
str+=' <td>';
str+=' <img src=\"menu_images\/menuright.gif\" width=\"4\" height=\"32\"
alt=\"menuright\" \/><\/td>';
str+=' <\/tr>';
str+=' <\/table>';
document.write(str);
}
writeJS();
//-->

Thank-you for those that helped, and thank-you to those that were in the
process of helping.

BTW to those interested here is the link I used to change HTML to
Javascript:
http://www.accessify.com/tools-and-wizards/developer-tools/html-javascript-convertor/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация