Jump to content

Help with java script quick one


Emperio

Recommended Posts

[code=php:0]<?php
include 'connect.php';
session_start();
?>
<script src="menuscript.js" language="javascript" type="text/javascript"></script>
<link rel="stylesheet" href="style.css" type="text/css">
<?php
if (isset($_SESSION['player'])) 
  {
    $player=$_SESSION['player'];
    $userstats="SELECT * from km_users where playername='$player'";
    $userstats2=mysql_query($userstats) or die("Could not get user stats");
    $userstats3=mysql_fetch_array($userstats2);
      print "<body bgcolor=333333>";
      print "<table class='maintable'>";
      print "<tr class='headline'><td>";   
      print "<center><img src='images/shoplogo.gif'></center>";
      print "</td></tr></table><br><br>";
      print "<script src='menuscript.js' language='javascript' type='text/javascript'></script>";
      print "<table class='maintable'>";
      print "<tr><td valign='top'>";
      print "<a href='startpagina.php' onmouseover='setOverImg('1','');overSub=true;showSubMenu('submenu1','button1');' onmouseout='setOutImg('1','');overSub=false;setTimeout('hideSubMenu(\'submenu1\')',delay);' target=''><img src='buttons/button1up.png' border='0' id='button1' vspace='5' hspace='1'></a><br>";
      print "<a href='Link 2' onmouseover='setOverImg('2','');overSub=true;showSubMenu('submenu2','button2');' onmouseout='setOutImg('2','');overSub=false;setTimeout('hideSubMenu(\'submenu2\')',delay);' target=''><img src='buttons/button2up.png' border='0' id='button2' vspace='5' hspace='1'></a><br>";
      print "<a href='wachtwoordveranderen.php' onmouseover='setOverImg('3','');overSub=true;showSubMenu('submenu3','button3');' onmouseout='setOutImg('3','');overSub=false;setTimeout('hideSubMenu(\'submenu3\')',delay);' target=''><img src='buttons/button3up.png' border='0' id='button3' vspace='5' hspace='1'></a><br>";
      print "<a href='Link 3' onmouseover='setOverImg('4','');overSub=true;showSubMenu('submenu4','button4');' onmouseout='setOutImg('4','');overSub=false;setTimeout('hideSubMenu(\'submenu4\')',delay);' target=''><img src='buttons/button4up.png' border='0' id='button4' vspace='5' hspace='1'></a><br>";
      print "<a href='contact.php' onmouseover='setOverImg('5','');overSub=true;showSubMenu('submenu5','button5');' onmouseout='setOutImg('5','');overSub=false;setTimeout('hideSubMenu(\'submenu5\')',delay);' target=''><img src='buttons/button5up.png' border='0' id='button5' vspace='5' hspace='1'></a><br>";
      print "<a href='hulp.php' onmouseover='setOverImg('6','');overSub=true;showSubMenu('submenu6','button6');' onmouseout='setOutImg('6','');overSub=false;setTimeout('hideSubMenu(\'submenu6\')',delay);' target=''><img src='buttons/button6up.png' border='0' id='button6' vspace='5' hspace='1'></a><br>";
      print "<a href='loguit.php' onmouseover='setOverImg('7','');overSub=true;showSubMenu('submenu7','button7');' onmouseout='setOutImg('7','');overSub=false;setTimeout('hideSubMenu(\'submenu7\')',delay);' target=''><img src='buttons/button7up.png' border='0' id='button7' vspace='5' hspace='1'></a><br>";
      print "</table>";
}
else
{
print "<body bgcolor=333333 TEXT=#FFFFCC>";
print "<center><img src='images/logo.gif'> </center><br>";
print "<center> TEXT.<br>";
print "TEXT<br>";
}

?>

 

Java is not working the buttons dont work how do are used to work this page dont uses the javascript that i made can someone tell me why?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.