hjælp til php og javascript
Hej Eksperter.kan man ikke gøre det sådan her??
<body>
<script type="text/javascript">
/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var defaultMenuWidth="150px" //set default menu width.
var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
<?php
require "db.php";
$query_dag = mysql_query ("SELECT * FROM priv_kal WHERE vigtig='1' ORDER BY dag ASC");
while ($row = mysql_fetch_array($query_dag)) {
$event_id = $row['id'];
linkset['$event_id']='<a href="$event_id">Rediger event</a>'
linkset['$event_id']+='<a href="#">Slet event</a>'
}
?>
////No need to edit beyond here
var ie5=document.all && !window.opera
var ns6=document.getElementById
if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')
function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}
..........................
</body>