Click to See Complete Forum and Search --> : enable certain options only if others are picked
eevailen
03-25-2003, 07:48 PM
im wondering, is it possible when you are makeing a generator, to only enable certain options if others are picked
http://www.boomspeed.com/eevailen/cssgenerator.html
example, if a user didnt pick the banner or the space tags, is there a way to get the (right now hidden tags) i class=banner and i class=return disabled?
could i do this by making them visible radio buttons that somehow click when the other is enabled and go away when they arent? or something?
The server doesn't work, so I couldn't view the Web page. But are you asking that if(thisRadioButton.checked){ this.formItem.disabled=true} ?
eevailen
03-25-2003, 08:34 PM
sorry, boomspeed gets a little slow at times, this is what it sorta looks like on the page:
Background URL [area to put stuff in]
Properties [area to put stuff in]
Base Font Color [area to put stuff in]
BANNER [area to put stuff in]
Banner Height [area to put stuff in]
Banner Width [area to put stuff in]
Banner TOP Position [area to put stuff in]
Banner LEFT Position [area to put stuff in]
LINK Color [area to put stuff in]
Link Hover color [area to put stuff in]
VISITED LINK [area to put stuff in]
BOLD color [area to put stuff in]
ITALICS color [area to put stuff in]
Userinfo Table BG [area to put stuff in]
2nd Table BG Borders [area to put stuff in]
2nd Table BG [area to put stuff in]
2nd Table Properties [area to put stuff in]
Space [area to put stuff in]
then 2 hidden format tags, one that generates an <i class="banner"></i> for the banner and an <i class="return">for the space code. Im wondering if these can be disabled if the user doesnt want a banner (aka leaves/deletes the form blank) instead of being abled all the time
<!-- Begin
function create(form) {
if (confirm("Ready?")) {
form.pingy.value = "CSS Generator \n" +
"Copy this into your userlookup \n\n" +
" <style type=\"text/css\"> \n";
if (form.backg.value != "") {form.pingy.value +="body{background:url(" + form.backg.value + "\)";}
if (form.prop.value != "") {form.pingy.value +="" + form.prop.value + ";";}
ect all the way to
if (form.spc.value != "") {form.pingy.value +="<i class=" + form.spc.value + "\>Use this when you want to go to the next line</i\>\n";}
if (form.ttk.value != "") {form.pingy.value +="<b class=" + form.ttk.value + "\>Type all you want here</b\>\n";}
}
Yah...
function create(form) {
if (confirm("Ready?")) {
form.pingy.value = "CSS Generator \n" +
"Copy this into your userlookup \n\n" +
" <style type=\"text/css\"> \n";
if (form.backg.value != "") {form.pingy.value +="body{background:url(" + form.backg.value + "\)";}
if (form.prop.value != "") {form.pingy.value +="" + form.prop.value + ";";}
//ect all the way to
if (form.spc.value != "") {form.pingy.value +="<i class=" + form.spc.value + "\>Use this when you want to go to the next line</i\>\n";} else { form.pingy.value+="/*You did not want a banner*/"; }
if (form.ttk.value != "") {form.pingy.value +="<b class=" + form.ttk.value + "\>Type all you want here</b\>\n";}
else { form.pingy.value+="/*You did not want a space*/";}
}