Dragon-like Text Scroller




Source and class files:

DESCARGATE AQUI ESTE APPLET y no olvides votarnos en los gif y pinchar algun baner de nuestros patrocinadoresx para que todo siga funcionando y podamos ofrecer servicios grauitos para webmasters como tu visita nuestra sección de Javascript.    download     


This applet is freeware. To use the applet on your site, save the file Dragon.zip by right clicking on the link and use the 'SAVE LINK AS' option, then UNZIP the file and put the class file in the same directory as your HTML file. A sample HTML file is included in the zip file. To customize the applet for your site, follow the procedures below.
HTML Example
<applet code="Dragon.class" width="400" height="100"> <param name=maxText value="3"> <param name=text1 value="The Java Boutique"> <param name=text2 value="Dragon-like Text Scroller"> <param name=text3 value="Dragon is an imaginary creature."> <param name=speed value="2"> <param name=fontname value="TimesRoman"> <param name=fontstyle value="BOLD_ITALIC"> <param name=fontsize value="32"> <param name=fontcolor value="white"> <param name=rgb value="000000"> <param name=background value="setcolor"> <param name=bgrgb value="c0c0c0"> </applet>

 Applet parameters

Required global parameters: 

    width and height 
    Change the width and height to indicate the size of the applet. 

    maxText 
    This is the number of strings to display. 

    text1 
    This is the first string to display. 

    text2 
    This is the second string to display. 

    textn 
    This is the n'th string to display.(n = 3 in this sample case) 

    speed 
    This value controls the scrolling speed of strings to display, the larger the number the fasterit scrolls. 

    fontname 
    This is the font name for all strings to display. Use one of the following font names below:

    Courier
    Dialog
    Helvetica
    TimesRoman
    

    fontstyle 
    This is the font style for all strings to display. Use one of the following font styles below: 

    PLAIN
    BOLD
    ITALIC
    PLAIN_ITALIC
    BOLD_ITALIC
    

    fontsize 
    This is the font size for all strings to display. The value must be an integer. 

    fontcolor 
    This is the font color of the strings to display. To use a pre-selected font color, use one of the following colors below: 

    black
    blue
    cyan
    darkGray
    gray
    green
    lightGray
    magenta
    orange
    pink
    red
    white
    yellow
    
    random   ----- if this value is selected, each of the strings will be ranomly changed in color.
    setcolor ----- if this value is selected, you can use any color by setting the following three sets of parameters.
     

    rbg 
    This is the hexadecimal RGB color code of the font color to display. The value must be a RGB code, ranging from "000000" (black in color) to "ffffff" (white in color). 

    For example, to use the 'white'-colored strings, code the fontcolor parameters as follows:
    <param name=fontcolor value="setcolor">
    <param name=rgb value="ffffff">

    background 
    This is the background color of the applet. To use a pre-selected colored background, use one of the following colors below: 

    black
    blue
    cyan
    darkGray
    gray
    green
    lightGray
    magenta
    orange
    pink
    red
    white
    yellow
    
    setcolor ----- if this value is selected, you can use any color by setting the following three sets of parameters.
     

    bgrgb 
    This is the hexadecimal RGB color code of the background color to display. The value must be a RGB code, ranging from "000000" (black in color) to "ffffff" (white in color). 

    For example, to use the 'silver'-colored background, code the background parameters as follows:
    <param name=background value="setcolor">
    <param name=bgrgb value="c0c0c0">


Easy Setup

The easiest way to set up the applet on your site is to start with the applet code in the sample HTML file found in Dragon.zip. Use notepad and cut and paste the applet parameters from the sample HTML file into your HTML file. Then try it out, if it works, then customize it for your site. Please note, after you change the HTML file you must hit 'reload' on your browser to view the changes (sometimes you must close the browser and reopen it to see the changes).

Author

Email me at sigemitu@mxa.mesh.ne.jp

NO olvideis pinchar en algun baner de nuestros patrocinadores para que esta web pueda seguir ofreciendo servicios gratuitos para ñwebmasters y votarnos en los top.

Colección de fondos para web o escritorio y más utilidades gratuitas Amplia colección de Gifs animados para sitios web totalmente optimizados para que descarguen rápido en tus páginas Ejemplos y codigos de Javascript para páginas web Musica Mp3, flash, Midi, todo lo relacionado con la música se da cita en esta página