how to control the looking of the browser?

hnalbert 2000-09-07 02:41:00
In one application written by C++,I use a button which by clicked will
pop-up a browse window,and it don't have status bar,tool bar,menu,and
its size can be set(for example,width=200,height=200),how to do it?
Thanks!
...全文
118 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hhzh426 2000-09-12
  • 打赏
  • 举报
回复
between <head> and </head> add follow lines:(it affects only in IE)
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub window_onload
window.resizeTo 400,300
'window.resizeTo x,y will change window's size where x is window's width
(pixel), y is window's height(pixel).You can also use window.screen.height and
window.screen. width to determin your window's layout. for example: window.resizeto window.screen.width/2,window.screen.height/2 to get a window
which size is 1/4 screen
window.moveTo x,y will bring your window to anywhere you want.
End Sub
-->
</SCRIPT>
I have tested this, it runs correctly!
You must try it in your machine again to test it's behavior!
If you close your window in Html, you will always get a alert!
hnalbert 2000-09-11
  • 打赏
  • 举报
回复
To hhzh426:
I know your way, but there is a problem: use window.open you can get two browser
windows,one is the window you wanted, but the other one you don't need.I write a
sentence "parent.close()" before "window.open(url,name,para) " But you always get a messagebox asking"Do you want to close this window?" So bad!


hhzh426 2000-09-10
  • 打赏
  • 举报
回复
in javascript:
window.open(url,name,para) will open a new window
para controls the window's outlay
It will be any of these: menubar=yes/no scrollbars=yes/no status=yes/no
toolbar=yes/no location=yes/no resizable=yes/no width=xxx height=xxx
in asp:
you can not control the browser's layout, you can only control browser's layout in html
in VC++:
you can control your window's layout fully!
hnalbert 2000-09-09
  • 打赏
  • 举报
回复
Sorry,I should make me clear.
What I want to do is not a matter concerning VC++,but ASP or HTML.
I mean that I want to display a browser window whose size is just about 1/4
of the top-window,and don't have toolbar,menu,status bar,etc.So,how to use HTML
to construct this kind of browser window?
Thanks!
华南虎哥 2000-09-07
  • 打赏
  • 举报
回复
Is VC++ a Object Oriented? You can setup all the windows attribute at the beginning of application initializing.
Create and animate stunning 3D graphics using the open source Three.js JavaScript library Overview Create and animate beautiful 3D graphics directly in the browser using JavaScript without the need to learn WebGL Learn how to enhance your 3D graphics with light sources, shadows, and advanced materials and textures Each subject is explained using extensive examples that you can directly use and adapt for your own purposes In Detail Three.js is a JavaScript 3D library that offers a wide range of features for creating and displaying stunning 3D computer graphics on a web browser in an intuitive manner using JavaScript without having to deal with the complexity of a WebGL low-level API. Even though WebGL makes it possible to create 3D graphics in the browser without having to use plugins, programming WebGL, however, is hard and complex. This book shows you how Three.js allows you to be independent of browser plugins. If you are an experienced web designer who wants to set the tone for an immersive design environment in your applications then this book is for you. "Learning Three.js: The JavaScript 3D Library for WebGL" is a practical, example-rich book that will help you to master all the features of Three.js. With this book, you’ll learn how to create and animate gorgeous looking 3D scenes directly in your browser utilizing the full potential of WebGL and modern browsers without having to learn WebGL. "Learning Three.js: The JavaScript 3D Library for WebGL" starts by going over the basic concepts and building blocks used in Three.js. From there on, it will expand on these subjects using extensive examples and code samples. This will allow you to learn everything you need to know about Three.js in an easy and interactive manner. Besides the basic concepts, this book will show you how you can create realistic looking 3D objects using materials and textures as well as how to load them from externally created models. You’ll learn how to easily control the camera using the Three.js build-in camera controls so you can fly or walk around the 3D scene you have created. You will also learn how to use morph and bones-based animation and how to add physics to your scene. What you will learn from this book Create standard HTML skeleton and render loops for your Three.js projects Learn how to use the different geometries that are provided by Three.js Apply realistic lighting and shadows to the 3D objects you have created Learn how the different types of materials in Three.js work and how they interact with your 3D objects and the rest of the environment Use the different camera controls provided by Three.js to effortlessly navigate around your 3D scene Work with a particle system to create snow, rain, and galaxy-like effects Import and animate models from external formats such as OBJ, STL, Collada, and much more Create and run animations using either morph targets or bones animations Use advanced textures on materials to create realistic looking 3D objects using bump maps, normal maps, specular maps, and light maps Change the output of Three.js rendered using one of its post processing options Interact directly with WebGL by creating custom vertex and fragment shaders Apply physics to your 3D objects using the Physijs JavaScript library
Book Description Silverlight 4 has the potential to revolutionize the way we build business applications. With its flexibility, web deployment, cross-platform capabilities, rich .NET language support on the client, rich user interface control set, small runtime, and more, it comes close to the perfect platform in which to build business applications. It’s a very powerful technology, and despite its relative youth, it’s moving forward at a rapid pace and is gaining widespread adoption. This book will guide you through the process of designing and developing enterprise-strength business applications in Silverlight 4 and C#. You will learn how to take advantage of the power of Silverlight to develop rich and robust business applications, from getting started to deployment, and everything in between. In particular, this book will serve developers who want to learn how to design business applications, and tackle the issues that you’ll face, and how to resolve them. Chris Anderson demonstrates his experience through a candid presentation of how to approach real-life implementation decisions. With this book in hand, you will Create a fully functional business application in Silverlight Discover how to satisfy all of the common requirements that most business applications share What you’ll learn How to structure your project to ensure a robust and maintainable application How to create user interfaces with XAML and bind controls to data How to communicate securely between the server and the client How to view and maintain data within a Silverlight user interface How to implement standard business application paradigms in Silverlight Who is this book for? This book is for developers experienced in other .NET technologies, such as WinForms or ASP.NET, looking to translate their existing skills to developing business applications with Silverlight. Table of Contents 1.Introduction 2.Getting Started with Sliverlight 3.An Introduction to XAML 4.The Navigation Framework 5.Exposing Data From The Server 6.Implementing Summary Lists 7.Building Data Entry Forms 8.Securing Your Application 9.Styling Your Application 10.Advanced XAML and Data Binding 11.Creating Custom Controls 12.The Model-View-ViewModel (MVVM) Design Pattern 13.Reporting and Printing 14.Out of Browser Mode, and Interacting with the Operating System 15.Application Deployment

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