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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,020
  • Total Topics: 21,332
  • Online today: 926
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 197
  • Total: 197

error adding block

Started by Cornell, May 04, 2007, 09:45:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cornell

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.

terryk

From the opening and ending of your code, I might suggest using a script box instead of html.

terry

Cornell

Ok let me try that. Thanks. BRB\

Cornell


This website is proudly hosted on Crocweb Cloud Website Hosting.