| |

VerySource

 Forgot password?
 Register
Search
View: 719|Reply: 3

Problems with IE plugin, modify web code

[Copy link]

4

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-19 19:00:01
| Show all posts |Read mode
I wrote an IE plug-in, which is definitely not rogue software :) It is an advertising system for Internet cafes. How to add advertising code to web pages? Cover the code of the web page with innerHtml. . .
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-15 09:15:01
| Show all posts
Since you think of innerHTML, you can try it. First read the content between <body></body> with innerHTML, followed by your own advertising code, and then re-use innerHTML to write it back, so that it will not overwrite the original The content of the page
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-17 08:30:01
| Show all posts
dim Tt
Tt=document.body.innerHTML
Tt=Tt&"Advertisement"
document.body.innerHTML=Tt
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-17 09:00:02
| Show all posts
The code will change, the question is how to plug it into IE?
Inserting the ad code between <body></body> is simple, but how to rewrite it into IE.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list