This is for a very inefficient skin script I'm writing; the CMS I am using is based in PHP but generates static files, so in order to change skins I am opening the page in question and loading it into $url. From there I do an ereg and take out what I need. The script itself can be found:
http://equiller.com/skins/skin.txt And an example of it in use: http://equiller.com/skins/skin.php?url=http://equiller.com/markviii.htm&skin =tan What I need to do to complete this is to format my navigation depending on the skin being used. The navigation files are staticly generated as nav.htm in each area. Now, an easy way would just take: < div id=nav001><a href=#>navigation peice</a></div> < div id=nav002><a href=#>navigation peice</a></div> < div id=nav003><a href=#>navigation peice</a></div> < div id=nav004><a href=#>navigation peice</a></div> Then take each peice out, put some code around it and transform it into: <table cellpadding=0 cellspacing=2 border=1> <tr> <td id=nav001><a href=#>navigation peice</a></td></tr> <tr> <td id=nav002><a href=#>navigation peice</a></td></tr> <tr> <td id=nav003><a href=#>navigation peice</a></td></tr> <tr> <td id=nav004><a href=#>navigation peice</a></td></tr> </table> Is this possible? Is there any easier, less server-intensive way to do what I am attempting? Thanks for anyone's help! - Quiller equiller.com aijalon.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php