Kamis, 05 Agustus 2010

Mig33

Meet friends, chat and have fun!


Our community has created the world's
best place for chat. You can meet new friends, connect with popular IMs, play games and much more ...
Click Mig33 to join us.
Read More - Mig33

Rabu, 23 Juni 2010

Drop down Menu and Drop down Search Box


File: dropdown.js

// ***** Popup Control *********************************************************

// ***** at_show_aux *****

function at_show_aux(parent, child)
{
  var p = document.getElementById(parent);
  var c = document.getElementById(child );
  var top  = (c["at_position"] == "y") ? p.offsetHeight+2 : 0;
  var left = (c["at_position"] == "x") ? p.offsetWidth +2 : 0;
  for (; p; p = p.offsetParent)
  {
    top  += p.offsetTop;
    left += p.offsetLeft;
  }
  c.style.position   = "absolute";
  c.style.top        = top +'px';
  c.style.left       = left+'px';
  c.style.visibility = "visible";
}
// ***** at_show *****
function at_show()
{
  var p = document.getElementById(this["at_parent"]);
  var c = document.getElementById(this["at_child" ]);
  at_show_aux(p.id, c.id);
  clearTimeout(c["at_timeout"]);
}
// ***** at_hide *****
function at_hide()
{
  var p = document.getElementById(this["at_parent"]);
  var c = document.getElementById(this["at_child" ]);
  c["at_timeout"] = setTimeout("document.getElementById('"+c.id+"').style.visibility = 'hidden'", 333);
}
// ***** at_click *****
function at_click()
{
  var p = document.getElementById(this["at_parent"]);
  var c = document.getElementById(this["at_child" ]);
  if (c.style.visibility != "visible") at_show_aux(p.id, c.id); else c.style.visibility = "hidden";
  return false;
}
// ***** at_attach *****
// PARAMETERS:
// parent   - id of the parent html element
// child    - id of the child  html element that should be droped down
// showtype - "click" = drop down child html element on mouse click
//            "hover" = drop down child html element on mouse over
// position - "x" = display the child html element to the right
//            "y" = display the child html element below
// cursor   - omit to use default cursor or specify CSS cursor name
function at_attach(parent, child, showtype, position, cursor)
{
  var p = document.getElementById(parent);
  var c = document.getElementById(child);
  p["at_parent"]     = p.id;
  c["at_parent"]     = p.id;
  p["at_child"]      = c.id;
  c["at_child"]      = c.id;
  p["at_position"]   = position;
  c["at_position"]   = position;
  c.style.position   = "absolute";
  c.style.visibility = "hidden";
  if (cursor != undefined) p.style.cursor = cursor;
  switch (showtype)
  {
    case "click":
      p.onclick     = at_click;
      p.onmouseout  = at_hide;
      c.onmouseover = at_show;
      c.onmouseout  = at_hide;
      break;
    case "hover":
      p.onmouseover = at_show;
      p.onmouseout  = at_hide;
      c.onmouseover = at_show;
      c.onmouseout  = at_hide;
      break;
  }
}

