Phppgads 2.0.7 > PhpPgAds 2.0.7 / Admin / Js Help.js

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Phppgads 2.0.7

Download:
phppgads-2.0.7.zip

Category:
Ad Management

Archive Content:

PhpPgAds 2.0.7

PhpPgAds 2.0.7 > Admin

PhpPgAds 2.0.7 > Admin > Report Plugins

PhpPgAds 2.0.7 > Admin

PhpPgAds 2.0.7 > Admin > Images

PhpPgAds 2.0.7 > Admin > Images > Ltr

PhpPgAds 2.0.7 > Admin > Images

PhpPgAds 2.0.7 > Admin > Images > Flags

PhpPgAds 2.0.7 > Admin > Images

PhpPgAds 2.0.7 > Admin > Images > Rtl

PhpPgAds 2.0.7 > Admin > Images

PhpPgAds 2.0.7 > Admin

PhpPgAds 2.0.7 > Admin > Templates

PhpPgAds 2.0.7

PhpPgAds 2.0.7 > Cache

PhpPgAds 2.0.7 > Client

PhpPgAds 2.0.7 > Language

PhpPgAds 2.0.7 > Language > Brazilian Portuguese

PhpPgAds 2.0.7 > Language > Chinese Big5

PhpPgAds 2.0.7 > Language > Chinese Gb2312

PhpPgAds 2.0.7 > Language > Dutch

PhpPgAds 2.0.7 > Language > English

PhpPgAds 2.0.7 > Language > English Us

PhpPgAds 2.0.7 > Language > French

PhpPgAds 2.0.7 > Language > German

PhpPgAds 2.0.7 > Language > Hebrew

PhpPgAds 2.0.7 > Language > Hungarian

PhpPgAds 2.0.7 > Language > Indonesian

PhpPgAds 2.0.7 > Language > Italian

PhpPgAds 2.0.7 > Language > Korean

PhpPgAds 2.0.7 > Language > Polish

PhpPgAds 2.0.7 > Language > Portuguese

PhpPgAds 2.0.7 > Language > Russian Cp1251

PhpPgAds 2.0.7 > Language > Russian Koi8r

PhpPgAds 2.0.7 > Language > Spanish

PhpPgAds 2.0.7 > Language > Turkish

PhpPgAds 2.0.7 > Libraries

PhpPgAds 2.0.7 > Libraries > Defaults

PhpPgAds 2.0.7 > Libraries

PhpPgAds 2.0.7 > Libraries > Layerstyles

PhpPgAds 2.0.7 > Libraries > Layerstyles > Cursor

PhpPgAds 2.0.7 > Libraries > Layerstyles > Floater

PhpPgAds 2.0.7 > Libraries > Layerstyles > Geocities

PhpPgAds 2.0.7 > Libraries > Layerstyles > Geocities > Images

PhpPgAds 2.0.7 > Libraries > Layerstyles > Geocities

PhpPgAds 2.0.7 > Libraries > Layerstyles > Simple

PhpPgAds 2.0.7 > Libraries > Layerstyles > Simple > Images

PhpPgAds 2.0.7 > Libraries > Layerstyles > Simple

PhpPgAds 2.0.7 > Libraries

PhpPgAds 2.0.7 > Libraries > Deliverycache

PhpPgAds 2.0.7 > Libraries > Geotargeting

PhpPgAds 2.0.7 > Libraries > Resources

PhpPgAds 2.0.7 > Maintenance

PhpPgAds 2.0.7 > Misc

PhpPgAds 2.0.7 > Misc > Documentation

PhpPgAds 2.0.7 > Misc

PhpPgAds 2.0.7 > Misc > Fakecron

PhpPgAds 2.0.7 > Misc > Revisions

PhpPgAds 2.0.7 > Misc > Samples

PhpPgAds 2.0.7 > Misc > Samples > Xmlrpc

PhpPgAds 2.0.7 > Misc > Samples > Xmlrpc > Php

Js Help.js:


// $Id: js-help.js, v 2.0.2.2 2005/01/13 15:49:23 ciaccia Exp $

/************************************************************************/
/* phpPgAds                                                             */
/* ========                                                             */
/*                                                                      */
/* Copyright (c) 2001-2005 by the phpPgAds developers                   */
/* For more information visit: http://phppgads.sourceforge.net          */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/


// Settings
var helpSteps = 12;
var helpStepHeight = 8;
var helpDefault = '';

var helpCounter = 0;
var helpSpeed = 1;
var helpLeft = 181;
var helpOnScreen = false;
var helpTimerID = null;



/*********************************************************/
/* Set the help text                                     */
/*********************************************************/

