PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Germán Sosa   Image Pop Up Class   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example of the class working
Class: Image Pop Up Class
Create thumbnails and link pictures in new windows
Author: By
Last change:
Date: 21 years ago
Size: 2,911 bytes
 

Contents

Class file image Download
<html>

<?
   
/*
     * This is the test page of the Image Pop Up Class.
     * Change the filename in the file var to modify the image used. Remember that for a quick usage,
     * it's better to define the filename in the class initialization as a string value and not use a variable
     * definition before initializing the class.
     */

   
require ('imgpopup.class.php');
   
$file = 'misola.jpg';
?>

<head>
<title>.:: Test Page for Image Pop Up Window. Germán Ezequiel Sosa ::.</title>
<meta name="generator" content="Image Pop Up Class">
<meta name="author" content="Germán E. Sosa">
<script language="javascript" src="imgpopup.js"></script>
<style type="text/css">
body{
    font-family: arial, verdana, tahoma;
    font-size: 11;
    color: #ffffff;
    padding: 30;
    font-weight: bold;
    line-weight: 140%;
    text-align: center;
}
.title{
    font-family: verdana, arial, tahoma;
    font-size: 18;
    color: #0099ff;
    padding: 5 0;
}
.author{
    font-family: verdana, arial, tahoma;
    font-size: 16;
    color: #0099ff;
    padding: 5 0;
    margin: 0 0 20 0;
}
</style>
</head>

<body bgcolor="#000000" leftmargin="0" topmargin="0">
<div class="title">Test page for the Image Pop Up Class</div><div class="author">Author: Germán E. Sosa</div>
This is a link created using the css protection method and the null image.<br>If GD support is available, the thumbnail is a temporary image sent to browser.<br>Thumbnail's largest side is 50px long:<br><br>

<? $img = new ImgPopUp ($file, 50) ?>
<br><br>Created by: &lt;? $img = new ImgPopUp ($file, 50) ?&gt;

<br><br><br><br>
This is a link created using the css protection method and the null image.<br>If GD support is available, the thumbnail is a temporary image sent to browser.<br>Thumbnail's largest side is 60px long:<br><br>

<? $img = new ImgPopUp ($file, 60) ?>
<br><br>Created by: &lt;? $img = new ImgPopUp ($file, 60) ?&gt;

<br><br><br><br>
This is a link created using the css protection method and the null image.<br>No GD support is used to create thumbnail, even if GD Library is available.<br>Thumbnail's largest side is 70px long:<br><br>

<? $img = new ImgPopUp ($file, 70, 0) ?>
<br><br>Created by: &lt;? $img = new ImgPopUp ($file, 70, 0) ?&gt;

<br><br><br><br>
This is a link created using the the classic img tag.<br>No GD support is used to create thumbnail, even if GD Library is available.<br>Thumbnail's largest side is 80px long:<br><br>

<? $img = new ImgPopUp ($file, 80, 0, 0) ?>
<br><br>Created by: &lt;? $img = new ImgPopUp ($file, 80, 0, 0) ?&gt;

<br><br><br><br>
This is a link created using the the classic img tag.<br>If GD support is available, the thumbnail is a temporary image sent to browser.<br>Thumbnail's largest side is 90px long:<br><br>

<? $img = new ImgPopUp ($file, 90, 1, 0) ?>
<br><br>Created by: &lt;? $img = new ImgPopUp ($file, 90, 1, 0) ?&gt;

<br>
</body>
</html>