How to place a javascript script on server
Hi
I have a javascript "widget" that loops through a series of quotations, showing a new quote with each page refresh. I have it running in the right sidebar on an html page.
A couple of bloggers have asked if they can use it too. So I want to place the script on my server so i can control/update the content, and offer a simple line of code so bloggers and webmasters can place it anywhere on their site, and call the javascript from my server.
Any ideas on a simple solution would be appreciated. My host is a Small orange, so i think I have access to all the php etc (even though I don't know what to do with any of the capabilities!)
thanks
ChadR posted this at 11:49 — 9th April 2007.
They have: 43 posts
Joined: Mar 2007
<script language="javascript" src="http://yourdomain.com/thescript.js">
</script>
It should be as simple that. Now they should be able to use the JS located on your site.
The Best User Driven Poker Site, where you can find Poker Games in your area and get the latest Poker Strategy.
pisstaker posted this at 20:20 — 9th April 2007.
They have: 63 posts
Joined: Sep 2006
Thanks, i will give it a try. You make it sound so easy
ChadR posted this at 17:04 — 10th April 2007.
They have: 43 posts
Joined: Mar 2007
How did that work out for you?
pisstaker posted this at 19:32 — 1st May 2007.
They have: 63 posts
Joined: Sep 2006
I managed to get it to work thanks. My buddy is styling the CSS now so we should have a widget out fairly soon
thanks for the help
pisstaker posted this at 23:42 — 10th May 2007.
They have: 63 posts
Joined: Sep 2006
Thanks for the pointer in the right direction and we now have a funny quotes widget up and running. I would appreciate some help from any webmasters willing to give it a go and let me know how it does. The quotes are witty and not too blue! The link and info is here cheers
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.