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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does anyone know how to make scrollable windows? 1

Status
Not open for further replies.
i aint too good at this but - couldnt you just right click on the page and click on "view source" in there u will see the code, and its just a question of gettin the scrollable window part of the code. I would also like to know how to do scrollable windows

thanks


Mark
 
OK - so this particular page in question uses frames to accomplish what you're wanting...for IE, it uses the <iframe> tag and for Netscape it uses a function called &quot;MM_openBrWindow&quot; as evidenced by this snippet of code (the function itself is the 7th one from the top in the javascript in the head section):

<td width=&quot;190&quot; class=&quot;sidebar&quot; valign=&quot;top&quot;>
<p class=&quot;mediumheading&quot;>explore...</p>
<iframe src=&quot;portfolio/menu.htm&quot; name=&quot;NewsFrame&quot; width=&quot;98%&quot; height=&quot;120&quot; align=&quot;default&quot; frameborder=&quot;0&quot;>
<p><a href=&quot;#&quot; onClick=&quot;MM_openBrWindow('portfolio/nsframeset.htm','nnportfolio','scrollbars=yes,resizable=yes,width=600,height=360')&quot; onFocus=&quot;if(this.blur)this.blur()&quot;><img src=&quot;images/misc/netscapeportbut.gif&quot; width=&quot;120&quot; height=&quot;36&quot; border=&quot;0&quot; alt=&quot;Netscape portfolio version&quot;></a></p>
{LARGE EDIT FOR SPACE HERE}
</td>


You'll also note the coder has opted for the 'scrollbars=yes' on the Netscape version which tells the browser to use the scrollbars as appropriate. Explorer interprets the iframe tag and automatically adds the scrollbars when the content overflows the frame.

Additionally, you can use layers to accomplish the same effect, to a degree. In DW, select the layer and on the overflow drop menu, select &quot;scroll&quot;.

Hope this helps!;-)
Bozric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top