Jump to content

Hellusius

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Posts posted by Hellusius

  1. not sure if this is this is allowed, but its sure as heck is not work

    [code]<select name="background" onChange="document.bgcolor.color=value">
    <optgroup label="Background Chooser">
      <option name="color" value="5577AA">Default</option>
      <option name="color" value="7799DD">Lightblue</option>
      <option name="color" value="335588">Darkblue</option>
      <option name="color" value="5577AA">Black</option>
    </optgroup>
    </select>[/code]

    any suggestions, on how I could do it, or what I did wrong
  2. I made a little date script as you can see:

    [code]<script language="JavaScript">
    <!-- script
    var date=new Date();
    var day=date.getday();
    var month=date.getMonth()+1;
    var year=date.getFullYear();
    document.write("The Date is:"+Day+" - "+month+" - "+year+");
    // script -->
    </script> [/code]

    The problem is, that it doesn't show, and I don't see what I did wrong either.
  3. I tried making a class to add for a news table,
    this is the code
    [code].newsfacts
    {
    background-color=#2299FF
    h1 { font-size: 8pt; color:#AA5522; align="left"}
    h2 { font-size: 4pt color:#DD9955; align="center"}
    }[/code]

    I did as html
    <table class"newsfact"><tr><td>
    <h1>title</h1>
    <h2>description</h2>
    </td</tr></table>

    but it does not work, the background color did not work either, who can help me out here
  4. I got it working now with the following code

    [code]<input type="radio" name="bgcolor" onClick="document.bgColor='5577AA'">Normal</a><br>
    <input type="radio" name="bgcolor" onClick="document.bgColor='7799DD'">Light</a><br>
    <input type="radio" name="bgcolor" onClick="document.bgColor='335588'">Dark</a><br>[/code]

    But now would I like to save it so it keeps having that background through all pages as well, is that a possiblity?
  5. I try to modify the background color when the usser clicks on a radiobutton, frankly nothing happens so far.

    [code]
    <form><br>
    <input type="radio" name="bgcolor" onClick="document.bgcolor= class="Normal" checked>Normal</a><br>
    <input type="radio" name="bgcolor" onClick="document.bgcolor= class="Light">Light</a><br>
    <input type="radio" name="bgcolor" onClick="document.bgcolor= class="Dark">Dark</a><br>
    </form>
    [/code]

    I put in the little CSS code which looks like this
    [code]
    <style type="text/css">
    .dark {background-color: #335588};
    .Light {background-color: #7799CC};
    .Normal {background-color: #5577AA};
    </style>
    [/code]

    ant suggestion why it doesn't work, cause I have seen it been done before
  6. this is where I redirect
    [code]
    <html>
    <head>
    <title>WarcraftIII test site</title>
    <link href="Stylesheet.css" rel="stylesheet" type="text/css" />
    </head>
    <meta>
    <body>
    --Codes--[/code]

    and the CSS file looks like this

    [code]body
    {
    font family: arial;
    background-color:#1111DD;
    color:#000000;
    }


    a:link { color: #1099FF; background-color: transparent }
    a:visited { color: #2277EE; background-color: transparent }
    a:hover { color: #FF2200; background-color: transparent }
    a:active { color: green }

    #NewsTitle { color:#222266 }
    #NewsText  { color:#DDAA55 }[/code]

    Its just odd, cause it works on the rest of the page but not in the header.php (the file in where the redirect is located)
  7. I made a little error that pops up when someone tries to acces a link but it does not seemt to work

    the script looks like this
    [code]<!--scripts--!>
    <script language="JavaScript">
    <!--
    function tempfunc()
    {
    alert("Error, acces denied <br /> "The page is not yet fully done, therefor this page can not be viewed");
    }
    // -->
    </script>
    <!--scripts end--!>[/code]

    and the link is done like this

    [code]<a href="index.php" onClick="tempfunc()">Altred melee</a>[/code]

    Suggestions?
  8. It now looks like this btw

    [code]    <?php
    $page= array("index.php, underC.php");
    if (in_array("index.php", $page, true))
    {
    include ("Newsfact_01");
    }
    elseif (in_array("underC.php", $page, true))
    {
    Include ("underC.php");
    }
    ?>[/code]

    The only problem I am experiencing, is that none of the pages are loaded in the table

    am I doign something wrong?
  9. I tried checking a link with a little php script and yes I am quite a noob with php cause I only read a tutorial, but here goes anyway.

    [code]
    <?php
    $page= array("index.php, underC.php");
    if ($page=="index.php")
    include ("Newsfact_01");

    elseif ($page=="underC.php")
    Include ("underC.php");[/code]

    I don't actually know if that works, but I want to check like what site is loaded and then load the information from a page in the table
  10. The a:active I used doesn't seem to have effect on the firefox browser I use.
    Here is the CSS/stylesheet part I made for it

    [code]a:link { color: #1099FF; background-color: transparent }
    a:visited { color: #2277EE; background-color: transparent }
    a:hover { color: #FF2200 ; background-color: transparent }
    a:active { color: #22FF00 ; background-color: transparent  }[/code]

    suggestions, or is there anything special I need to do, to have it work on all webbrowsers?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.