[previous] [next]

Defining icons

Icons are used in desktop shortcuts and menus. You can use the default images as well as your own images to make icons. Icons used in desktop shortcuts and the main program menu should be 48 x 48 in size. All others should be 16 x 16 in size. They can be in any valid image file format(eg. GIF, JPG).

You should be able to find the following codes in options area.

for (var i = 0; i < #_of_icons; i++)
icons[i] = new Image()
Where

Then for each icon you want to create, add the following line.

icons[icon_num].src = "URL_of_icon"
Where

You can set a default icon to be displayed on the task bar when the icon of the menu link is too big(like the icons of desktop shortcuts which are 48x48 in size and too big to be on the task bar). It should be 16x16 in size and is defined like normal icon(see above).

You can find the following line in options area.

var default_icon = 5

After you have defined the default icon, replace the number(5) with the reference number of the icon.


[previous] [next]

Return to Dynamic HTML Resource Center