TinyPortal

Development => Support => Topic started by: Cornell on May 04, 2007, 09:45:53 PM

Title: error adding block
Post by: Cornell on May 04, 2007, 09:45:53 PM
Hi guys. Say i want to add the     
Displays your Browser and system info block when i add this code in a html box
Quote<script>

/*Displaying a user's browser type script
*/

if (document.all)
var version=/MSIE \d+.\d+/

if (!document.all)
document.write("You are using "+navigator.appName+" "+navigator.userAgent)
else
document.write("You are using "+navigator.appName+" "+navigator.appVersion.match(version))

</script>

That doesnt form a block on my site. That text gets displayd on the main page.
Title: Re: error adding block
Post by: terryk on May 04, 2007, 09:57:10 PM
From the opening and ending of your code, I might suggest using a script box instead of html.

terry
Title: Re: error adding block
Post by: Cornell on May 04, 2007, 10:01:54 PM
Ok let me try that. Thanks. BRB\
Title: Re: error adding block
Post by: Cornell on May 04, 2007, 10:16:07 PM
works