HTML ver gevorderde |
|
Als je naar http://www.ec05goalball.be gaat en daar textversie neemt dan kan je bovenaan de grote van de text kiezen. Als je dit doet dan springt hij steeds terug naar de startpagina en wanneer je dan een link neemt dan geeft hij terug de standaard textgrote. De domeinnaam word gelinkt naar het subdomein http://goalball.webvisual.be en daar ondervind ik dus geen probleem. Weet iemand hoe ik dit kan oplossen?
De code tot aan het formulier is alsvolgt:
<?
session_start();
?>
<html>
<head>
<title>European Championship 2005 Goalball</title>
<style>
<?
if(isset($_GET['ts'])) {
session_unset(ts);
}
if($_GET['ts'] == 15 || $_SESSION['ts'] == 15) {
$_SESSION['ts'] = 15;
?>
P, TD, SELECT
{
font-family: arial;
font-size: 15px;
}
H3
{
font-family: arial;
font-size: 15px;
}
<?
} elseif($_GET['ts'] == 20 || $_SESSION['ts'] == 20) {
$_SESSION['ts'] = 20;
?>
P, TD, SELECT
{
font-family: arial;
font-size: 20px;
}
H3
{
font-family: arial;
font-size: 20px;
}
<?
} elseif($_GET['ts'] == 25 || $_SESSION['ts'] == 25) {
$_SESSION['ts'] = 25;
?>
P, TD, SELECT
{
font-family: arial;
font-size: 25px;
}
H3
{
font-family: arial;
font-size: 25px;
}
<?
} elseif($_GET['ts'] == 30 || $_SESSION['ts'] == 30) {
$_SESSION['ts'] = 30;
?>
P, TD, SELECT
{
font-family: arial;
font-size: 30px;
}
H3
{
font-family: arial;
font-size: 30px;
}
<?
} elseif($_GET['ts'] == 35 || $_SESSION['ts'] == 35) {
$_SESSION['ts'] = 35;
?>
P, TD, SELECT
{
font-family: arial;
font-size: 35px;
}
H3
{
font-family: arial;
font-size: 35px;
}
<?
} elseif($_GET['ts'] == 40 || $_SESSION['ts'] == 40) {
$_SESSION['ts'] = 40;
?>
P, TD, SELECT
{
font-family: arial;
font-size: 40px;
}
H3
{
font-family: arial;
font-size: 40px;
}
<?
}
?>
</style>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="10" cellspacing="0">
<tr>
<td align="right">
<form name="textsize">Text Size:
<select name="ts" class="tekstgrootteselectie" onchange="document.forms['textsize'].submit();">
<option value="15" <? if($_GET['ts'] == 15 || $_SESSION['ts'] == 15 || !isset($_GET['tg'])) { echo "selected"; } ?>>15</option>
<option value="20" <? if($_GET['ts'] == 20 || $_SESSION['ts'] == 20){ echo "selected"; } ?>>20</option>
<option value="25" <? if($_GET['ts'] == 25 || $_SESSION['ts'] == 25){ echo "selected"; } ?>>25</option>
<option value="30" <? if($_GET['ts'] == 30 || $_SESSION['ts'] == 30){ echo "selected"; } ?>>30</option>
<option value="35" <? if($_GET['ts'] == 35 || $_SESSION['ts'] == 35){ echo "selected"; } ?>>35</option>
<option value="40" <? if($_GET['ts'] == 40 || $_SESSION['ts'] == 40){ echo "selected"; } ?>>40</option>
</select> - <a href="../gfx/index.php">Graphic Version</a>
</form>
</td>
<? ?> <html> <head> <title>European Championship 2005 Goalball</title> <style> <? } if($_GET['ts'] == 15 || $_SESSION['ts'] == 15) { $_SESSION['ts'] = 15; ?> P, TD, SELECT { font-family: arial; font-size: 15px; } H3 { font-family: arial; font-size: 15px; } <? } elseif($_GET['ts'] == 20 || $_SESSION['ts'] == 20) { $_SESSION['ts'] = 20; ?> P, TD, SELECT { font-family: arial; font-size: 20px; } H3 { font-family: arial; font-size: 20px; } <? } elseif($_GET['ts'] == 25 || $_SESSION['ts'] == 25) { $_SESSION['ts'] = 25; ?> P, TD, SELECT { font-family: arial; font-size: 25px; } H3 { font-family: arial; font-size: 25px; } <? } elseif($_GET['ts'] == 30 || $_SESSION['ts'] == 30) { $_SESSION['ts'] = 30; ?> P, TD, SELECT { font-family: arial; font-size: 30px; } H3 { font-family: arial; font-size: 30px; } <? } elseif($_GET['ts'] == 35 || $_SESSION['ts'] == 35) { $_SESSION['ts'] = 35; ?> P, TD, SELECT { font-family: arial; font-size: 35px; } H3 { font-family: arial; font-size: 35px; } <? } elseif($_GET['ts'] == 40 || $_SESSION['ts'] == 40) { $_SESSION['ts'] = 40; ?> P, TD, SELECT { font-family: arial; font-size: 40px; } H3 { font-family: arial; font-size: 40px; } <? } ?> </style> </head> <body> <table width="780" border="0" align="center" cellpadding="10" cellspacing="0"> <tr> <td align="right"> <form name="textsize">Text Size: <select name="ts" class="tekstgrootteselectie" onchange="document.forms['textsize'].submit();"> <option value="15" <? if($_GET['ts'] == 15 || $_SESSION['ts'] == 15 || !isset($_GET['tg'])) { echo "selected"; } ?>>15</option> <option value="20" <? if($_GET['ts'] == 20 || $_SESSION['ts'] == 20){ echo "selected"; } ?>>20</option> <option value="25" <? if($_GET['ts'] == 25 || $_SESSION['ts'] == 25){ echo "selected"; } ?>>25</option> <option value="30" <? if($_GET['ts'] == 30 || $_SESSION['ts'] == 30){ echo "selected"; } ?>>30</option> <option value="35" <? if($_GET['ts'] == 35 || $_SESSION['ts'] == 35){ echo "selected"; } ?>>35</option> <option value="40" <? if($_GET['ts'] == 40 || $_SESSION['ts'] == 40){ echo "selected"; } ?>>40</option> </select> - <a href="../gfx/index.php">Graphic Version</a> </form> </td>
|