Hello and welcome to our community! Is this your first visit?
Register
Results 1 to 4 of 4
  1. #1
    Regular Member Blank Name's Avatar
    Join Date
    Feb 2010
    Location
    Uwaiiiiiiiiii~~
    Posts
    189

    I'm obviously not good at coding whatsoever

    So I'm making a greasemonkey script. And I did this:

    Code:
    body {
    background-color:#FF9999;
    background-image:url(http://i45.tinypic.com/2iqe5hk.jpg);
    }
    And why doesn't it show up on the page when I refresh it?

    I'm 100% sure I fucked up, I just want to know exactly how I fucked up. Thank you
    [center:1bto0k7n]Spam Pit Mafia forums, closed down cause thye sucked!!

    HEY GUYS I KNOW JOHN V DIGLEMONS SO IF WE FLAME EACH OTHER OR ANYTHING IT'S K, K?[/center:1bto0k7n]

  2. #2
    Insanity Skype's Avatar



    Join Date
    Apr 2007
    Location
    England
    Posts
    27,397

    Re: I'm obviously not good at coding whatsoever

    I've never worked with greasemonkey, but that should work if what it does is modifies the style sheet for websites.

  3. #3
    Regular Member
    Join Date
    Oct 2007
    Location
    Cottage Grove, MN
    Posts
    105

    Re: I'm obviously not good at coding whatsoever

    Use this.

    Code:
    body {
    background:#FF9999 url(http://i45.tinypic.com/2iqe5hk.jpg);
    }
    It should work.
    [center:1rfmcnn4]banger4life
    [/center:1rfmcnn4]

  4. #4
    Regular Member

    Join Date
    Feb 2007
    Location
    Ahaha! I got VIP!
    Posts
    126

    Re: I'm obviously not good at coding whatsoever

    You need to write it in JavaScript.

    So you would use something like

    Code:
    document.body.backgroundColor = "#FF9999";
    document.body.backgroundImage = "url(http://whateverTheURLis)";


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •