Some useful Scripts for Web-Pages

Vitaly Eremenko

I decided to publish some of my scripts with examples.
They created for my sites, but in my opinion, they have common features and may be useful not only on my sites.
You have right to copy free these scripts and use them with links to this site www.violtan.com on some pages of your site.
Thank you for attention.
  1. User-defined File INI on PHP
    It is PHP5-class for support your own file INI.
    - You may create and use your own one file or some files INI on your site.
    - It is NOT php.ini file with standard php-support.
    - Each your file INI may contain one or some sections.
    - Each section may contain one or some parameters and commentaries.
    We tested and found bug in standard php-function array parse_ini_file(..)
    - It cannot work correctly with complex parameter name as here:
    parameter name (unit name)=value
    etc. We do not use this function.

  2. Soft Button 3D
    See examples below.
    - The button may get your sizes, background color, text label and text color, border thickness and button status (down or up).
    It may be used in php- or html-page, in your HTML-form.
    - Unfortunately embedded fonts 1-5 in image have support only for latin chars.

  3. Round Rectangular Button with Border
    See examples below.
    - The button may get your sizes, background color, text label and text color, radius of the rounded corners and border thickness.
    This button type does not support 3D effects with shadows on borders.
    - The label may contain only latin chars.

  4. User Image Button
    See examples below.
    - The button may get your sizes, background image, text label and text color.
    - The label may contain only latin chars.

  5. Mouse Events Code for Button 3D in web-Form
    It uses PHP and JavaScript.

Examples of Button:

Button 3D:
button button
button button

Round Rectangle Button:
round button round button 2

Image Button:
image button image button image button


Example of User's INI-file:
[INIT_DATA]
Local Valute Name (Loc.)=rub
Average Rate (Local to $1 USD)=29.6
Tax from Trade Volume % = 6
// comment 1 - the script will pass it and insert on file update.

[TRADE_DATA]
Rent for 1 m2 of Area (loc./month)=800
// Trade Area m2=32 - Comment 2 to remember data next editing
Trade Area m2=43.5

Page Top
The Site first published at July 11, 2004.
Copyright ©2004 - 2024 www.Violtan.com