JavaScript Widget to export my content... |
JavaScript Widget to export my content... |
Nick |
Oct 9 2006, 06:41 PM
Post
#1
|
Member Group: Members Posts: 32 Joined: 29-September 06 Member No.: 268 |
Hi Folks, I've got a little nugget on my site that I want to make available to other people to put on their sites. It's really nothing more than a couple lines of text that change periodically. If other people were all on my server they coulc certainly include this stuff in a php-include, but they're not so I'm guessing something like JavaScript would work. Can anyone point me to a method or resources where this has been done? Thanks!!! |
pandy |
Oct 9 2006, 06:56 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,753 Joined: 9-August 06 Member No.: 6 |
Look at the ads by Gooogle at the top of this page.
Basically the other sites put a link to the js file on your server where they want the content displayed. Your script document-writes the text. They use: <script type="text/javascript" src="http://.../yourscript.js></script> yourscript.js document.write('<p>Hello World!<\/p>'); |
Nick |
Oct 10 2006, 12:28 AM
Post
#3
|
Member Group: Members Posts: 32 Joined: 29-September 06 Member No.: 268 |
No kidding! I had no idea it was that easy... very cool. Make that 95 beers I owe you guys... keep up the good work!
|
Lo-Fi Version | Time is now: 24th September 2024 - 04:25 PM |