babelfish
05-15-2003, 02:19 PM
HI PEEPS, long time no see!
ok i have this script:
function addVars() {
var f = window.document.listings;
if (pageVars==0) {
selectOption(f.package,package);
selectOption(f.zone,zone);
selectOption(f.doctype,doctype);
selectOption(f.company,company);
}
}
this adds some stuff into select boxes whilst reading the URL of the page. NOW, i want the selected item to have a diff colour BG - any ideas?
i thought of something like: window.document.listings.package.selectedIndex[0]bgColor='red'
dont work tho :( any ideas?
ok i have this script:
function addVars() {
var f = window.document.listings;
if (pageVars==0) {
selectOption(f.package,package);
selectOption(f.zone,zone);
selectOption(f.doctype,doctype);
selectOption(f.company,company);
}
}
this adds some stuff into select boxes whilst reading the URL of the page. NOW, i want the selected item to have a diff colour BG - any ideas?
i thought of something like: window.document.listings.package.selectedIndex[0]bgColor='red'
dont work tho :( any ideas?