| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Carpe Diem Join Date: Apr 2007 Location: Brisbane
Posts: 909
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Java programming 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
__________________ |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: May 2008 Location: England
Posts: 771
![]() ![]() ![]() ![]() ![]() ![]() | 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. ????: NamePros.com http://www.namepros.com/programming/660773-java-programming.html 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.
__________________ pixelhero Web Development Studios UK
Last edited by pixelhero; 06-09-2010 at 08:47 PM.
|
| |
| | #3 (permalink) |
| New Member Join Date: Jul 2010
Posts: 4
![]() | Store your ads in database on your server and then connect it with other website.
__________________ Software Engineer. Developed HTTP Debugger For Developer Community. |
| |
| | #4 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |