PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Peter Drinnan  >  PayPal Tabs  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Creates pay pal tabs without requiring rollover images
Class: PayPal Tabs
Generate navigation tabs interface like in Paypal
Author: By
Last change: comments
Date: 11 years ago
Size: 756 bytes


Class file image Download

// add the class

// the item var will determine which tab is raised

if($HTTP_GET_VARS[item] == "") $item = 'Yahoo';
$item = $HTTP_GET_VARS[item];

// Create an array of tab items with urls, then declare the tabs
// class and add the array with an image url for the tab images.
// Keep in mind the items are case sensitive.

$tabs_items = array( 'Google'=>$PHP_SELF.'?item=Google',


// specify the location of the images to be used

$tab_images_url = "/paypaltabs";

$tabs = new PayPalTabs($tabs_items,$tab_images_url);