advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

J-Ads


What 's NEW ?

  • Animated GIF supported !
  • Configuration file added.
  • Nice banners loading management (no need to wait last banner before starting J-Ads). While first banner is loading, J-Ads uses bgcolor parameter to display empty screen, then it displays the first banner. Others banners are loaded in a background process.
  • Hand cursor added for link.
  • Banners dimension constrains removed.
  • Server-side click reports added.
  • How to install J-Ads 2 ?

    Download the full demo package here (72.1 Ko - zip file) :

    First you have to copy all class files in the directory of your web page. Then you have to fill the applet tag in the HTML source code and setup the configuration file. The J-Ads example above is the result of :

    HTML code :
    <APPLET CODE="jads2.class" CODEBASE="./" WIDTH="468" HEIGHT="60">
    </APPLET>
    +
    config file : jads.ini

    #################################
    # J-Ads V2.0 Configuration file #
    #   Copyright JavaZOOM - 1999   #
    # http://javazoom.hypermart.net # #################################

    #---------------------------------#
    # BackGround color during loading #
    #---------------------------------#
    bgcolor = FFFFFF

    #--------------------#
    # Banners Parameters #
    #--------------------#
    image_0 = computerbanner.gif
    alink_0 = http://javazoom.hypermart.net

    image_1 = shiftboard.gif
    alink_1 = http://javazoom.hypermart.net

    image_2 = nasa.gif
    alink_2 = http://javazoom.hypermart.net

    image_3 = casino.gif
    alink_3 = http://javazoom.hypermart.net

    image_4 = java468x60.gif
    alink_4 = http://javazoom.hypermart.net

    image_5 = armoire.gif
    alink_5 = http://javazoom.hypermart.net

    #------#
    # Misc #
    #------#
    wait = 2000

     

    How to setup PARAMETERS ?

     Applet Parameters :

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

    config parameter defines the name of J-Ads applet configuration file. Default is jads.ini. J-Ads parameters have been moved to this file to make configuration step more convenient.

     Basic Parameters :

    You have to know that empty lines and lines starting with # (comments) are ignored.

    You can choose the background color of the applet when the first banner is loading through bgcolor parameter. Default is white. This parameter is usefull when your first banner is an heavy GIF.

    You must have TWO or more banners (only GIF format) to fill image_0, image_1, ... parameters. Animated GIF are supported ! .

    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 sleep time (in milliseconds) for static banners (default is 3000). You can mix animated GIF with static GIF. Animated one will follow their own sleep time values (use any GIF constructor tool - as Microsoft GIF Animator- to change them) whereas Static one will use the wait parameter.

     Extra Parameters (for advanced users) :

    Extra parameters allows an user to choose his own transistions, target frames and refresh rate. GIF iteration can also be controled.

    You can choose the target frame of any 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 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 circleout, 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 :

    grid = 10x10
    transition =
    circleout
    direction =
    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.

    You can choose the number of frame per second for transitions effects through the fps parameter (default is 15). The more fps is high the more applet use CPU.

    You can force J-Ads to use GIF loop (or iteration) flag through useGIFIteration parameter. Value should be yes or no.
    Warning : If you use GIF with high iteration value you will wait for a very long time to see the next GIF....

     Server-Side Parameters (for advanced users) :

    Optional click counter is available for web servers that support CGI and PERL. This feature is usefull to make click reports.

    You can now count clicks on banners if your web server or ISP supports CGI. Fill in the clickcounter parameter with the url PATH to jads.cgi (e.g http://www.company.com/ads) then configure the server-side of J-Ads. To do so :

  • Adjust the PERL path matching to your web server (e.g #!/usr/bin/perl or #!c:\perl\bin\perl.exe) 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 HTTP 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).

    Download the perl script jads.cgi (Win32 or Unix oriented)


    F. A. Q. :

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

    First of all check that you uploaded all class files in BINARY mode. Secondly check location and filename (check case twice !) of uploaded banners (warning only GIF format supported 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 ?!?

    Check that you downloaded the Win32 oriented Perl Script. Unix oriented jads.cgi script use "flock functions" not implemented on Windows 9x/NT.

    Is J-Ads support GIF iteration flag ?

    Yes. Use useGIFIteration = yes to do so. Infinite loop are ignored.


    Registration :

    Registered version of J-Ads V2.0 cost $19 US per domain name.
    ( e.g : www.mydomain.com or www.myisp.com/mypage )
    Full support is included (this documentation + email support).
    Update are free.

    Discount are possible if you register more than three domain.


    Back to the J-Ads applet page

    How to Add Java Applets to Your Site

    New on the Java Boutique:

    New Review:

    Time Management Made Easy with the Quartz Enterprise Job Scheduler
    Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

    New Applet:

    Reverse Complement
    Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

    Elsewhere on internet.com:

    WebDeveloper Java
    Lots of Java information on webdeveloper.com

    WDVL Java
    Thorough Java resource at the Web Developer's Virtual Library.

    ScriptSearch Java
    Hundreds of free Java code files to download.

    jGuru: Your View of the Java Universe
    Customizable portal with online training, FAQs, regular news updates, and tutorials.

     DevX Skillbuilding from IBM developerWorks
     RIA Run Contest: Build Next-Gen Apps in Microsoft Silverlight 2
     Avaya DevConnect Center
     Intel Go Parallel Portal
     Internet.com eBook Library
     Microsoft RIA Development Center
     Destination .NET
    XML error: not well-formed (invalid token) at line 53
    advertisement
    Receive Articles via our XML/RSS feed
    Receive Articles via our XML/RSS feed

    JavaBytes
    Internet Cyclone
    This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

    RIM Ups Ante With Mobile Software Push
    Novell Readies Silverlight Clone for Linux
    Yahoo Pitches The 'Next Generation of Search'
    Alfresco's Latest ECM: Prying Open a Sector?
    SaaS Tool Offers Custom Database Development
    Microsoft’s Automated Agent: Can We Talk?
    Borland Finally Sells CodeGear
    Red Hat Heads for the JON 2.0
    Out with the Old, in with the New at JavaOne
    Trolltech Expands WebKit Footprint

    Create Secure Java Applications Productively, Part 1: Use Rational Application Developer and Data Studio
    .NET Building Blocks: Custom User Control Fundamentals
    Secure Internet File-Sharing with PHP, MySQL, and JavaScript
    Getting Started with TBB on Windows
    Moving to VoIP: Should You Go It Alone?
    Introduction to the WPF Command Framework
    7.0, Microsoft's Lucky Version?
    Will Hyper-V Make VMware This Decade's Netscape?
    Eliminate Fragmentation Frustration with Netbiscuits
    Taming Trees: Building Branching Structures

    Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About



    JupiterOnlineMedia

    internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info


    Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

    Solutions
    Whitepapers and eBooks
    Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
    Microsoft Article: 7.0, Microsoft's Lucky Version?
    Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
    Avaya Article: How to Feed Data into the Avaya Event Processor
    Microsoft Article: Install What You Need with Windows Server 2008
    HP eBook: Putting the Green into IT
    Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
    Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
    Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
    Avaya Article: Setting Up a SIP A/S Development Environment
    IBM Article: How Cool Is Your Data Center?
    Microsoft Article: Managing Virtual Machines with Microsoft System Center
    HP eBook: Storage Networking , Part 1
    Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
    MORE WHITEPAPERS, EBOOKS, AND ARTICLES
    Webcasts
    Intel Video: Are Multi-core Processors Here to Stay?
    On-Demand Webcast: Five Virtualization Trends to Watch
    HP Video: Page Cost Calculator
    Intel Video: APIs for Parallel Programming
    HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
    Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
    MORE WEBCASTS, PODCASTS, AND VIDEOS
    Downloads and eKits
    Sun Download: Solaris 8 Migration Assistant
    Sybase Download: SQL Anywhere Developer Edition
    Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
    Red Gate Download: SQL Compare Pro 6
    Iron Speed Designer Application Generator
    MORE DOWNLOADS, EKITS, AND FREE TRIALS
    Tutorials and Demos
    How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
    eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
    IBM Article: Collaborating in the High-Performance Workplace
    HP Demo: StorageWorks EVA4400
    Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
    Microsoft How-to Article: Get Going with Silverlight and Windows Live
    MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES