Einzelnen Beitrag anzeigen

Benutzerbild von NikoMitDaMacht
NikoMitDaMacht

Registriert seit: 27. Apr 2004
Ort: Freiburg
298 Beiträge
 
Delphi 6 Enterprise
 
#3

Re: JAVA: Über javascript nach"index.html" wechsel

  Alt 3. Aug 2004, 10:56
Nicht ganz aber schon mal n' anfang
Hier mal die seite:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name=vs_defaultClientScript content="JavaScript">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
  var i, method = "", sndObj = eval(_sndObj);

  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = x;
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = x;
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
  if (method= "stop")(window.location="index.html"));
}
//-->
</script>

</head>

<body onLoad="MM_controlSound('play','document.midi','badboys.mid')" MS_POSITIONING="GridLayout">
<EMBED NAME='midi' SRC='badboys.mid' LOOP=false AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>
<div align=center>
 <input id=Button1 onclick="MM_controlSound('stop','document.midi','badboys.mid')" type=button value="Klick hier um BadBoys zu stoppen" ? name="niko"></div></BODY></html>
Niko
Alles was ein Ende hat, hat auch ein Anfang
  Mit Zitat antworten Zitat