Unclassified NewsBoard Code Reference

setImageId function [JavaScript]

Set an image's source attribute depending on a condition

function setImageId (id, cond, trueimg, falseimg);

Parameters:

id
(string) Image object's ID
cond
(cool) Condition
trueimg
(string) True case image source
falseimg
(string) False case image source

Remarks:

This condition can be the return value of toggleVisId, e.g.

Implementation file: unb_lib/common.js, line 198

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.