Nico said:
Edwin said:
Hmmm. A php switch with stylesheet links.
Sound interesting. I done that a long time ago for a website.
Right! Something like
<?php
if ($_GET['style']=="special"){
echo '<link href="/styles/special.css" rel="stylesheet"
type="text/css">';
}
?>
Thanks for you reaction.
I had use the following for a example rollover menu page:
<?php
$s = $_GET['style'];
if (!($s)) { $s = 'style'; }
?>
<link rel="stylesheet" type="text/css" <?php echo ' href="' . $s .
'.css"'; ?> >
Some where in the <body>
<ul>
<li><a href="index.php?style=vert#vertical">Vertical css
rollover</a></li>
<li><a href="index.php?style=hor#horizontal">Horizontal css
rollover</a></li>
<li><a href="index.php?style=vertunord#vertunorded">Vertical css
rollover with an unorderd list elements</a></li>
<li><a href="index.php?style=horunord#horunorded">Horizontal css
rollover with an unorderd list elements</a></li>
<li><a href="index.php#test1">This is a horizontal css rollover
test</a></li>
</ul>
Or I could use e.g.:
<?php
$s = $_GET['sw1'];
if (!($s)) { $s = 'sw1'; }
?>
In switch.php
<?php include("{$s}.php"); ?>
In sw1.php
<a href="switch.php?sw1=sw2">
In sw2.php
<a href="switch.php?sw2=sw1">
--
Edwin van der Vaart
http://www.evandervaart.nl/ Edwin's persoonlijke web site
Explicitly no permission given to Forum4Designers, onlinemarketingtoday,
24help.info, issociate.de, velocityreviews, umailcampaign.com,
gthelp.com, webfrustration.com, excip.com and many other to duplicate
this post.