.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   HTML Test (http://forum.shrapnelgames.com/showthread.php?t=10039)

Fyron July 30th, 2003 09:19 PM

HTML Test
 
2 column table with 100 width columns and 5 width border:
<table border=5><tr><td width=100>test link</td>
<td width=100>test link 2</tr></table>

[ July 30, 2003, 20:23: Message edited by: Imperator Fyron ]

Stone Mill July 30th, 2003 11:24 PM

Re: HTML Test
 
Cool. I had no idea this could be done.

<table border=2><tr><td width=200>Loved it</td>
<td width=200>Hated it</tr></table>

Taera July 30th, 2003 11:49 PM

Re: HTML Test
 
you didnt know frames work here? i'd be putting some into my sig if it'd accept the length. it doesnt, ohwell.

Fyron July 31st, 2003 12:20 AM

Re: HTML Test
 
Frames do not work here. That would require creating several new html pages in your post, which won't work. Tables and table borders work though.

Taera July 31st, 2003 12:38 AM

Re: HTML Test
 
tables! i meant tables! lol

Andrés July 31st, 2003 12:47 AM

Re: HTML Test
 
IFRAME seems to work.
<iframe SRC="http://www.malfador.com/" WIDTH=400 HEIGHT=100>...but your browser doesn´t support it</iframe>

Fyron July 31st, 2003 12:48 AM

Re: HTML Test
 
Never heard of IFRAME before. Interesting...

Ragnarok July 31st, 2003 01:05 AM

Re: HTML Test
 
Quote:

Originally posted by Imperator Fyron:
Never heard of IFRAME before. Interesting...
<font size="2" face="Verdana, Helvetica, sans-serif">They haven't been in use for very long. Although the past few months (year?) they have been growing in popularity among the webdesign world. I haven't looked into them enough to understand them better but I will be doing so sometime. From what I hear they are alot better then normal Frames.

Taera July 31st, 2003 01:09 AM

Re: HTML Test
 
whats the difference? and whats the code?

Ragnarok July 31st, 2003 01:12 AM

Re: HTML Test
 
Quote:

Originally posted by Taera:
whats the difference? and whats the code?
<font size="2" face="Verdana, Helvetica, sans-serif">That's something I can't answer right now. Like I said I have only heard about most of what I know. I haven't looked into the actual code and what main differences there are. If I get some information I'll be sure to let you know.

Edit: Here is some information that will come in handy. Just a quick search on IFRAMES came up with that. These things look pretty cool. I might actually go back to using frames if these are as good as hyped up to be. http://forum.shrapnelgames.com/images/icons/icon7.gif

[ July 31, 2003, 00:16: Message edited by: Ragnarok ]

Will July 31st, 2003 01:15 AM

Re: HTML Test
 
iframe has been in IE since v.5.0, IIRC. AFAIK, it is NOT in the W3C HTML 4.01 specification, and isn't supported in NS (it might be in v.6 or v.7, I haven't checked recently). I remember it was a bit buggy when I first heard of it, but they're showing up a lot more these days.

The main advantage of iframe tags is they are not bounded to the side of a document or another frame. With regular frames, to create the effect of a floating content frame (such as the linked frame to www.malfador.com in this thread), you would need two frameset's, and five frame's, and you wouldn't be able to scroll the entire thing. To do the same with iframe requires only one tag, and the rest of the page can scroll.

--edit: Implementation of iframe (IIRC); replace _underscored_items_ with appropriate information:

&lt;iframe src="_url_" name="_name_" width="_width_" height="_height_" frameborder="_border_" hspace="_horizontal_offset_" vspace="_vertical_offset_" align="_align_" scrolling="_scroll_" /&gt;

url = the target URL
name = an appropriate name for targeting purposes
width = width of the frame window (pixels or %)
height = height of the frame window (pixels or %)
frameborder = border width of the frame
horizontal offset = pixels margin on the left (and right?)
vertical offset = pixels margin on the top (and bottom?)
align = center, left, or right
scrolling = yes, no, or auto

only the src attribute is vitally necessary, since the frame should hold something. It's a good idea to set width and height as well. The iframe will display where ever it is positioned in the document (via tables, positioned containers, etc.)

[ July 31, 2003, 00:33: Message edited by: Will ]

Jack Simth July 31st, 2003 01:17 AM

Re: HTML Test
 
Quote:

Originally posted by Taera:
whats the difference? and whats the code?
<font size="2" face="Verdana, Helvetica, sans-serif">I don't know what the difference is, but it is easy enough to get the code now that Andres used it here:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">&lt;iframe SRC=&quot;http://www.malfador.com/&quot; WIDTH=400 HEIGHT=100&gt;...but your browser doesn´t support it&lt;/iframe&gt;</pre><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">Produces:
<iframe SRC="http://www.malfador.com/" WIDTH=400 HEIGHT=100>...but your browser doesn´t support it</iframe>

Hmm, I wonder - does it do circular references?

Ragnarok July 31st, 2003 01:18 AM

Re: HTML Test
 
Quote:

Originally posted by Will:
iframe has been in IE since v.5.0, IIRC.
<font size="2" face="Verdana, Helvetica, sans-serif">According to the page I just linked to it has been around since IE 3.0. But that was only browser to have it and it was a bit bugged at the time.

Will July 31st, 2003 01:37 AM

Re: HTML Test
 
And it looks like the page you linked to was made in '96... http://forum.shrapnelgames.com/images/icons/icon7.gif

I just remember that IE v.5 was the first one where iframes actually behaved they way they should have consistently. I had problems with IE 3 and IE 4 (and netscape just ignored them entirely).

--edit: A much more concise/detailed look at the attributes of iframe.

[ July 31, 2003, 00:43: Message edited by: Will ]


All times are GMT -4. The time now is 12:03 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.