File: sample.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Dropdown Sample</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords"    content="" />
<script type="text/javascript" src="dropdown.js"></script>
<style type="text/css">
body { font-size: 0.7em; }
h3   { font-size: 1.6em; margin: 0px; }
a.sample_attach, a.sample_attach:visited, div.sample_attach
{
  display: block;
  width:   100px;
  border:  1px solid black;
  padding: 2px 5px;
  background: #FFFFEE;
  text-decoration: none;
  font-family: Verdana, Sans-Sherif;
  font-weight: 900;
  font-size: 1.0em;
  color:   #008000;
}
a.sample_attach, a.sample_attach:visited { border-bottom: none; }
div#sample_attach_menu_child             { border-bottom: 1px solid black; }
form.sample_attach
{
  position: absolute;
  visibility: hidden;
  border:  1px solid black;
  padding: 0px 5px 2px 5px;
  background: #FFFFEE;
}
form.sample_attach b
{
  font-family: Verdana, Sans-Sherif;
  font-weight: 900;
  font-size: 1.1em;
}
input.sample_attach { margin: 1px 0px; width: 170px; }
</style>
</head>
<body>
<div>
<h3>Dropdown Sample</h3>
<!-- ***** Dropdown Menu *************************************************** -->
<br /><br />
<div id="sample_attach_menu_parent" class="sample_attach">Main Menu</div>
<div id="sample_attach_menu_child">
<a class="sample_attach" href="javascript:alert('Item 1');">Item 1</a>
<a class="sample_attach" href="javascript:alert('Item 2');">Item 2</a>
<a class="sample_attach" href="javascript:alert('Item 3');">Item 3</a>
</div>
<script type="text/javascript">
at_attach("sample_attach_menu_parent", "sample_attach_menu_child", "hover", "y", "pointer");
</script>
<!-- ***** Search Form ***************************************************** -->
<br /><br /><br /><br /><br />
<div  class="sample_attach" id="sample_attach_src_parent">Site Search</div>
<form class="sample_attach" id="sample_attach_src_child" action="sample.html">
<div>
<b>Enter search terms:</b><br />
<input class="sample_attach" type="text" name="terms" /><br />
<input type="submit" value="Submit" />
</div>
</form>
<script type="text/javascript">
at_attach("sample_attach_src_parent", "sample_attach_src_child", "click", "x", "pointer");
</script>
</div>
</body>
</html>



Read More - Drop down Menu and Drop down Search Box

Rabu, 09 Juli 2008

History PHP

PHP originally stood for Personal Home Page. It began in 1994 as a set of Common Gateway Interface binaries written in the C programming language by the Darish/Greenlandic programmer Rasmus Lerdorf. Lerdorf initially created these Personal Home Page Tools to replace a small set of Perl scripts he had been using to maintain his personal homepage. The tools were used to perform tasks such as displaying his resume and recording how much traffic his page was receiving. He combined these binaries with his Form Interpreter to create PHP/FI, which had more functionality. PHP/FI included a larger C implementation and could communicate with databases enabling the building of simple, dynamic web applications. He released PHP publicly on June 8, 1995 to speed up the finding of bugs and improving the code. This release was named PHP version 2 and already had the basic functionality that PHP has today. This included Perl-like variables, form handling, and the ability to embed HTML. The syntax was similar to Perl but was more limited, simpler, and less consistent.

Zeev Suraski and Andi Gutmans, two Israeli developers at the Technion IIT, rewrote the parser in 1997 and formed the base of PHP 3, changing the language's name to the recursive initialismPHP: Hypertext Preprocessor. The development team officially released PHP/FI 2 in November 1997 after months of beta testing. Afterwards, public testing of PHP 3 began, and the official launch came in June 1998. Suraski and Gutmans then started a new rewrite of PHP's core, producing the Zend Engine in 1999. They also founded Zend Technologies in Ramat Gan, Israel, which manages the development of PHP.

On May 22, 2000, PHP 4, powered by the Zend Engine 1.0, was released. On July 13, 2004, PHP 5 was released, powered by the new Zend Engine II. PHP 5 included new features such as improved support for object-oriented programming, the PHP Data Objects extension (which defines a lightweight and consistent interface for accessing databases), and numerous performance enhancements. The most recent update released by The PHP Group is for the older PHP version 4 code branch. As of January 2008, this branch is up to version 4.4.8. PHP 4 is no longer under active development but will be supported by security updates until August 8, 2008.

In 2008, PHP 5 became the only stable version under development. Late static binding has been missing from PHP and will be added in version 5.3. Alongside PHP 5, PHP 6 is also under active development. Major changes include the removal of register_globals, magic quotes, and safe mode.

PHP does not have complete native support for Unicode or multibyte strings; unicode support will be included in PHP 6. Many high profile open source projects ceased to support PHP 4 in new code as of February 5, 2008, due to the GoPHP5 initiative, provided by a consortium of PHP developers promoting the transition from PHP 4 to PHP 5.

