TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 01:47:44 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 205
  • Total: 205

Javascript problem under Mozilla

Started by sp0di, November 01, 2005, 04:03:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sp0di

Okay - not really sure if this is a "bug" or not, but here it goes..

Site - www.globalgamer.net

What it is the "Server Status" block, it shows proper under IE, however Mozilla it's squished. 

The code for the block is as follow's
<TABLE align="center" cellpadding="2">
<TR><TD valign="top">

<center><SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=111675">
</SCRIPT></center>
</TD></TR></TABLE>


Kinda weird, thinking is a Mozilla based issue, but it shows up fine from a static web page, not within the TP.

Any thoughts?

bloc

try a width="100%" in the table there.

sp0di

nope - made it a little worst...

I wounder if I need to specify a length ?

bloc

Might be. I suspect its something in the javascript routine that does this.

bloodlust

#4
hmmm.....try putting your serverstaus code in a seperate static html file.



<html>
<body>
<TABLE align="center" cellpadding="2">
<TR><TD valign="top">

<center><SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=111675">
</SCRIPT></center>
</TD></TR></TABLE>
</body>
</html>

Save as serverstatus.html or whatever, and upload it to your webserver.


And use an iframe to display the content in an html block. 


<iframe src="serverstatus.html" name="serverstatus" width="100%" height="200" frameborder="0">Your browser doesn't support frames.</iframe>

Put this in your HTML block.