Åsmund Skrevet 25. desember 2004 Del Skrevet 25. desember 2004 Hay. http://aasmund.mscon.net/ntkd/ Som dere sikkert skjønner så er hovedproblemet størrelsen på nyhetsramma. Laget php koden er i er på 300px mens nyhetsramma er på 296. Laget har den grå bakgrunnsfargen. Når jeg endrer ramma så endrer jeg og laget, men .. hvorfor? Nå har jeg endra i hytt og pine og får ikke nyhetsramma til å stå stille! Jeg skulle også endra skriftstørrelsen, søkte google og fant ut at det var å endre koden, men teksten reagerer ikke. Nå vet ikke jeg om jeg har gjort riktig, jeg la til template koden i begge nyhetslaga. Er det en stor feil jeg har gjort? her er index koden: Om noen gidder å se på det takker og bukker jeg:) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Notodden Taekwondo</title> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> <style type="text/css"> <!-- .style1 {font-family: Verdana, Arial, Helvetica, sans-serif} .style2 {font-family: Georgia, "Times New Roman", Times, serif} .style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; } --> </style> </head> <body> <div id="Layer1" style="position:absolute; width:726px; height:768; z-index:1"> <div id="Layer2" style="position:absolute; width:726px; height:100; z-index:1; top: 0px;"><img src="banner.gif" width="726" height="100"></div> <div id="Layer3" style="position:absolute; width:122px; height:665px; z-index:2; top: 102px; left: 1px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;"> <p> </p> <p align="center" class="style2"> </p> <p align="center" class="style2">forsiden</p> <p align="center" class="style2">forum</p> <p align="center" class="style2">arkiv</p> <p align="center" class="style2">linker</p> <p align="center" class="style2">om NTKD</p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p align="center" class="style2"> </p> <p> </p> </div> <div id="Layer4" style="position:absolute; width:603px; height:668px; z-index:3; left: 123px; top: 101px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;"> <div id="Layer5" class="style1" style="position:absolute; width:300; height:627px; z-index:1; top: 38px; left: 1px; background-color: #EAEAEA; layer-background-color: #EAEAEA; border: 1px none #000000;"><?PHP $template = "default"; $number = "3"; $category = "1"; include("cutenews/show_news.php"); ?> </div> <div id="Layer6" style="position:absolute; width:300px; height:37px; z-index:2; left: 1px; top: 1px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;"> <div align="center">NTKD nyheter </div> </div> <div id="Layer7" style="position:absolute; width:300; height:628px; z-index:3; left: 303px; top: 38px; background-color: #EAEAEA; layer-background-color: #EAEAEA; border: 1px none #000000;"><?PHP $template = "default"; $number = "3"; $category = "2"; include("cutenews/show_news.php"); ?> </div> <div id="Layer8" style="position:absolute; width:300px; height:37px; z-index:4; left: 303px; top: 1px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;"> <div align="center">Annet</div> </div> </div> </div> </body> </html> template: <?PHP ///////////////////// TEMPLATE Default ///////////////////// $template_active = <<<HTML <table border="0" width="296" cellspacing="1" cellpadding="3"> <tr> <td width="100%" style="text-align:justify"> <b>{title}</b> </td> </tr> <tr> <td width="296" style="text-align:justify"> <font style="font-family:georgia, verdana, arial, sans-serif; color:#666; font-size:16;">{short-story}</font></td> </tr> <tr> <td width="100%"> <table border="0" style="border-top: 1px dotted #f2f3f3" width="296" cellspacing="0"> <tr> <td width="220"><i><font style="font-family:georgia, verdana, arial, sans-serif; font-size:10; color:black;">{date} by {author}</font></i><br> </td><td width="168" ><div align=right> <font style="font-family:georgia, verdana, arial, sans-serif; font-size:10;">[full-link]Read More ...[/full-link] [com-link]comments ({comments-num})[/com-link]</font><br> </div> </td> </tr> </table> </td> </tr> </table> <br /> HTML; $template_full = <<<HTML <table border="0" width="296" cellspacing="1" cellpadding="3"> <tr> <td width="100%" style="text-align:justify"> <b>{title}</b> </td> </tr> <tr> <td width="100%" style="text-align:justify"> <font style="font-family:georgia, verdana, arial, sans-serif; color:#666; font-size:10;">{full-story}</font></td> </tr> <tr> <td width="100%"> <table border="0" style="border-top: 1px dotted #f2f3f3" width="296" cellspacing="0"> <tr> <td width="220"><i><font style="font-family:georgia, verdana, arial, sans-serif; font-size:11; color:black;">{date} by {author}</font></i><br> </td><td width="168"><div align=right> <font style="font-family:georgia, verdana, arial, sans-serif; font-size:11;">{comments-num} comments</font><br> </div> </td> </tr> </table> </td> </tr> </table> <br /> HTML; $template_comment = <<<HTML <table border="0" width="296" height="40" cellspacing="" cellpadding="3"> <tr> <td height="1" style="border-bottom-style: solid;border-bottom-width: 1px; border-bottom-color: black;">by <b>{author}</b> @ {date}</td> </tr> <tr> <td height="40" valign="top" bgcolor="#F9F9F9" >{comment}</td> </tr> </table> <br> HTML; $template_form = <<<HTML <table border="0" width="296" cellspacing="0" cellpadding="0"> <tr> <td width="49" height="1"> name: </td> <td width="289" height="1"><input type="text" name="name" tabindex="1"></td> </tr> <tr> <td width="49" height="1"> mail: </td> <td width="289" height="1"> <input type="text" name="mail" tabindex="2"> (optional)</td> </tr> </center> <tr> <td width="51" height="1"> <p align="left">smile:</p> </td> <center> <td width="291" height="1" > {smilies} </td> </tr> <tr> <td width="296" height="1" colspan="2"> <textarea cols="40" rows="6" name="comments" tabindex="3"></textarea><br /> <input type="submit" name="submit" value="Add My Comment" accesskey="s"> <input type=checkbox name=CNremember id=CNremember value=1> <label for=CNremember>Remember Me</label> | <a href="javascript:CNforget();">Forget Me</a> </td> </tr> </table> HTML; $template_prev_next = <<<HTML <p align="center">[prev-link]<< Previous[/prev-link] {pages} [next-link]Next >>[/next-link]</p> HTML; $template_comments_prev_next = <<<HTML <p align="center">[prev-link]<< Older[/prev-link] ({pages}) [next-link]Newest >>[/next-link]</p> HTML; ?> Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå