Convert iframe code to JS?

Status
Not open for further replies.

azxster

Newbie
Joined
Jul 8, 2011
Messages
20
Reaction score
1
I have this iframe code that I place on publishers' websites

Code:
<iframe width="160" height="600" frameborder=0 scrolling='no'
src=mywebsite></iframe>

where mywebsite hosts my advertiser's javascript.

I need someone to convert this iframe tag into a javascript tag.
 
you can try with document.write function... to write the iframe via javascript...
 
Just echo it out. in the ifram.js file, something like:-
document.write('<iframe frameborder="0" scrolling="no" height="300" width="300" name="myFrame" src="yoursite"></iframe>');
Then in the HTML page:-
<script language="javascript" src="http://www.example.com/ifram.js"></script>


that's it
 
Thanks guys!

Is there a way to "mask" the source of my script and the code of the script. I know you can't hide it because if it's hidden, then users wouldn't be able to run the script. I want to make it harder for people to know I'm using an iframe and/or my advertiser.
 
If you don't want to show iframe code in source, encrypt your html code here > smartgb.com/free_encrypthtml.php
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top