All pastes #487708 Raw Edit

Mine

public php v1 · immutable
·published 2007-05-14 16:33 UTC
rendered paste body
tää on index.php<? session_start();$_SESSION['thisOpacity'] = $_POST['thisOpacity'];if (!empty($_SESSION['thisOpacity']))	{	$opacc = $_SESSION['thisOpacity']/100;	$mozopac = str_replace(",", ".", $opacc);	$explopac = $_SESSION['thisOpacity'];	}else	{	$mozopac = "0.5";	$explopac = "50";	}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>        <title>Webbdesign Portfolio av Teemu Paananen matr.nr. 30659</title>        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />        		<style type="text/css">                @import "data/style.css";			#blacklayer 			{			background-color:black;			filter:alpha(opacity="<?php print($explopac)?>");			-moz-opacity:<?php print($mozopac)?>;			opacity:<?php print($mozopac)?>;			width:100%;			height:100%;			position:absolute;			top:0px;			left:0px;			z-index:99;			}				</style></head><body bgcolor="<? echo $_COOKIE["bakgrund"]; ?>"><div id="blacklayer"><div id="main">		<div id="menu">		<?php			include("data/menu.php");		?>	</div>	<div id="content">	<br><br><br>	<div id="window">		<?php			if(!empty($_GET['page']))				include("data/" . $_GET['page'] . ".php");			else 				include("data/startpage.php");		?>	</div>	</div>	</div></div></body></html>tää on darkness.php<? session_start(); ?><html><head><title></title><script language="JavaScript">/* ei käytössäfunction setOpacity(theOpacity) {	var when = new Date();	when.setTime(when.getTime() + 24 * 60 * 60 * 1000);	when.setFullYear(when.getFullYear() + 1);	opac=theOpacity;	document.cookie=escape("transparenten")+"="+escape(opac)+";expires="+when.toGMTString();	blacklayer.style.opacity = opac/100;	blacklayer.style.filter = 'alpha(opacity=' + opac + ')';}*/</script></head><body><h1>Darkness</h1><form name="darknessform"> //ei käytössäGive the value of opacity (0-100): <input type="text" name="theOpacity" value="50"><input type="button" value="Change!" onclick="setOpacity(theOpacity)"></form><br><br><br><br><br><form action="/teemu/TheRealThing/new/index.php" method="post">thisOpacity: <input type="text" name="thisOpacity" /><input type="submit" /></form></body></html>