Hi,
I have got my liitle selection program running nicely for my Mozilla browser but it does work at all in IE.
Can anyone tell me what I need to do to make it work ?
There are three problems:
1) In IE the button titles do not word wrap into two lines so the buttons don't look nice.
2) maybe because of (1) the buttons are not nicely spaced like they are in Mozilla but are all joined together.
3) The big problem is that in IE when I click a button, the mainframe empies but the program (eh stuff1.php) does not seem run at all.
In Mozilla everything is just how it should be! Any ideas ?
Coding is below:
The index.php sets up two windows, topframe and mainframe.
The run_top.php displays the buttons
and run_main.php selects which stuff.php to run
pretty simple - but it doesn't work in IE !
One final point - which other browsers should I test against ?
Thanks
David
THIS IS THE INDEX.PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<title>Untitled</title>
<frameset border="no" rows="160,*">
<frame src="run_top.php" name="topframe" NORESIZE scrolling="NO">
<frame src="content.php" name="mainframe" NORESIZE scrolling="AUTO">
</frameset>
</html>
THIS IS THE RUN_TOP.PHP
<?php
/
run_top.php
Called by : index.php
and by :
Calls for : Displays buttons fro selecting progams.
this runs in topframe, but directs the selection to run in mainframe.
/
?>
<html>
<head>
<title>Yod</title>
</head>
<body >
<style>
<!--
.header{text-color:#ffffff; font-weight:bold; font-size:36; height: 50}
.btn{background-color:yellow; font-size:12; color:#0000ff; font-weight:bold;
font-family:Tahoma; width: 100; height: 50}
//-->
</style>
<div style='position:absolute; left:300px; top:10px'>
<table border="0" cellspacing="0" cellpadding="0">
<tr><td class = "header" > <center>
Blah Blah site.<br><font color="#ff9933">www.Blah.com</font>
</center></td></tr>
</table>
</div>
<div style='position:absolute; left:200px; top:90px'>
<form action = "run_main.php" target = "mainframe" style= "btn_text" method="POST">
<input type = 'hidden' name='run1' value="on">
<button type="submit" value = "rooms" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >Some stuff here 1</button>
<button type="submit" value = "jobs" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >Some stuff here 2</button>
<button type="submit" value = "cars" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >Some stuff here 3</button>
<button type="submit" value = "prop" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >Some stuff here 4</button>
<button type="submit" value = "stuff" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >Some stuff here 5</button>
</form>
</div>
</body>
</html>
THIS IS THE RUN_MAIN.PHP
<?php
/
run_main.php
Called by :run_top.php
Calls for : stuff according to which button was pressed
*/
switch ($_POST["btn"]){
case "stuff1" :require_once("stuff1.php") ; break;
case "stuff2" :require_once("stuff2.php") ; break;
case "stuff3" :require_once("stuff3.php") ; break;
case "stuff4" :require_once("stuff4.php") ; break;
case "stuff5" :require_once("stuff5.php") ; break;
}
?>