Unstoppable Domains

Java programming

Spaceship Spaceship
Watch

Nathan

Carpe DiemVIP Member
Impact
61
Hey all,

I was just wondering if it was possible to make a java script for ads, the idea behind it, is I want to offer some free products, as a term of service, i would require them to put a java script on their site, either as a banner header/sidebar script... but then from that, i want the script to read a directory has that the actual ad's in it... that way I can add different banners/advertisment without actually going to each site and getting them to put a new banner on...

Just wondering if a) it's possible... b)how hard it would be implement, /are there any scripts out there already???

I don't have any experience with Java
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
a) yes is it.
b) if the sites using your ad's are external to the server, it'd be easier if they communicated with a script on your server, and only that script could read your directory. I don't believe it is that hard, I have not used JavaScript for reading directories, but I'd assume its pretty standard functions. But I'd guess this way is probably the way to do it:
Code:
External site page loads with your ad script.
The script requests an advert to load from your server side script. (Maybe pass a 'category' or something if you want categorised ads)
The script on your server returns a link to the advert for that site.
External site can display this link in img tags.
I wouldn't recommend allowing JavaScript on external sites to pick files from a directory directly.

b2) I don't know.

Also, JavaScript is not Java, it is very similar and based upon it yes, but if you are looking for scripts and support, use the word JavaScript you will more likely find what you are looking for.
 
Last edited:
1
•••
Store your ads in database on your server and then connect it with other website.
 
0
•••
It's is possible, but as mentioned, Java and JavaScript are NOT the same, so tread carefully. In this case, a mix of javascript and some serverside scripting (like php) seems to be your best bet, but of course it is _possible_ to do it with java (although would be a VERY bad idea). java is generally frowned upon for web apps due to its slowness
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back