Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe or DIV

Status
Not open for further replies.

mwebbo1

Technical User
Jul 11, 2002
71
US
I have a section of a page that will display a Ski Report. (top right corner) 2 Q's
1) Should I use a div, or iframe and why.
2) iframes....how do they work as opposed to standard html frames.

thanks
 
Use an iframe if you only need to support Internet Explorer and the 6+ browsers. Netscape 4 doesn't support it. I don't know why you'd use a div (if you want it dynamic, if it's static, you'll want to use div). If you want it to display 2 random questions to make things more interesting, I'd recommend linking to an external javascript file (in the head):

<script src=&quot;question.js&quot;></script>

and in the js file, make sure all the document.writes are in a div aligned up there (or a <p> would work, too).

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top