Category: JavaScript

Displaying random image with Javascript

Use Javascript to display an image randomly selected from a set of preassigned images in a specific location in your website or webpage layout.

random image card

[ No Comments ] Posted on February 8, 2012 under JavaScript

Generating random numbers using Javascript

Similar to programming languages, Javascript also has function that can provide random numbers. You can modify this function to generate only certain numbers or use it in certain functions of your website such as displaying random image, random ad banner or random quote.

lottery globe

[ No Comments ] Posted on January 26, 2012 under JavaScript

Animated images using Javascript

Create a simple animated image using Javascript without the color limitations of GIF format or browser support limitation of PNG.

no thumbnail yet

[ No Comments ] Posted on January 24, 2012 under JavaScript

CSS and Javascript outside the HTML file

Aside from placing CSS and Javascript within the head section of the HTML, we can also place them in separate external files. This enables several HTML webpages to access and use them. The results: uniform appearance of the website across several pages, elegant and simpler HTML code, and a search engine friendlier website.

css-and-javascript-outside-the-html-file

[ 2 Comments ] Posted on October 31, 2008 under Cascading Stylesheet, Hypertext Mark-up Language, JavaScript, Search Engine Optimization

Java image flip

A popular image flip back in the late 90’s that uses Javascript. When a mouse hovers on an image (usually a hyperlink image), the image “flips” or change to another image. It reverts to the original image when the mouse pointer moves away. Rarely use nowadays due to popularity of text-based links and the notoriety of Javascript as means of attaching viruses and other malwares.

java-image-flip

[ No Comments ] Posted on October 25, 2008 under JavaScript