i want to need to make script like google adsence(just example) java script..we are just pasting java script of ad in our site..it will become ad…like that i want to make javascript that..in my site ( http://www.momdb.com ) have different movie details…for every movie i need javascript..if any one copy that javascript and paste into his site there want to show that movies basic details (like,that movies director,producer,actors,etc)..its all in my databse…how i can show that to his site if he copy paste javascript..?
how i can do this with javascript ?? no need of iframe..because,javascript will work every where…give me some basic idea..or a tutorial for that
Thnks friends 🙂
You can have other sites include Javascript from your site with the
<script>tagDepending on what
embed.jscontains, the user’s site can be modified / parsed according to your needs.Assume
embed.jscontains the following codeBoth this markup,
and this markup
Would produce the exact same result