Jump to content

angelodev

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

angelodev's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi there, my little table works well but its internal border are not visible. In the CSS section their are correctly set with: border: 1px solid #000000 i see only the external border, so the table looks like a simple box are there other property to set?
  2. Hi there, i designed a table as follow: table.calendar { width: 160px; height: 150px; table-layout: fixed; text-align: center; border-collapse: separate; border-spacing: 1px; border-color: #000000; border-width: 1px; border-style: solid; empty-cells: hide; background: #CCFFFF; } td.caption { font-weight: bold; } td.empty { background: #FFFFFF; } td.today { background: #FFFF99; } td.selected { background: red; } the selected section is activated with the javascript onMouseOver event. The onMouseOut restore the original CSS section. I'm in trouble with the today section (the table is a calendar). initially it's correctly colored and also the onMouseOver event works well, but when the onMouseOut occurs the background doesn't come back to the correct setion and the cell take the general setting of the table, no more td.today. Here the is the Javascript Code if (($startdate == date("j")) && ($month == date("n")) && ($year = date("Y"))){ ?><TD class="today" onmouseover = "this.className = 'selected';" onmouseout = "this.className = 'today;'"><?php echo (date("j")); ?></Td><?php } else { ?><TD class="notoday" onmouseover = "this.className = 'selected';" onmouseout = "this.className = ' notoday;'"><?php echo ($startdate); ?></Td><?php Thank in advice for your gold help!!!
  3. I ave to change te cells background color where the mouse come over. For make more clear the code , i'd like to use CSS. If I change the class dinamically with Javascritp, the background will change or i have to refresh thw browser?
  4. Yes, it could be... if I change the class the page will be update dinamically or i 'll have to refresh?
  5. hi there, i have a piece of code that look like this: <td style= "something.... " onMouseOver = "changestyle" onMouseOut = "changestyle"> Right now, i have to change the style of the page adding a CSS files, just for make clear the page code. Is there a solution for insert into the CSS also the two style changed by the onMouseOver/out events? And how can i recall from the TML page?
  6. Would you post an advice for a very good free PHP IDE?
  7. If yo cut ad past this code <?php //calendar.php //Check if the month and year values exist if ((!$_GET['month']) && (!$_GET['year'])) { $month = date ("n"); $year = date ("Y"); } else { $month = $_GET['month']; $year = $_GET['year']; } //Calculate the viewed month $timestamp = mktime (0, 0, 0, $month, 1, $year); $monthname = date("F", $timestamp); echo $monthname; ?> into your script: $monthname is displayed?
  8. Also with the variables definet it does not wor. The strange think is that the echo function insite the tale doesn't print anything: either with the $month var and a fixed string. I thinj that the trouble is located there. echo "Ciao!" -> doesn't print anything in the first row
  9. Would you post just a bit more of your code? Maybe your problem is not in that statement.
  10. Ok, I agree wth you. My last post wasn't clear.... <table class="calendar"> <tr> <td colspan="7"><?php echo $month ?></td> </tr> <tr> <td>Su</td> <td>M</td> <td>Tu</td> <td>W</td> <td>Th</td> <td>F</td> <td>Sa</td> </tr> The echo line doesn't print the month name at the table's top. I think that the variale is correcly load. A litte ajax script call this php functionfor load a dynamic calendar i the home page.
  11. If ((!$_GET['month']) && (!$_GET['year'])) { $month = Date("n"); $year = Date("Y"); } else { $month = $_GET['month']; $year = $_GET['year']; } //Month calculation calculated $timestamp = mktime(0, 0, 0, $month, 1, $year); $monthname = date("F", $timestamp); ?> <table class="calendar"> <tr> <td colspan="7"><?php echo $month ?></td> </tr> <tr> <td>Su</td> <td>M</td> <td>Tu</td> <td>W</td> <td>Th</td> <td>F</td> <td>Sa</td> </tr> </table> I would like to create a calendar top header with this ode. But it does not work!! Have you any advice? PS: these are my first PHP code lines
  12. Hi tehere, i'm going to start a little proect in PHP, MySQL and AJAX for create a training scheduler. I belong to a triatlhon team. I keep in mind a big part of the project but i come in trouble when i think about how develop the system of the training cycle. Wath the hell are they? nothing else that a group of day (a week, a month or a year) in which a triathlete organise a speific training. In a table, how can i create an antity whic reppresent that? ... ID TyeOfcycle DateStart DateEnd boh...
×
×
  • 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.