function setHelp(item)
{
    var helpContents = findObj("helpContents");

    if (helpOnScreen == true)
    {
        if (item != null && helpArray[item] != null)
            helpContents.innerHTML = unescape(helpArray[item]);
        else
            helpContents.innerHTML = helpDefault;            
    }
}



/*********************************************************/
/* Toggle the help popup                                 */
/*********************************************************/

function toggleHelp()
{
    if (helpOnScreen == false)
        displayHelp();
    else
        hideHelp();
}



/*********************************************************/
/* Display the help popup                                */
/*********************************************************/

function displayHelp()
{
    var helpLayer = findObj("helpLayer");
    if (helpLayer.style) helpLayer = helpLayer.style;
    
    if (document.all && !window.innerHeight) { 
        helpLayer.pixelWidth = document.body.clientWidth - helpLeft;
        helpLayer.pixelHeight = helpStepHeight;
        helpLayer.pixelTop = document.body.clientHeight + document.body.scrollTop - helpStepHeight;
    } else     {
        helpLayer.width = document.width - helpLeft;
        helpLayer.height = helpStepHeight;
        helpLayer.top = window.innerHeight + window.pageYOffset - helpStepHeight;
    }
    helpLayer.visibility = 'visible';

    helpCounter = 1;
    setTimeout('growHelp()',  helpSpeed);
    
    var helpContents = findObj("helpContents");
    helpDefault = helpContents.innerHTML;
}

function growHelp()
{
    helpCounter++;

    var helpLayer = findObj("helpLayer");
    if (helpLayer.style) helpLayer = helpLayer.style;

    if (document.all && !window.innerHeight) {
        helpLayer.pixelHeight = helpCounter * helpStepHeight;
        helpLayer.pixelTop = document.body.clientHeight + document.body.scrollTop - (helpCounter * helpStepHeight);
    } else {
        helpLayer.height = helpCounter * helpStepHeight;
        helpLayer.top = window.innerHeight + window.pageYOffset - (helpCounter * helpStepHeight);
        if (helpTimerID == null) helpTimerID = setInterval('resizeHelp()',  100);
    }
    
    if (helpCounter < helpSteps)
        setTimeout('growHelp()',  helpSpeed);
    else
        helpOnScreen = true;
}



/*********************************************************/
/* Hide the help popup                                   */
/*********************************************************/

function hideHelp()
{
    helpOnScreen = false;
    helpCounter = helpSteps;        
    setTimeout('helpShrink()',  helpSpeed);
}

function helpShrink()
{
    var helpLayer = findObj("helpLayer");
    if (helpLayer.style) helpLayer = helpLayer.style;

    helpCounter--;
    
    if (helpCounter >= 0) 
    {
        if (document.all && !window.innerHeight) {
            helpLayer.pixelHeight = helpCounter * helpStepHeight;
            helpLayer.pixelTop = document.body.clientHeight + document.body.scrollTop - (helpCounter * helpStepHeight);
        } else {
            helpLayer.height = helpCounter * helpStepHeight;
            helpLayer.top = window.innerHeight + window.pageYOffset - (helpCounter * helpStepHeight);
        }
        setTimeout('helpShrink()',  helpSpeed);
    } 
    else 
    {
        if (document.all && !window.innerHeight) {
            helpLayer.pixelHeight = 1;
            helpLayer.pixelTop = document.body.clientHeight + document.body.scrollTop - 1;
        } else {
            helpLayer.height = 1;
            helpLayer.top = window.innerHeight + window.pageYOffset - 1;
        }
        helpLayer.visibility = 'hidden';
        
        var helpContents = findObj("helpContents");
        helpContents.innerHTML = helpDefault;
    }
}



/*********************************************************/
/* Resize the help popup                                 */
/*********************************************************/

function resizeHelp()
{    
    if (helpOnScreen == true) 
    {
        var helpLayer = findObj("helpLayer");
        if (helpLayer.style) helpLayer = helpLayer.style;

        if (document.all && !window.innerHeight) {
            helpLayer.pixelHeight = helpSteps * helpStepHeight;
            helpLayer.pixelWidth = document.body.clientWidth - helpLeft;
            helpLayer.pixelTop = document.body.clientHeight + document.body.scrollTop - (helpSteps * helpStepHeight);
        } else {
            helpLayer.height = helpSteps * helpStepHeight;
            helpLayer.width = document.width - helpLeft;
            helpLayer.top = window.innerHeight + window.pageYOffset - (helpSteps * helpStepHeight);
        }
    }
}



Other Ad Management Scripts:

WebMaster Resources Home

©RingsWorld.com