Avatar billede staz Nybegynder
24. januar 2001 - 12:02 Der er 5 kommentarer og
2 løsninger

Ramme ved nyt vindue

Hvis jeg har et link, der skal åbne i et nyt vindue, og det vindue skal have en bestemt størrelse og ikke må have den composer som sidder i toppen af fx. denne side. Altså der hvor man skriver adresse og det.

Hvordan gør jeg det.

---- Staz ----
Avatar billede donkristiano Nybegynder
24. januar 2001 - 12:08 #1
Kopier dette ind.....

<script language=JavaScript>
function nyt(){
window.open(\'din.htm\',\'din\',\'status=no,menubar=no,toolbar=no,adress=no,width=800,height=600\')
}
</script>

<a href=\"java script:nyt()\">Åbn nyt vindue</a>
Avatar billede parazite Nybegynder
24. januar 2001 - 12:08 #2
Avatar billede redbastard Nybegynder
24. januar 2001 - 12:12 #3
Open Browser Window

Use the Open Browser Window action to open a URL in a new window. You can specify the properties of the new window, including its size, attributes (whether it is resizable, has a menu bar, and so on), and name. For example, you can use this behavior to open a larger image in a separate window when the visitor clicks a thumbnail image; with this behavior, you can make the new window the exact size of the image.

If you specify no attributes for the window, it opens at the size and with the attributes of the window that launched it. Specifying any attribute for the window automatically turns off all other attributes that are not explicitly turned on. For example, if you set no attributes for the window, it might open at 640 x 480 pixels and have a navigation bar, location toolbar, status bar, and menu bar. If you explicitly set the width to 640 and the height to 480 and set no other attributes, the window opens at 640 x 480 pixels and has no navigation bar, no location toolbar, no status bar, no menu bar, no resize handles, and no scroll bars.

To use the Open Browser Window action:

1  Select an object and open the Behaviors panel.
2  Click the Plus (+) button and choose Open Browser Window from the Actions pop-up menu.
3  Click Browse to select a file, or enter the URL you want to display.
4  Set any of the following options:
Window Width specifies the width of the window in pixels.
Window Height specifies the height of the window in pixels.
Navigation Toolbar is the row of browser buttons that includes Back, Forward, Home, and Reload.
Location Toolbar is the row of browser options that includes the location field.
Status Bar is the area at the bottom of the browser window in which messages (such as the load time remaining and the URLs associated with links) appear.
Menu Bar is the area of the browser window (Windows) or the desktop (Macintosh) where menus such as File, Edit, View, Go, and Help appear. You should explicitly set this option if you want visitors to be able to navigate from the new window. If you do not set this option, the user can only close or minimize the window (Windows) or close the window or quit the application (Macintosh) from the new window.
Scrollbars as Needed specifies that scroll bars should appear if the content extends beyond the visible area. If you do not explicitly set this option, scroll bars do not appear. If the Resize Handles option is also turned off, visitors have no easy way of seeing content that extends beyond the original size of the window. (Though they may be able to make the window scroll by dragging off the edge of the window.)
Resize Handles specifies that the user should be able to resize the window, either by dragging the lower right corner of the window or by clicking the maximize button (Windows) or size box (Macintosh) in the upper right corner. If this option is not explicitly set, the resize controls are unavailable and the lower right corner is not draggable.
Window Name is the name of the new window. You should name the new window if you want to target it with links or control it with JavaScript. This name cannot contain spaces or special characters.
5  Click OK.
6  Check that the default event is the one you want.
If it isn\'t, choose another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For pop-up menu.
Avatar billede parazite Nybegynder
24. januar 2001 - 12:15 #4
redbastard : No offence, men hvad skal han bruge det til?
Avatar billede redbastard Nybegynder
24. januar 2001 - 12:20 #5
er det ikke dreamweaver han sidder og bruger eller har jeg misforstøet spørgsmålet??
Avatar billede parazite Nybegynder
24. januar 2001 - 12:23 #6
*LoL* Det er zq da HELT rigtigt, det er DW. Hmm... må få nye briller... *G*
Avatar billede staz Nybegynder
24. januar 2001 - 13:40 #7
Tak for råd, det skal siges det var dejligt, det var et script, så det kan også bruges i GoLife 5.0 såvel som DW
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester