JavaZOOM Web Site
Applets
Servlets
Projects
Services
Links
About

Navigation System
Contest


Any Question ?
Try our Forums !

J-Ads V2.1 is now available (shareware) here !

Here is the J-Ads Applet. A "roller banner" based Applet. And it's free. J-Ads is very easy to install on your web page. You have to fill basic parameters for a simple use. Extra parameters are also available for advanced users. It is best viewed with IE 4.x or Netscape 4.x but it works under any java capable browser.

What 's NEW ?

  • Click count is provided for web servers that support CGI and PERL.
  • New transistions added.
  • Error management bug fixed (filename & dimension confusion)
  • How to install J-Ads ?

    Download the complete demo package here (27.4 Ko - zip file) :

    First you have to copy jads.class AND Area.class in the directory of your web page. Then you have to fill the applet tag in the HTML source. The J-Ads example above is the result of :

    <APPLET CODE="jads.class" CODEBASE="./" WIDTH="468" HEIGHT="60">

    <PARAM NAME="image_0" VALUE="banner1.gif">
    <PARAM NAME="alink_0" VALUE="http://javazoom.hypermart.net">
    <PARAM NAME="image_1" VALUE="banner2.gif">
    <PARAM NAME="alink_1" VALUE="http://www.geocities.com/CapeCanaveral/Hall/3397">
    <PARAM NAME="image_2" VALUE="banner3.gif">
    <PARAM NAME="alink_2" VALUE="mailto:ebsp@iname.com">
    <PARAM NAME="wait" VALUE="50">

    <!-- Extra parameters -->
    <PARAM NAME="frame_0" VALUE="_blank">
    <PARAM NAME="frame_1" VALUE="_blank">
    </APPLET>

     

    What are the PARAMETERS ?

    Basic Parameters :

    You can choose the width and the height of J-Ads through the WIDTH and HEIGHT parameters.

    You must have TWO or more banners (gif or jpeg format) to fill image_0, image_1, ... parameters. Banners must have the same size !

    Links matching to banner should be filled through alink_0, alink_1, ... parameters. They are displayed in the Status Bar when active. During transitions links are not active.

    wait parameter defines the sleep time between transistion.

     

    Extra Parameters (for advanced users) :

    Extra parameters allows the user to choose his own transistions, target frames and refresh rate. Optional click counter is also available for web servers that support CGI.

    You can choose the number of frame per second through the fps parameter (default is 15).

    You can choose the target frame of the link through frame_0, frame_1, ... parameters. frame_x should be :

  • "name of the frame" : To load the link into the FRAME named in the HTML code.
  • "_blank" : To load the link in a new blank unnamed browser window.
  • "_self" : To load the link into the same window the applet occupies.
  • "_parent" : To load the link into the immediate FRAMESET parent.
  • "_top" : To load the link into the top body of the window.
  • You can now count clicks on banners if your web server supports CGI. Fill in the clickcounter parameter with the PATH to jads.cgi then configure the server-side of J-Ads Pro. To do so :

  • Adjust the PERL path matching to your web server (i.e #!/usr/bin/perl) in jads.cgi
  • Upload jads.cgi and check that it is readable and executable (chmod 755).
  • Create an empty file : jadslog.txt with RW right (chmod 766) in the same directory as jads.cgi. If you manage multiple J-Ads Applets then create as many files jadslog_ID.txt as applets, each must have RW right access.
  • Default connection port with web server is 80 but you can force it through the port parameter.

    You can specify the ID extension of log filename (only for multiples J-Ads Applets) through the ID parameter. (i.e. id value is 402 then jadslog_402.txt will received click info).

    You can use the debug mode through the debug parameter (values are yes or no) when clickcounter seems not to work.

    You can force your own transition by filling all the following three parameters :

    grid : NbLinesxNbCols defined in banners.

    transition : Transition between features of the grid. You can choose between fade, leftright, updown, rollup and rolldown.

    direction : direction (propagation) in grid transitions. You can choose between updownleftright, updownrightleft, downupleftright, downuprightleft and empty (no propagation).

    Here is an example :

    <PARAM NAME="grid" VALUE="10x10">
    <PARAM NAME="transition" VALUE="
    fade">
    <PARAM NAME="direction" VALUE="
    downuprightleft">

    As you can see possibilities are many, who dares try them :). If you don't use these three parameters, the applet will choose them randomly.

    F.A.Q :

    J-Ads does not work when I upload it on the server !?!??

    First of all check that you uploaded jads.class AND Area.class in BINARY mode. Secondly check location and filename (in the HTML code) of banners (warning GIF or JPEG format only for banners).

    How to use J-Ads with external banners ?

    You must host the banners, Java does not allow connections with servers different from the one hosting Applet (Security Policy). Anyway if you try load external banners through J-Ads you will get: "Error loading banners, check location" or a Security exception !

    How to choose the server which host J-Ads ?

    Fill in the CODEBASE parameter in the Applet tag (i.e. CODEBASE="http://www.theDomain.com/theDirectory/"). Default is "./".

    The clickcounter doesn't work ?!?

    First all of check that you web server allow CGI and PERL. Secondly edit jads.cgi to fill in the PERL path (i.e. #!/usr/local/bin/perl). Then check jads.cgi is "chmod 755" and jadslog.txt is "chmod 766". Finally check that the clickcounter parameter is the absolute path to jads.cgi.

    jads.cgi doesn't work on Windows Web Server ?!?

    Yes, jads.cgi use "flock functions" not implemented on Windows 9x/NT ,download the jadspro-win.zip and try again.


    J-Ads Pro Applet

    FREE


     

    [News]

    [Applets]

    [Servlets]

    [Services]

    [Projects]

    [Links]

    [About]
     

    Copyright © JavaZOOM 1999-2003

    Java is a trademark of Sun Microsystems,Inc. All other company and/or product names are the property of their respective owners.