.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #11  
Old July 31st, 2003, 01:15 AM
Will's Avatar

Will Will is offline
Lieutenant Colonel
 
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
Will is on a distinguished road
Default 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:

<iframe src="_url_" name="_name_" width="_width_" height="_height_" frameborder="_border_" hspace="_horizontal_offset_" vspace="_vertical_offset_" align="_align_" scrolling="_scroll_" />

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 ]
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
Reply With Quote
  #12  
Old July 31st, 2003, 01:17 AM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default Re: HTML Test

Quote:
Originally posted by Taera:
whats the difference? and whats the code?
I don't know what the difference is, but it is easy enough to get the code now that Andres used it here:
code:
<iframe SRC="http://www.malfador.com/" WIDTH=400 HEIGHT=100>...but your browser doesn´t support it</iframe>

Produces:


Hmm, I wonder - does it do circular references?
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote
  #13  
Old July 31st, 2003, 01:18 AM
Ragnarok's Avatar

Ragnarok Ragnarok is offline
General
 
Join Date: Mar 2002
Location: Indiana
Posts: 3,229
Thanks: 0
Thanked 0 Times in 0 Posts
Ragnarok is on a distinguished road
Default Re: HTML Test

Quote:
Originally posted by Will:
iframe has been in IE since v.5.0, IIRC.
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.
__________________
Ragnarok - Hevordian Story Thread
-------------------
I think...therefore I am confused.
They were armed. With guns, said Omari.
Canadians. With guns. And a warship. What is this world coming to?
The dreaded derelict dwelling two ton devil bunny!
Every ship can be a minesweeper... Once
Reply With Quote
  #14  
Old July 31st, 2003, 01:37 AM
Will's Avatar

Will Will is offline
Lieutenant Colonel
 
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
Will is on a distinguished road
Default Re: HTML Test

And it looks like the page you linked to was made in '96...

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 ]
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:17 PM.


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