tag href to an internal slideshow HTML file
// 2) Twirling Javascript onmouseover scenario ... use eval([PHPequivalentOfJavascript]) to derive next image name (until, and excluding when, we get back to first image name)
// 3) Single image scenario ... and ...
// 4) Image place specified that has
...
encasing and any relevant displayable text (comment) wording
// WordPress TwentyTen theme class name (of interest, regarding where to extract image data)
$wp_twentyten_classname_of_interest="wp-caption";
// WordPress TwentyTen theme element type (of interest, regarding where to extract image data)
$wp_twentyten_elementtype_of_interest="div";
$prea="";
$posta="";
$tf="270";
$andthencontent="";
$wordingurl="http://www.rjmprogramming.com.au/ITblog/developing-black-and-white-photos-primer-tutorial/"; // default 4) scenario
if (isset($_GET['wordingurl'])) $wordingurl=urldecode($_GET['wordingurl']);
if (isset($_POST['wordingurl'])) $wordingurl=urldecode($_POST['wordingurl']);
if (strlen($wordingurl) > 0 && strpos($wordingurl, "rjmprogramming.com.au/") === false) {
$wordingurl = "http://www.rjmprogramming.com.au/ITblog/" . $wordingurl;
}
$wordcontent="";
if ($wordingurl != "") $wordcontent=file_get_contents($wordingurl);
$place="/Photography"; // default 4) image place defined
if (isset($_GET['place'])) $place=urldecode($_GET['place']);
if (isset($_POST['place'])) $place=urldecode($_POST['place']);
if (strlen($place) > 0 && strpos("*" . $place . " ", "*/") === false) $place = "/" . $place;
if ($place != "") $prea="";
if ($place != "") $posta="";
$incrx="2750";
if (isset($_GET['slideperiod'])) $incrx=$_GET['slideperiod'];
if (isset($_POST['slideperiod'])) $incrx=$_POST['slideperiod'];
$faderx="150";
if (isset($_GET['fadercycle'])) $faderx=$_GET['fadercycle'];
if (isset($_POST['fadercycle'])) $faderx=$_POST['fadercycle'];
$istyle=" style='opacity:1.0;' ";
$cwidth="";
$cheight="";
if (isset($_GET['width'])) $cwidth=$_GET['width']; // . "px";
if (isset($_POST['width'])) $cwidth=$_POST['width']; // . "px";
if (isset($_GET['height'])) $cheight=$_GET['height']; // . "px";
if (isset($_POST['width'])) $cheight=$_POST['height']; // . "px";
if (isset($_GET['width'])) $istyle=str_replace("width:px;", "", str_replace(";'", ";width:" . $_GET['width'] . "px;'", $istyle));
if (isset($_POST['width'])) $istyle=str_replace("width:px;", "", str_replace(";'", ";width:" . $_POST['width'] . "px;'", $istyle));
if (isset($_GET['height'])) $istyle=str_replace("height:px;", "", str_replace(";'", ";height:" . $_GET['height'] . "px;'", $istyle));
if (isset($_POST['width'])) $istyle=str_replace("height:px;", "", str_replace(";'", ";height:" . $_POST['height'] . "px;'", $istyle));
function wording($inimg) {
global $wordingurl, $wordcontent, $place, $andthencontent, $prea, $posta;
// The hard-coded (first) case of http://www.rjmprogramming.com.au/ITblog/developing-black-and-white-photos-primer-tutorial/ and photos of http://www.rjmprogramming.com.au/Photography/
//if (strlen($place) > 0 && strpos(str_replace("\n","",str_replace(" ","",$wordcontent)), "
Slide Time in milliseconds Slide Time in milliseconds (short) 1000 to 60000 (long) Fader Cycle Period in milliseconds Fader Cycle Period in milliseconds (lots) 50 to 3600000 (little)
";
if (preg_match('/(?i)msie /',$_SERVER['HTTP_USER_AGENT'])) {
$tf="175";
$meterstr = "
Slide Time in milliseconds (short) 1000 to 60000 (long)
Fader Cycle Period (ms) (lots) 50 to 3600000 (little)