Posts Tagged ‘List’

Changing HTML List Bullet Styles

Monday, July 14th, 2008

The HTML LIST ITEM tag is used to create bullets to display your list text.

You can change the style of your web page bullets by adding attributes to your <LI> tag or your HTML List tag.

HTML Bullet Code:

<Menu>
<LI type=”disc”>List item 1
<LI type=”circle”>List item 2
<LI type=”square”>List item 3
</Menu>

Your list would be displayed like this:

* List item 1
* List item 2
* List item 3

To create a bulleted list within a list, your code would look something like this:

<UL type=”square”>
<LI>Your text goes here
<UL type=”circle”>
<LI>Your text goes here
<LI>Your text goes here
<LI>Your text goes here
</UL>
<LI>Your text goes here
<LI>Your text goes here
</UL>

Your list would be displayed like this:

* Your text goes here
o Your text goes here
o Your text goes here
o Your text goes here
* Your text goes here
* Your text goes here

Spice up your web pages with some customized HTML List bullets. It will give your web site a more professional appearance.

MYSQL:Building comma-separated list of strings with MySQL

Monday, June 30th, 2008

SELECT cats.id as cat_id, GROUP_CONCAT(keyword ORDER BY keyword DESC SEPARATOR ‘,’) as keywords FROM YOURPREFIX_categories cats, YOURPREFIX_keywords kws WHERE cats.id = kws.cat_id GROUP BY cats.id

Linux:Enable port 81 or other non-standard port under Redhat SELinux

Monday, June 30th, 2008

Enable Apache to bind port 81 or other non-standard port under Redhat SELinux
login as root
Add a port
[root@acer ~]# semanage port -a -t http_port_t -p tcp 81
Remove a port
[root@acer ~]# semanage port -d -t http_port_t -p tcp 81
List all enabled http ports
[root@acer ~]# semanage port -l | grep http

JavaScript:How to get selected value of html select/dropdown list with Javascript

Monday, June 30th, 2008

document.getElementById(’yourSelectBoxId’).options[document.getElementById('yourSelectBoxId').selectedIndex].value
or
document.getElementById(’yourSelectBoxId’).value

A List of PHP Editors

Saturday, June 28th, 2008

Windows

ConTEXT - version 0.97.4; freeware
Crimson Editor - version 3.60; freeware
Programmer’s Notepad -
PSPad - version 4.3.0; freeware
Notepad++
NuSphere PhpED - version 5.0; commercial
NuSphere Nu-Coder - version 1.4; commercial

Mac OS X

skEdit
Smultron - version 1.0.1; freeware
TextWrangler
TextMate
Coda

Linux

Bluefish - version 1.0; other
Geany
gedit
gPHPEdit
Kate - version 2.2; freeware
Quanta Plus - version 3.2.1; freeware

Multiple OS

NetBeans
Eclipse
Aptana
Emacs - version 21; freeware
jEdit - version 4.1; freeware
SciTE - version 1.53; freeware
Vim - version 6.1; freeware
nano

PHP:Easy Way to List Directory Structure

Saturday, June 28th, 2008

$path = “/home/user/public/foldername/”;
$dir_handle = @opendir($path) or die(”Unable to open $path”);

while ($file = readdir($dir_handle)) {
if($file == “.” || $file == “..” || $file == “index.php” )
continue;
echo “<a href=\”$file\”>$file</a><br />”;
}
closedir($dir_handle);