• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Any javaScript people here?

notfred

Lifer
I'm bad at javascript. So, I'm asking for help. Right now, I vahr this code:

function delCat() {
var cats = new Array("", "editor.cgi?delete_cat=93_Cobra_Model", "editor.cgi?delete_cat=Big_Sur_Drive", "editor.cgi?delete_cat=car", "editor.cgi?delete_cat=Clean_Car_Pics", "editor.cgi?delete_cat=other");

var i = del_cat.cat.selectedIndex;

if (i != 0) {
window.location.href = cats[ i ];
}

}

and later on, this form:

<form name="del_cat">
<select name="cat" onChange =" delCat()">
<option value="Choose">Choose</option>
<option value="93_Cobra_Model">93_Cobra_Model</option>
<option value="Big_Sur_Drive">Big_Sur_Drive</option>
<option value="car">car</option>
<option value="Clean_Car_Pics">Clean_Car_Pics</option>
<option value="other">other</option>
</select> Select category to remove from
</form>


This is very simple code. I understand it, and it works great. In I.E.

Anyone know what I'd have to change in it to get it to work in Mozilla? What part of this isn't working? I want a little better cross-browser support here.
 
Back
Top