How to create IFRAME in website?

Archived in the category: cid popup
Posted by Kristen Meyers on 29 Oct 09 -

I dont know how to create ot put IFRAME in my website. Below is the coding that from my website that i want to show in a IFrame. I need it because the functions of the scrolling bar, so that my page will be fit. This coding will link my website with ebay auction. So, if the auction list is many, so viewver can scroll it down. Hopefully somebody assist me. Thanks.

<div style="width: 800px;">
<div style="width:746px; background-color: #ffffff; color: #000000; padding-left: 15px;" align="center">
<script language="JavaScript" src="http://lapi.ebay.com/ws/eBayISAPI.dll?EKServer&ai=ny%7Bze%7Cyq%21&bdrcolor=ffffff &bin=n&catid= &cid=0 &eksize=1 &encode=UTF-8 &endcolor=ff0000 &endtime=y &fbgcolor=ffffff &fntcolor=000000 &fs=0 &hdrcolor=ffffff &hdrimage=1 &hdrsrch=n &img=n &lnkcolor=0000FF &logo=3 &maxprice= &num=80 &numbid=n &paypal=n &popup=y &prvd=9 &query=Manchester United+tickets &r0=3 &sacategoryin= &shipcost=y &siteid=0 &sort=MetaEndSort &sortby= &sortdir=desc &srchdesc=n &tbgcolor=ffffff &tlecolor=000000 &tlefs=0 &tlfcolor=000000 &toolid=10004 &track=5336186154 &width=720">
</script>
</div>
</div>

Just use a div with "overflow: scroll" instead of an i frame:

<div style="
width: 746px;
height: 400px;
overflow: scroll;
margin: 0 auto;
background: #ffffff;
color: #000000;
">
<!– JAVASCRIPT GOES HERE –>
</div>

powered by Yahoo Answers

2 comments for “How to create IFRAME in website?”

1
BlueBoden

You should include the code in another page, and link to that page in the SRC attribute of the Iframe.

—–StartCode—–
<iframe
src="/iframe.html"
width="100%">
</iframe>
—–CodeEnd—–

Using an iframe for what you want is however a bad idea, having scroll boxes in a page is usually also a bad idea, since users tend to get annoyed by them.

If you still wish to have a scroll bar, then use the HTML Div tag instead, this can be done by applying a set height to the division tag, and using the overflow-y: scroll; property, if that dosn’t work, try the normal overflow property.

—–StartCode—–
<div style="height: 400px; overflow-y: scroll;">
<!– Content Goes Here –>
</div>
—–CodeEnd—–
References :
http://www.brugbart.com/References/138/ - HTML Iframe
http://www.brugbart.com/References/160/ - CSS Overflow Property

October 30th, 2009 at 4:01 am
2
Salman A

Just use a div with "overflow: scroll" instead of an i frame:

<div style="
width: 746px;
height: 400px;
overflow: scroll;
margin: 0 auto;
background: #ffffff;
color: #000000;
">
<!– JAVASCRIPT GOES HERE –>
</div>
References :

October 30th, 2009 at 4:45 am

Laeave a Reply