討論 » 建立請求

Java script parameters replace

§
發表於:2016-01-18
編輯: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

發表回覆

登入以回覆

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