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.

     Avaya DevConnect Center
     Service Component Architecture/Service Data Objects Solution Center
     Intel Go Parallel Portal
     Internet.com eBook Library
     IBM Software Construction Toolbox
     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%.

    Cisco Romancing Linux Developers
    MobiUI Snares ActionEngine in iPhone/Mobile Push
    Windows 7: It's Not Just a Codename Anymore
    Microsoft Shines Silverlight on Eclipse
    OpenOffice Hits 3.0: Can It Challenge Microsoft?
    Get Ready for Microsoft's 'Oslo' Modeling Tool
    Latest Linux Hits Networking Flaws
    Metasploit 3.2 Offers More 'Evil Deeds'
    'Thank You Apple. Seriously.'
    The Buzz: BlackBerry App Store Seen Next

    Intel Sees Fewer Power Cords in Your Future
    F# 101
    Use Explicit Conversion Functions to Avert Reckless Implicit Conversions
    Polyglot Programming: Building Solutions by Composing Languages
    Automated testing for .NET by Ben Hall
    "Supply Chain" SOA with SKOS
    Service Component Architecture in Real Life
    C++Ox: The Dawning of a New Standard
    Getting Started with Virtualization
    Master Complex Builds with MSBuild

    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: BitLocker Encryption on Windows Server 2008
    Go Parallel Article: Intel Thread Checker, Meet 20 Million LOC
    IBM Whitepaper: Innovative Collaboration to Advance Your Business
    Internet.com eBook: Real Life Rails
    Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
    Tripwire Whitepaper: Seven Practical Steps to Mitigate Virtualization Security Risks
    Internet.com eBook: The Pros and Cons of Outsourcing
    Internet.com eBook: Best Practices for Developing a Web Site
    IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
    Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
    Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
    IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
    Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
    Go Parallel Article: Getting Started with TBB on Windows
    HP eBook: Storage Networking , Part 1
    MORE WHITEPAPERS, EBOOKS, AND ARTICLES
    Webcasts
    Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
    HP Video: Is Your Data Center Ready for a Real World Disaster?
    Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
    HP On Demand Webcast: Virtualization in Action
    Go Parallel Video: Performance and Threading Tools for Game Developers
    Rackspace Hosting Center: Customer Videos
    Intel vPro Developer Virtual Bootcamp
    HP Disaster-Proof Solutions eSeminar
    HP On Demand Webcast: Discover the Benefits of Virtualization
    MORE WEBCASTS, PODCASTS, AND VIDEOS
    Downloads and eKits
    Amyuni Download: PDF & XPS Engine for Your .NET and ActiveX Applications
    Microsoft Download: Silverlight 2 Software Development Kit Beta 2
    30-Day Trial: SPAMfighter Exchange Module
    Red Gate Download: SQL Toolbelt
    Iron Speed Designer Application Generator
    Microsoft Download: Silverlight 2 Beta 2 Runtime
    MORE DOWNLOADS, EKITS, AND FREE TRIALS
    Tutorials and Demos
    IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
    Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
    MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES