FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Can somebody do me a help?





heart`princess
I'm really tired of looking for scripts in the web. Well, I'm looking for one that can teach me or tell me how to choose or set the layout of their choice in another's site. I really want to know this because I think it would be fun for users to choose the layout they want.
friscofrankie
When I was trying to decide on color schemes and style for a website I tried this little dittiy
Code:

<?php
$style=($_POST['style']);
print("
        <head>
                <title> something</title>
                <meta content=\"text/html; charset=ISO-8859-1\" http-equiv=\"Content-Type\"></meta>
                <script type=\"text/javascript\" src=\"/dev/scripts/exbox.js\"></script>
                <link rel=\"stylesheet\" href=\"$style\" type=\"text/css\"></link>
</head>
<body>\n");
print("$style\n\n");
?>


        <div class="head-l">
                <img src="images/chedi.gif" alt="Chedis in the sunset" title="Chedis in the sunset"/>
                <table class="l-menu">
                        <tr><td>Menu</td></tr>
                        <tr><td>Travels</td></tr>
                        <tr><td>Market day</td></tr>
                        <tr><td>Laos</td></tr>
                        <tr><td>Craftsfollk</td></tr>
                        <tr><td>Some Other</td></tr>
                </table>
        </div>

                <form class="validator" method="post" action="test.php">
                 Select a style:<br/>
                <select name="style">
                        <option value="test.css">Default</option>
                        <option value="midnight.css">Midnight</option>
                        <option value="sunny.css">Sunny</option>
                </select><br/><input type="submit" value=" OK "/>
                </form>




        <div class="head-c">
        <img src="/test/images/title.gif" alt="Isaan Imports"/>
                <br/>
                Travels in S. E. Asia
    </div>

        <div class="head-r">
                <a onclick="javascript:window.open('http://www.kitco.com/connecting.html');">
                <img style="float: right" src="http://kitconet.com/charts/metals/silver/t24_ag_xx_usoz_4.gif" width="136" height="92" alt="[Most Recent Quotes from www.kitco.com]"  title="Nice page to track spot metal prices"/></a>
        </div>

<div class="body-text">
<?php
$textfile='data/testread';
$slurp=file_get_contents($textfile);
$slurp=nl2br($slurp);
print("$slurp");
?>

</div>
<div class="footer">
        Some Co
        1492SomeStreet Ave
       Big City, California, 94502
        <a href="mailto:your email&amp;#0064;bigserver.net"> EMAIL US!!</a>
</div>
</body>
</html>
</

Was quick and dirty but it works. just set up your style sheet to position the elements where you want 'em.
make as many as you want
JagatWorld
ah, do you mean that you want something like an online webdesigner ?

so that you can customize or design your own website ? or apply schemes to the webiste basing on the users choice ?

le us know........ Cool
Aelita
heart`princess wrote:
I'm really tired of looking for scripts in the web. Well, I'm looking for one that can teach me or tell me how to choose or set the layout of their choice in another's site. I really want to know this because I think it would be fun for users to choose the layout they want.


You want to make several themes and let the user pick which one he/she wants right?
Related topics
Need help.. I don't Know wats the problem but plz help me
Help In Php-nuke
Phpbb upgrade to 2.01.8.. can somebody help me with that
Can somebody help me to make my site interactive
CAN SOMEONE HELP? I DON'T UN DERSTAND HOW TO UPLOAD WEBSITE!
Help with SimplePHPblog
SOS Guys I realy need ur help!
JavaScript Help
Need help in installing phpBB
help with call of duty 4
HELP! My account unactivated itself!!!!!
I specifying end my site!Please somebody help me!
Monetize You Website or Blog
HELP!!!
Session directory permissions issue
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.