Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Javascript help

Name: Anonymous 2009-03-31 7:23

I would like to add this code: -moz-border-radius-topright:15px;
Into this code below, somewhere:
if (!sb) {
    sb = document.createElement('div');
    sb.id='statusbar-sb';
    sb.style.display='none';
    sb.style.position = 'fixed';
    sb.style.bottom='0px';
    sb.style.left='0px';
    sb.style.height='1.4em';
    sb.style.width='600px';
    sb.style.background='#aaf';
    sb.style.padding='3px';
    var text = document.createElement('span');
    text.id = 'statusbar-text';
    sb.appendChild(text);
    document.body.appendChild(sb);
}

I tried to add a line called sb.style.-moz-border-radius-topright='3px';
But it doesn't work ;_;

Name: Anonymous 2009-03-31 7:33

Read SICP.

Name: Anonymous 2009-03-31 7:44

/PROG/ IS NOT A HELP FORUM

Name: Anonymous 2009-03-31 8:14

>>1
window['alert'] is the same as window.alert.
in b4 don't help him

Name: Anonymous 2009-03-31 8:18

>>1
window['alert'] is the same as window.alert.
in b4 don't help him

Name: Anonymous 2009-03-31 9:31

>>4,5
DON'T HELP HIM!!!

Name: Anonymous 2009-03-31 12:21

>>6
OP here, I'm a her, not a him.

Name: Anonymous 2009-03-31 12:41

>>7
OP here, I'm a liar.

Name: Anonymous 2009-03-31 13:35

>>1
1. Learn REAL programming
2. ???
3. PROFIT!

Name: Anonymous 2009-03-31 13:50

>>5
>>4
Thanks for the tip. I think I better read more into this javascript thing.

Name: Anonymous 2009-03-31 18:18

I just figured out this:
sb.style['-moz-border-radius-topright']='10px';

But it still didn't work, so i found out I could do this instead:
GM_addStyle("#statusbar-sb{-moz-border-radius-topright:10px;}");

Thanks anyway.

Name: Anonymous 2009-03-31 20:30

sb.style.setProperty("-moz-border-radius-topright", "10px", "");

Name: Anonymous 2009-03-31 20:43

>>12
That works too, Thanks!

Name: Anonymous 2010-12-06 9:30

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2010-12-23 7:36

Name: Anonymous 2011-02-03 5:38

Name: Anonymous 2011-02-03 6:23

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List