nyhedsystem

Tags:    php

hej jeg vil godt vide hva jeg ska gøre for at gøre så når man holder musen over texten så skifter den farve som Fx. www.xsound.dk
her er min kode:

<html>



<head>



<link rel="stylesheet" HREF="style.css" type="text/css">



</head>





<body oncontextmenu="return false"ondragstart="return false"onselectstart="return false" bgcolor="#E5EDF8">





<form action="index.php" method="post">

<font face="Verdana" size="1">

<b>Nyheder:</b>

</font>

<hr style="BORDER-RIGHT: #F6C73C 3px dotted; BORDER-TOP: #F6C73C 3px dotted; BORDER-LEFT: #F6C73C 3px dotted; BORDER-BOTTOM: #F6C73C 3px dotted" color="#F6C73C">



<font size="1" face="Verdana">



<select name="show" size="1">

<?

include("config.php");

$sql = "SELECT id FROM nyheder_avis";

$query = mysql_query($sql);

$num = mysql_num_rows($query);

$average = $num/10;

$pages = ceil($average);

$page_number = 0;

while ($page_number < $pages)

{

$test = $pages-1;

$page_number++;

$show_number = $page_number*10-10;

echo("<option value=\\"".$show_number."\\">".$page_number."</option>");

}



?>

</select>

<input type="submit" value="Vælg" style="border: 1px solid #000000; background-color: #FFFFFF"><br>

<?

if (!$show)

{

$show = 0;

}

include("config.php");

$sql = "SELECT id FROM nyheder_avis";

$query = mysql_query($sql);

$number = mysql_num_rows($query);

echo("Nyheder ialt <b>".$number."</b>.");

?>

</font>

<hr style="BORDER-RIGHT: #F6C73C 3px dotted; BORDER-TOP: #F6C73C 3px dotted; BORDER-LEFT: #F6C73C 3px dotted; BORDER-BOTTOM: #F6C73C 3px dotted" color="#F6C73C">



</form>

<font face="Verdana" size="1">

<?

$hent_nyhed = mysql_query("SELECT * FROM nyheder_avis ORDER BY id DESC LIMIT $show,10") or die(mysql_error());

while($vis = mysql_Fetch_array($hent_nyhed)) {

?>



</font>



<table border="0" cellspacing="1" width="459" height="64">

<tr>

<td width="65" rowspan="3"><font face="Verdana" size="1"><img border="0" src="<? print $vis[image]; ?>" width="68" height="65" style="border: 1px solid #000000; "></font></td>

<td width="382" height="21" valign="top"><b><font size="1" face="Verdana"><? echo $vis

; ?></font></b><font size="1" face="Verdana"> - [Set <b><? echo $vis[hits]; ?></b> gange]

</font> </td>

</tr>

<tr>

<td width="382" valign="middle"><font face="Verdana" size="1"><? echo substr($vis[nyhed],0,87); ?>...</font></td>

</tr>

<tr>

<td width="382" height="17"><font face="Verdana" size="1"><a href="vis_nyhed.php?id=<? echo $vis[id]; ?>">

<font color="#000000"><span style="text-decoration: none">Læs nyheden</span></font></a>  Skrevet <i>

- </i>den <? echo $vis[dato]; ?></font></td>

</tr>

</table>



<hr style="BORDER-RIGHT: #F6C73C 3px dotted; BORDER-TOP: #F6C73C 3px dotted; BORDER-LEFT: #F6C73C 3px dotted; BORDER-BOTTOM: #F6C73C 3px dotted" color="#F6C73C">



<font face="Verdana" size="1">



<?

}

?>



</font>



</body>



</html>









Indlæg senest redigeret d. 19.02.2008 02:57 af Bruger #6953
okay 1000 tak :) vil jeg prøve :D



t