function change() { var source; var dest; source = document.getElementById("picInput"); dest = document.getElementById("preview"); dest.src = source.src; dest.style.width = 80; dest.style.heigh = 60; }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>.:Adien Live Rollespil : Administrerer:. - Vonsild</title> <meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1" /> <!-- **** layout stylesheet **** --> <link rel="stylesheet" type="text/css" href="style/style.css" /> <!-- **** colour scheme stylesheet **** --> <link rel="stylesheet" type="text/css" href="style/colour.css" /> <script> function change(){ var source; var dest; source = document.getElementById("picInput"); dest = document.getElementById("preview"); dest.src=source.value; dest.style.width = 80; dest.style.heigh = 60; } </script> </head> <body> <div id="main"> <div id="links"> <!-- **** INSERT LINKS HERE **** --> <a href="galleri/">galleri</a> | <a href="snakke/index.php">forum</a> | <a href="contact.php">kontakt os</a> | <a href="manage.php">Manage</a> | <a href="logout.php">Log Ud</a> </div> <div id="logo"><h1>Adien Live Rollspil</h1></div> <div id="content"> <div id="menu"> <ul> <li><a href="index.php">forside</a></li> <li><a href="gods.php">guder</a></li> <li><a href="history.php">historien</a></li> <li><a href="calender.php">kalender</a></li> <li><a href="rules.php">regler</a></li> </ul> </div> <div id="column1"> <div class="sidebaritem"> <div class="sbihead"> <h1>senest nyt</h1> </div> <div class="sbicontent"> <!-- **** INSERT NEWS ITEMS HERE **** --> <h2>2008-06-03</h2> <p>Opdatering af hjemmesiden</p> <p><a href="news.php?id=11">Læs mere ...</a></p> <br /> </div> </div> <div class="sidebaritem"> <div class="sbihead"> <h1>andre links</h1> </div> <div class="sbilinks"> <!-- **** INSERT ADDITIONAL LINKS HERE **** --> <ul> <li><a href="http://www.goodgames.dk">Good Games</a></li> </ul> </div> </div> <div class="sidebaritem"> <div class="sbihead"> <h1>information</h1> </div> <div class="sbicontent"> <!-- **** INSERT OTHER INFORMATION HERE **** --> <p> Er De ny i Adien? Her på siden kan De finde det, De skal vide for at kunne få en rigtig god start på rollespillet i Vonsild. </p> </div> </div> </div> <div id="column2"> <h1>administrer website</h1> <!-- **** INSERT PAGE CONTENT HERE **** --> <div class="row"> <span class="formlabel">Nyheder</span> <span class="forminput"><a href="manage.php?page=news&sub=add">Tilføj</a> <a href="manage.php?page=news">Vis</a></span> </div> <div class="row"> <span class="formlabel">Profil</span> <span class="forminput"><a href="manage.php?page=users&sub=profileForm">Rediger</a></span> </div> <div class="row"> <span class="formlabel">Spørgsmål</span> <span class="forminput"><a href="manage.php?page=contact">Vis</a></span> </div> <br /> <h1>Administrator</h1> <div class="row"> <span class="formlabel">Brugere</span> <span class="forminput"><a href="manage.php?page=users&sub=add">Tilføj</a> <a href="manage.php?page=users">Vis</a></span> </div><br /><h1>brugere</h1> <form action="manage.php?page=users&sub=profileUpdate" method="post" enctype="multipart/form-data"> <div class="row"> <span class="formlabel"><img id="preview" src="" /><br /> </span> <span class="forminput"><input id="picInput" name="picInput" onchange="change();" type="file" /></span> </div> <div class="row"> <span class="formlabel">Navn</span> <span class="forminput"><input name="name" type="text" value="Martin Askjær Kristensen" /></span> </div> <div class="row"> <span class="formlabel">Adgangskode</span> <span class="forminput"><input name="password" type="password" /></span> </div> <div class="row"> <span class="formlabel"><input class="submit" name="addUser" type="submit" value="Godkend" /></span> <span class="forminput"></span> </div> </form> </div> </div> <div id="footer"> copyright © 2008 Adien Live Rollespil | <a href="#">webmaster@adien.dk</a> | <a href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.dcarter.co.uk">design by dcarter</a> </div> </div> </body> </html>