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

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:10:36 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 310
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 290
  • Total: 291
  • lurkalot

Image not displayed in Scriptbox for Center Block

Started by ccwking, October 21, 2006, 12:27:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ccwking

I have added a center block in my TP 0.9.5 (with SMF 1.1. RC3) which is defined as a "scriptbox", the code reads as follows:
<center>
<embed src="http://www.<domainname>.co.uk/<image.jpg>"</embed>
</center>
<center>Some text here</center>
<center>more text here</center>
<center><span id="tzcd"></span></center>

The span id refers to a java app which displays something below the image which is constantly updating (i.e. a clock for example)
When the center block in the "HOME" section of the forum is accessed using Mozilla Firefox, both the image is displayed as well as the java script running correctly so the page is fine. However when using Internet Explorer, the image fails to display, but the javascript runs.. what have got incorrect in the above code? Each of the three lines are centered.

akulion

ur image tag is defined wrong

the code for image tags in HTML is


<img src="http://www.yoursite.com/image.gif">

ccwking

Doh.. I am a right  :idiot2:
Although its odd it still works in Mozilla...
Thanks!  :up:

akulion

yea different browsers work in different manners but its best to use confirmity with web standards

best to check down at webmonkey.com for a HTML tags guide :up:
http://webmonkey.com/webmonkey/reference/html_cheatsheet/