Search found 276 matches

by Lou
Thu Oct 15, 2015 12:47 pm
Forum: Accessibility
Topic: Checking alt text equality for the same image
Replies: 6
Views: 5749

Re: Checking alt text equality for the same image

I would suggest a message by default, although users can change each message from a warning to a non-warning(?) In context an apple.jpg could correctly be either alt text of "an apple" or "a fruit." Currently there is a warning for an alt text of "". I suggest a message because some work hard to get...
by Lou
Mon Oct 12, 2015 7:37 pm
Forum: Scripting Languages
Topic: random string
Replies: 1
Views: 3098

Re: random string

try this

Code: Select all

<?php
$a=array("A","B","C");
shuffle($a);
echo "$a[0],$a[1],$a[2]";
?>
I find the shuffle function vary handy.
by Lou
Fri Oct 09, 2015 12:32 pm
Forum: TopStyle
Topic: TopStyle Support and Development Ending
Replies: 16
Views: 11122

Re: TopStyle Support and Development Ending

To bad.
by Lou
Mon Oct 05, 2015 6:47 pm
Forum: Scripting Languages
Topic: mt_rand doesn't work
Replies: 2
Views: 3645

Re: mt_rand doesn't work

Why don't you just use the php shuffle(array) function?

Code: Select all

function photorandom()
{
    $photo = array("www.google.nl" => "1.jpg", "www.bing.com" => "2.jpg", "3.jpg", "4.jpg");
   // seed ran gen
   srand(time());
  // randomize the order in the array
  shuffle($photo);
  return $photo[0];
 }
by Lou
Fri Mar 20, 2015 2:06 pm
Forum: General Web Development
Topic: Check your robots.txt file with OnlineWebCheck.com
Replies: 7
Views: 7432

Re: Check your robots.txt file with OnlineWebCheck.com

roots.txt in 4 of 6 domains, found one error (mine). nice addition.
by Lou
Tue Mar 03, 2015 10:48 am
Forum: TopStyle
Topic: prefixr
Replies: 1
Views: 3328

Re: prefixr

Is this an add disguised as a question?
by Lou
Wed Jan 07, 2015 11:10 am
Forum: General Web Development
Topic: Do you use a 32-bit OS or 64-bit OS?
Replies: 8
Views: 6119

Re: Do you use a 32-bit OS or 64-bit OS?

Yes I'm using 64-bit OS for development.
by Lou
Mon Dec 22, 2014 7:30 pm
Forum: General Web Development
Topic: Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5
Replies: 1
Views: 4290

Re: Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTM

Maybe I should replace my 1st edition ;)
by Lou
Mon Apr 28, 2014 10:40 am
Forum: Technical Support
Topic: Odd tbody error
Replies: 6
Views: 3587

Re: Odd tbody error

BTW, it had to do with improper handling of the implicitly ended "colgroup" element. Goes to show the hazards of "just" continuing to uses/update 2yr old code. Don't even remember using <colgroup> and I never have liked implicit ends. (More of my table layout sin.) In fact the code is so old colgro...
by Lou
Mon Apr 28, 2014 8:49 am
Forum: Technical Support
Topic: Odd tbody error
Replies: 6
Views: 3587

Re: Odd tbody error

That fixed the error. Thanks.
by Lou
Sun Apr 27, 2014 10:58 am
Forum: Technical Support
Topic: Odd tbody error
Replies: 6
Views: 3587

Re: Odd tbody error

Just noticed that all the "state" files find the same error.
Thanks.
by Lou
Sun Apr 27, 2014 10:54 am
Forum: TopStyle
Topic: 4 px bug
Replies: 1
Views: 2697

Re: 4 px bug

Although Chrome may not be the final word, they do seem to agree with the standard
immediately followed by a unit identifier (e.g., px, em, etc.).
by Lou
Sun Apr 27, 2014 10:39 am
Forum: Technical Support
Topic: Odd tbody error
Replies: 6
Views: 3587

Odd tbody error

Albert, I'm getting an odd error A "tbody" section is not allowed here. Because "tr" was already used, "tbody" must not be used. ... There is no <tbody> section in the file. The error is "found" on the 2nd <tr> section in the table. My copy finds it, 14.03 and the online version finds it. http://www...