It runs in both 32-bit and 64-bit environments, but on Windows the only official distribution is 32-bit, requiring Windows 32-bit compatibility mode to be enabled while using IIS in a 64-bit Windows environment. There is a third-party distribution available for 64-bit Windows.

Read More - History PHP

Sabtu, 05 Juli 2008

10 Tips On Promoting Your New Blog

One great way of getting more traffic and more importantly, making the traffic come back to your site over and over again, is by having your own blog.

The term, ‘Blog‘, is becoming more and more popular, and these days most online companies have a blog.

How can you promote your blog? Once you get your blog known, if you have good enough content, then it will promote itself, thats the amazing thing with blogs.

Heres some quick tips to help promote your blog.

1. Allow your blog readers to subscribe to your own RSS feed. Subscribe with Feedburner. Feedburner allows blog owners and podcasters the ability to manage their RSS feeds and track usage of their subscribers.

2. Always set your blog to ping ‘update services’. What is that? If you use the Wordpress software, here is a great explanation, http://codex.wordpress.org/Update_Services.

3. Take full advantage of Technorati. For a full explanation of what Technorati is and how it works, take a look here, http://www.technorati.com/about/tour.html.

4. Use the power of social netwroking sites, such as digg.com, reddit.com and del.icio.us . If you write a great article, submit it to these sites, if they get picked up by them, you will see a massive increase in traffic to your blog.

5. When writing a post, always make sure you link to as many related sites and blogs. Many blogs have a ‘trackback’ feature enabled which can see what other blogs, like yours, are sending visitors to their blogs. They then usually link back to your blog automatically for free.

6. Get your blogs web address in as many places as possible. Use forums, and put your blogs address in your signature.

7. Submit your blog to as many blog directories as possible, such as blogcatalog.com

8. Link to your blog from your websites homepage, and also in the footer of every other page on your website.

9. Get tips from 2 pro bloggers, such as problogger.net and shoemoney.com

10. Finally, and most important, write great content that is relevant to your website, and you will then find your readers will do your promoting for you.

Read More - 10 Tips On Promoting Your New Blog

Basic Adsense Tips

Once in a week, i will publish my personal article about an advertising program which is Adsense. For those who still don’t know what Adsense is, it is a pay-per-click adevertising program which website publishers can use to menetize their websites.

The first thing you need to know about Adsense is it is not a program where you can earn money esily. Well to said, your website or your blog need lots of traffic to take full advantage of this program. Now, you must be wondering on how to improve your website traffic. From my experience,for the first time my website receive very little hits per day which is about 30-50 hits. Its really bad and to solve the problems, I have use these methods:

1) Add good content

2) Do a SEO (Search Engine Optimization)

3) Improve the site layout

When I added good content to the website, website traffic increases to 100 hits per day. Website visitors is always hungry to find new information in the net. Regardless what is the type of your website/blog is, you must create a truly original content for it. Don’t spend your time searching for free artilces because Adsense really don’t like duplicate contents.

Another tips is let your visitors know what your website/blog offers to its visitors. Create a section for your new website visitors what they can gain by visitng your website/blog. Suggest them to comment on your entry so that they will feel they are belonging to your blog/website.

From their comment and suggestion, you can improve your website/blog more. Now, thats for the section for getting website traffic.

The next factor that you must take care is SEO which means Search Engine Optimization. Search engine that we will focsu is Google. Google receive million search per day. you can imagine a lot of people go to Google everyday to search for infromation. If you’re lucky they will find your website. But it’s not an easy way to do because SEO need lots of hard work and patience. The first thing you need to do when you have a website/blog is by giving its url to Google so that its crawler can search your pages and then include them in Google search engine. For lots more information about SEO, go to our Webmaster Section. i have post lots of good tips for SEO there.

Read More - Basic Adsense Tips