- From: Julian <juliusromo@terra.es>
- Date: Mon, 22 Mar 2004 12:31:08 +0100
- To: <www-svg@w3.org>
- Message-ID: <019701c41001$2bed4c00$11001aac@julian>
Hello to all. First of all, sorry for my poor english. I'm spanish, and have a little idea of talking english, but I'll try to be understood. I'm new in SVG, but I think it will be a good tool for my project. I'm designing a strategy-game in PHP-MySQL, and although I have advanced a lot in it, I have the problem with the maps. They would have to "colour-update", showing the owner of the territories. For example, I have a medieval map of Ireland. Suppose kingdom A conquest province number 10. This province has the following code. <rect x="840" width="140" y="290" height="40" font-size="18" fill="#000000"/> #000000 was the colour of the ancient owner, but, as the province has been conquest, the province would have to show new kingdom colour (lets say #FFFFFF). Could I say something similar to this to get the right colour? <rect x="840" width="140" y="290" height="40" font-size="18" fill= <?php ....script to get the right colour ?> /> If I can't, is there a possibility to make it to work with PHP-MySQL just to work in game? Thank you very much.
Received on Monday, 22 March 2004 07:30:11 UTC