Discussions » Creation Requests

Java script parameters replace

§
Posted: 2016/01/18
Edited: 2016/01/18

Java script parameters replace

Hello, I am trying to replace some code in javascript in this page http://www.mza.cz/indikacniskici/index.php#show:MOR139618260 but with no luck :-(

In index.php there is javascript with text AC_FL_RunContent and in it there are also this two parameters:

    'width', '100%',
    'height', '100%',

and I need to change it to:

    'width', '8000',
    'height', '8000',

I tried it using replace function, but its not working :-(

    document.body.innerHTML = document.body.innerHTML.replace('\'width\', \'100%\',', '\'width\', \'9999\',');
    document.body.innerHTML = document.body.innerHTML.replace('\'height\', \'100%\',', '\'width\', \'9999\',');

Thanks very much for help. VictorC

Post reply

Sign in to post a reply.

长期地址
遇到问题?请前往 GitHub 提 Issues。