Hier jetzt der ganze (neue) Quelltext:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Strategie-Tool</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<!--
<link type="text/css" rel="StyleSheet" href="css/winclassic.css" />
-->
<script type="text/javascript">
//<![CDATA[
function getQueryString( sProp ) {
var re = new RegExp( sProp + "=([^\\&]*)", "i" );
var a = re.exec( document.location.search );
if ( a == null )
return "";
return a[1];
};
function changeCssFile( sCssFile ) {
var loc = String(document.location);
var search = document.location.search;
if ( search != "" )
loc = loc.replace( search, "" );
loc = loc + "?css=" + sCssFile;
document.location.replace( loc );
}
var cssFile = getQueryString( "css" );
if ( cssFile == "" )
cssFile = "css/bluecurve/bluecurve.css";
document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"" + cssFile + "\" />" );
//]]>
</script>
<!--
<link type="text/css" rel="StyleSheet" href="css/winclassic.css" />
-->
<script type="text/javascript" src="js/range.js"></script>
<script type="text/javascript" src="js/timer.js"></script>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script type="text/javascript" src="js/slider.js"></script>
</head>
<body>
<div class="slider" id="slider-1" tabIndex="1">
<input class="slider-input" id="slider-input-1"/>
</div>
<input name="slider" id="h-value" onchange="s.setValue(parseInt(this.value))"/>
<script type="text/javascript">
var s = new Slider(document.getElementById("slider-1"), document.getElementById("slider-input-1"));
s.onchange = function () {
document.getElementById("h-value").value = s.getValue();
};
s.setValue(85);
window.onresize = function () {
s.recalculate();
};
</script>
<input class="inputdef" type="button" value="Bitte hier drücken"
onclick="javascript: if (document.getElementById('slider-input-1') > '85'){
alert('größer als 85');
}
else
{
alert('kleiner oder gleich wie 85');
}
">
Wenn man auf den Button klickt, soll der erste Satz erscheinen, wenn die festgelegte Zahl größer als 85 ist. Sonst der zweite Satz.
So sieht es aus: klick