PHP gevorderde |
|
Hoi,
Waarom krijg ik volgende error: script werkt nochtans.
<?php
error_reporting(E_ALL);
$opmaak = array();
$zoeken = array();
$UBB_items = array(
$opmaak = array("bold", "italic", "underline", "striketrough", "overline", "underline/overline", "seperator", "align-left", "align-center", "align-right", "seperator", "color", "seperator", "quote", "edit", "code", "seperator", "url"),
$zoeken = array("google", "yahoo", "live", "amazon", "seperator", "wikipedia", "wikipedia1", "seperator", "php", "mysql")
);
?>
<script language="javascript" type="text/javascript" src="js/ubb.js"></script>
<script language="javascript" type="text/javascript">
function getObj (name)
{
if (document.getElementById) {
this.obj = document.getElementById(name);
this.style = document.getElementById(name).style;
}
else if (document.all) {
this.obj = document.all[name];
this.style = document.all[name].style;
}
else if (document.layers) {
this.obj = document.layers[name];
this.style = document.layers[name];
}
}
window.onload = init;
var eerste_formveld;
function init () {
eerste_formveld = new getObj ('onderwerp');
eerste_formveld.obj.focus ();
}
</script>
<table width="50%" align="center" border="0" cellspacing="0" cellpadding="3">>
<tr>
<td width="80%">
<p><input name="onderwerp" type="text" style="width: 100%;" value="" maxlength="255" tabindex="1" />
</p>
</td>
</tr>
</table>
<?php $opmaak = array("bold", "italic", "underline", "striketrough", "overline", "underline/overline", "seperator", "align-left", "align-center", "align-right", "seperator", "color", "seperator", "quote", "edit", "code", "seperator", "url"), $zoeken = array("google", "yahoo", "live", "amazon", "seperator", "wikipedia", "wikipedia1", "seperator", "php", "mysql") ); ?> <script language="javascript" type="text/javascript" src="js/ubb.js"></script> <script language="javascript" type="text/javascript"> function getObj (name) { if (document.getElementById) { this.obj = document.getElementById(name); this.style = document.getElementById(name).style; } else if (document.all) { this.obj = document.all[name]; this.style = document.all[name].style; } else if (document.layers) { this.obj = document.layers[name]; this.style = document.layers[name]; } } window.onload = init; var eerste_formveld; function init () { eerste_formveld = new getObj ('onderwerp'); eerste_formveld.obj.focus (); } </script> <table width="50%" align="center" border="0" cellspacing="0" cellpadding="3">> <tr> <td width="80%"> <p><input name="onderwerp" type="text" style="width: 100%;" value="" maxlength="255" tabindex="1" /> </p> </td> </tr> </table>
is een klein scriptje om automatisch de cursor in een welbepaald formulierveld te plaatsen bij window.open
script wordt hier gebruikt:
http://www.jb-web.net/scripts/php/UBB2/index.php
alvast bedankt
|