Archived
1
0

* added frameborder="0" and a style-definition to show an own border

x JavaScript tried to set timestamp even if there was no input field in parent window ~~> lead to error message in MSIE
This commit is contained in:
mbirth 2006-08-05 15:57:54 +00:00
parent c7c0cfa475
commit a650c8f057
2 changed files with 6 additions and 4 deletions

View File

@ -27,9 +27,9 @@ function template_shout_box() {
<td class="windowbg" style="width:87%">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="right">
<td align="right" valign="middle">
<form name="sbox" action="' . $sourceurl . '/sboxDB.php?action=write" method="post" target="sboxframe" style="margin: 0;" onsubmit="setTimeout(\'clearSbox()\', 500);">
<a href="' . $sourceurl . '/sboxDB.php?" target="sboxframe"><img src="'.$imgdir.'sbox_refresh.gif" border="0" width="16" height="17" align="middle" alt="' . $txt['sbox_Refresh'] . '" /></a>';
<a href="' . $sourceurl . '/sboxDB.php?" target="sboxframe"><img src="'.$imgdir.'sbox_refresh.gif" border="0" width="16" height="17" align="absmiddle" alt="' . $txt['sbox_Refresh'] . '" /></a>';
if ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1")) {
echo '
<input type="hidden" name="ts" value="'.forum_time(true).'">
@ -54,7 +54,7 @@ function template_shout_box() {
echo'
<tr>
<td>
<iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'"></iframe>
<iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>
</td>
</tr>
</table>

View File

@ -29,7 +29,9 @@ echo '<html xmlns="http://www.w3.org/1999/xhtml"' . ($context['right_to_left']?'
}
// get SMF-time including time zone corrections (system+user)
if (parent && parent.document.sbox.ts) {
parent.document.sbox.ts.value = ' . forum_time(true) . ';
}
// if (parent.document.sbox.ts.value != ' . forum_time(true) . ') alert(\'Time mismatch! (\'+parent.document.sbox.ts.value+\' / ' . forum_time(true) . ')\');
// ]]></script>