login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Textsize session

Offline SmokaLot - 13/06/2005 13:42
Avatar van SmokaLotHTML 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:
  1. <?
  2. ?>
  3. <html>
  4. <head>
  5. <title>European Championship 2005 Goalball</title>
  6. <style>
  7. <?
  8. if(isset($_GET['ts'])) {
  9. }
  10. if($_GET['ts'] == 15 || $_SESSION['ts'] == 15) {
  11. $_SESSION['ts'] = 15;
  12. ?>
  13. P, TD, SELECT
  14. {
  15. font-family: arial;
  16. font-size: 15px;
  17. }
  18. H3
  19. {
  20. font-family: arial;
  21. font-size: 15px;
  22. }
  23. <?
  24. } elseif($_GET['ts'] == 20 || $_SESSION['ts'] == 20) {
  25. $_SESSION['ts'] = 20;
  26. ?>
  27. P, TD, SELECT
  28. {
  29. font-family: arial;
  30. font-size: 20px;
  31. }
  32. H3
  33. {
  34. font-family: arial;
  35. font-size: 20px;
  36. }
  37. <?
  38. } elseif($_GET['ts'] == 25 || $_SESSION['ts'] == 25) {
  39. $_SESSION['ts'] = 25;
  40. ?>
  41. P, TD, SELECT
  42. {
  43. font-family: arial;
  44. font-size: 25px;
  45. }
  46. H3
  47. {
  48. font-family: arial;
  49. font-size: 25px;
  50. }
  51. <?
  52. } elseif($_GET['ts'] == 30 || $_SESSION['ts'] == 30) {
  53. $_SESSION['ts'] = 30;
  54. ?>
  55. P, TD, SELECT
  56. {
  57. font-family: arial;
  58. font-size: 30px;
  59. }
  60. H3
  61. {
  62. font-family: arial;
  63. font-size: 30px;
  64. }
  65. <?
  66. } elseif($_GET['ts'] == 35 || $_SESSION['ts'] == 35) {
  67. $_SESSION['ts'] = 35;
  68. ?>
  69. P, TD, SELECT
  70. {
  71. font-family: arial;
  72. font-size: 35px;
  73. }
  74. H3
  75. {
  76. font-family: arial;
  77. font-size: 35px;
  78. }
  79. <?
  80. } elseif($_GET['ts'] == 40 || $_SESSION['ts'] == 40) {
  81. $_SESSION['ts'] = 40;
  82. ?>
  83. P, TD, SELECT
  84. {
  85. font-family: arial;
  86. font-size: 40px;
  87. }
  88. H3
  89. {
  90. font-family: arial;
  91. font-size: 40px;
  92. }
  93. <?
  94. }
  95. ?>
  96. </style>
  97. </head>
  98. <body>
  99. <table width="780" border="0" align="center" cellpadding="10" cellspacing="0">
  100. <tr>
  101. <td align="right">
  102. <form name="textsize">Text Size:
  103. <select name="ts" class="tekstgrootteselectie" onchange="document.forms['textsize'].submit();">
  104. <option value="15" <? if($_GET['ts'] == 15 || $_SESSION['ts'] == 15 || !isset($_GET['tg'])) { echo "selected"; } ?>>15</option>
  105. <option value="20" <? if($_GET['ts'] == 20 || $_SESSION['ts'] == 20){ echo "selected"; } ?>>20</option>
  106. <option value="25" <? if($_GET['ts'] == 25 || $_SESSION['ts'] == 25){ echo "selected"; } ?>>25</option>
  107. <option value="30" <? if($_GET['ts'] == 30 || $_SESSION['ts'] == 30){ echo "selected"; } ?>>30</option>
  108. <option value="35" <? if($_GET['ts'] == 35 || $_SESSION['ts'] == 35){ echo "selected"; } ?>>35</option>
  109. <option value="40" <? if($_GET['ts'] == 40 || $_SESSION['ts'] == 40){ echo "selected"; } ?>>40</option>
  110. </select> - <a href="../gfx/index.php">Graphic Version</a>
  111. </form>
  112. </td>

2 antwoorden

Gesponsorde links
Offline ikkedikke - 13/06/2005 16:51
Avatar van ikkedikke PHP expert probeer als je een andere link aanklikt daar ook de lettergrootte mee te geven en de paginanaam als je een andere lettergrootte kiest;-)
Offline Steven - 13/06/2005 18:17
Avatar van Steven HTML interesse Of opslaan in een cookie?
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.173s