Unclassified NewsBoard Code Reference

setImageObj function [JavaScript]

Set an image's source attribute depending on a condition

function setImageObj (obj, cond, trueimg, falseimg);

Parameters:

obj
(object) Image object
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 212

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