Friday, April 30, 2010

Images Research

Today, I just finished my research on the images. I found several images that might suit for my gallery page because I divided my gallery page into several categories such as: People, Landscape, Architecture, Art, Nature, and Lomography. Moreover, I also updated my learning proposal. Cheers!! xD

Tuesday, April 20, 2010

JavaScript (Week 8)

Today, I learned more about JavaScript. There are some common uses for JavaScript:

  • Image roll-overs
  • Menus
  • Validating forms (client-side)
  • Browser detection
  • Redirection

JavaScript interacts in 3 ways:

  • With Users - using handlers and dialog boxes
  • With Documents
  • With Browsers

I also did the practical practice. The practical told us how to create the swap image function using MouseClick on JavaScript. I also succeed to implement the challenge exercise.
Here is the link to my exercise:
Blog1 - Using OnClick
Blog2 - Using OnMouseOver

Wednesday, April 14, 2010

PHP (Week 7)

Today, the lecture was about the PHP. It is stand for PHP: Hypertext Preprocessor. PHP is a server-side scripting language used to enhance the capabilities of web pages. PHP is widely used for e-commerce, blogs, web based email services, content management systems (CMS), and personal and business websites in general.

There are some rules in PHP:

  • PHP goes inside the <?php and ?> tags
  • all statements must be end in ;
  • = --> means assign the following value
  • == --> means is the same as

Moreover, we can use PHP to create some applications, such as guestbook, counter, form mailer, etc.

There are 3 different ways of printing in PHP:

  • use print syntax
  • use echo syntax
  • use printf syntax

My PHP tutorial today not went really smooth. I struggled with the PHP syntax, especially when I tried to modify and copy the code. On the weekends, I am planning to spend my time to learn and practice more about the PHP. I hope I could get some ideas about the php syntaxes. xD



References

  • Internet Programming Slides, PHP, Internet Programming, viewed 14 April 2010

Tuesday, April 6, 2010

More CSS (Week 6)

Today, the lecture was about the box and the box positioning using CSS. There are four elements of the box:

  • Content
  • Padding
  • Border
  • Margin




Morover,there are two common ways to make a CSS layout: using position property or float property.


Using Position Property
  • Static - the default
  • Absolute - relative to parent's hierarchy (usually for header and footer)
  • Relative - relative to itself or for small adjustments.
  • Fixed - it does not scroll

Using Float Property
  • The concept is similar to aligning an image.
  • It can be used to create layouts or simply float content.