Tricks

This is a very easy example on country flag change. If you have got a form with country selection field then you can easily display a flag related to that specific country on country selection made by user. In this example all the flags images are placed in a folder named as ‘flags’ which is […]

Now using javascript we can use any font in web page by using techniques such as Typeface and Facelift Image Replacement (or FLIR) or sIFR. sIFR needs flash while others do not. sIFR is for smoothness look of fonts. Instead of creating images or using flash just to show your site’s graphic text in the […]

We can simply use CSS alone to reproduce opacity effect that have traditionally been done using scripting. The advantage of looking to CSS instead is obvious – much more lightweight and easier to implement. We can use this method where we need to use a dim or faint version of image, while when some one […]

Adobe Dreamweaver offers a way to Swap Images by adding javascript through its behaviours which uses following functions: function MM_swapImgRestore() function MM_findObj(n, d) function MM_swapImage() function MM_preloadImages() And at OnMouseOver and OnMouseOut events you can swap images, but that method adds a lot of javascript code into your pages. There is another very simple and […]

Nifty Corners Cube is a solution to get rounded corners without images, and this third version is build by three main components:

Previously We used to embed flash files in web pages via simple embed method which pops up flash settings alert or Flash Settings Manager. Following way is to embed Flash movie (swf file) in web page using Javascript which will play for all browsers and will not alert you for flash settings.

This script is typically best for pop-up windows where you want to display random images on request. It will allow browser window to auto-fit according to the image size.