Ezilon.com - Target Your Audience, be Seen in Your Region

How to place a javascript script on server

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 63 posts

Joined: Sep 2006

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

The Pisstakers run 3 satire blogs - tech, news and quirky - original articles & funny videos, cartoons & photos We do blog reviews too.

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.

They have: 63 posts

Joined: Sep 2006

Thanks, i will give it a try. You make it sound so easy

They have: 43 posts

Joined: Mar 2007

How did that work out for you?

They have: 63 posts

Joined: Sep 2006

ChadR;217622 wrote: How did that work out for you?

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

The Pisstakers run 3 satire blogs - tech, news and quirky - original articles & funny videos, cartoons & photos We do blog reviews too.

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

The Pisstakers run 3 satire blogs - tech, news and quirky - original articles & funny videos, cartoons & photos We do blog reviews too.