HTML override

Discussion in 'HTML and CSS' started by FlutterYay, Jan 9, 2012.

  1. FlutterYay

    FlutterYay

    Joined:
    Jan 9, 2012
    Messages:
    2
    I'm looking at this part of HTML/Source coding in my chrome element inspector. (Shown below) and I'm wondering if there is a way to override this div class so the image changes.
    As a moderator we have access to source code at the bottom of the page, but we cannot modify any of the actual source code directly, we can only add new codes at the bottom. Is it possible to locate and overwrite this script through CSS or some sort of script?

    ...
    ...
    ...
    <div id="st-descr"><div class="banner"><img class="hide" original-src="http://fc00.deviantart.net/fs71/i/2011/364/6/8/character_banner__fluttershy_by_dylandylan72-d4ks6yi.png" src="http://fc00.deviantart.net/fs71/i/2011/364/6/8/character_banner__fluttershy_by_dylandylan72-d4ks6yi.png" style="display: inline; "></div>
    ...
    ...
    ...
     
    FlutterYay, Jan 9, 2012
    #1
    1. Advertising

  2. FlutterYay

    FlutterYay

    Joined:
    Jan 9, 2012
    Messages:
    2
    I figured it out. I just needed to create a CSS file with this code.

    /* Remove the existing banner */
    #st-descr .banner .hide {visibility:hidden;}

    /* Background image as new banner */
    #st-descr .banner {background: transparent url

    ("<insert new image url>")}
     
    FlutterYay, Jan 9, 2012
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    2
    Views:
    564
    Natty Gur
    Jul 13, 2003
  2. Guest
    Replies:
    2
    Views:
    3,123
    Guest
    Jul 16, 2003
  3. Zuel
    Replies:
    4
    Views:
    2,175
  4. Zuel
    Replies:
    4
    Views:
    242
  5. Adam Akhtar
    Replies:
    9
    Views:
    562
    Florian Gilcher
    Aug 16, 2008
Loading...

Share This Page