Personal Web Site of Chuck Shultz
Home     Car     House     Dogs     Misc.     Chuck's Links    

Car Shows and Cruises

Here's a partial list of the car shows and cruises I've attended. (B.O.S. = Best Of Show)

'; /* How many selections might be in the pick list? */ $mycount = 0; foreach ($arrDirectories as $value) { if ( strtolower($value) != "all" ) { $mycount++; } } /* Did I call myself? */ if ( $_SERVER['PHP_SELF'] == substr($_SERVER['HTTP_REFERER'], strlen($_SERVER['HTTP_REFERER']) - strlen($_SERVER['PHP_SELF']), strlen($_SERVER['PHP_SELF'])) ) { // Did I call me? //echo "blnCallMyself=true
\n"; $blnCallMyself = 1; } else { //echo "blnCallMyself=false
\n"; $blnCallMyself = 0; } echo "
\n"; echo " 0 ) echo " BORDER=" . $border; echo " WIDTH=" . ($pic_width + 2 * $cellpadding) . " CELLPADDING=" . $cellpadding . ">\n"; echo "\n"; echo "
\n"; echo "
\n"; if ($show_picklist && ($option_location == "above") ) { show_options($title, $mycount, $arrDirectories, $arrLabels, $show_picklist, $show_random, $default_random, $show_delay, $delay, $blnCallMyself); } /* Now, on to the JavaScript */ echo "
" . $title . "\n"; echo "
\n"; } /* Only show the pick list of slideshows if it is needed. */ if ( ($mycount > 1) && $show_picklist ) { echo 'Pick a Topic: '; echo '\n"; echo "
\n"; echo "
\n"; } /* Only show the Random option if it is needed. */ if ( $show_random == true ) { echo " Shuffle the Pictures?\n"; echo "
\n"; echo "
\n"; } /* Only display the the control to adjust the delay if needed. */ if ( $delay < 1000 ) { // Less than 1 second $delay_time = "1.0"; } elseif ( $delay < 10000 ) { // Less than 10 seconds $delay_time = number_format($delay/1000, 1); } elseif ( $delay < 100000 ) { // Less than 100 seconds $delay_time = number_format($delay/1000, 0); } else { // 100 seconds or more $delay_time = 100; } if ( $show_delay == true ) { /* The spinner is inspired by stuff found at www.webcodingtech.com. */ echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "
Delay Time between Pictures: seconds
\n"; echo "
\n"; echo "
\n"; } else { // Don't show the delay box, but still put up an invisible one echo "\n"; } } function funWritePicLine1( $directory, $blnUsePicSize, $pic_height, $pic_width, &$n, &$arrWidth, &$arrHeight, $label, &$arrLabelsForEachPicture ) { if ($directory == "" ) $directory = "."; $image_handle = opendir(getcwd() . "/" . $directory); while ( ($image_file = readdir($image_handle)) !== false ) { $arrLabelsForEachPicture[$n] = $label; if ( ($image_file != ".") && ($image_file != "..") ) { if ( (strpos($image_file, 'IMG', 0) === 0) && strpos($image_file, '.JPG', 1) ) { if ( $blnUsePicSize == "false" ) { // Get the dimensions of the image within the file. list($image_width, $image_height) = getimagesize($directory . "/" . $image_file); $ratioh = $pic_height/$image_height; $ratiow = $pic_width/$image_width; $ratio = min($ratioh, $ratiow); // New dimensions $arrWidth[$n] = intval($ratio * $image_width); $arrHeight[$n] = intval($ratio * $image_height); echo " pic" . $n . "= new Image(" . $arrWidth[$n] . ", " . $arrHeight[$n] . ");"; } else { echo " pic" . $n . "= new Image(0, 0);"; } echo ' pic' . $n . '.src="' . $directory . "/" . $image_file . '";'; echo "\n"; $n++; } } } } function put_label($location, $strLabel) { $strPosition = strtolower( substr($location, 1, 1) ); switch ($strPosition) { case "l": echo "document.write(\"
" . $strLabel . "
\\n\");\n"; break; case "c": echo "document.write(\"
" . $strLabel . "
\\n\");\n"; break; case "r": echo "document.write(\"
" . $strLabel . "
\\n\");\n"; break; } } /* End of Utility for looping through images, aka slideshow...by Chuck Shultz, Sinister Labs */ ?>

Home |  Car |  House |  Dogs |  Misc. |  Chuck's Links

© Copyright 2007-2010