You are not logged in.

  • Login

1

Monday, April 10th 2006, 7:42pm

homepage-seite konfigurieren ..

tach ..
habe da mal ein problem und dachte ich wende mich mal an euch ..
ich will eine seite erstellen, sei es mit html oder javascript und diese seite folgendermaßen konfigurieren: größe, navigation- und history-toolbar wech etc. das ganze soll also aussehen wie ein popup-fenster.
es wäre nett, wenn sich vllt einer mit ein bisschen ahnung, meines problems annehmen würde;)

gruß partyb0y

Posts: 3,935

Location: Berlin

Occupation: /dev/random

  • Send private message

2

Monday, April 10th 2006, 7:57pm

Code könnte folgendermassen aussehen:

Source code

1
2
3
4
5
6
7
8
<script type='text/javascript'>
<!--
function openPopup(url,width,height) 
{
	window.open(url, 'popupWindow', 'width=' + width + ', height=' + height + ', scrollbars=yes, resizable=no, menubar=no, location=no, status=no, screenX=100, screenY=100, top=100, left=100');
}
//-->
</script>


Eine Seite kannst du dann halt z.B. aufrufen mit:

Source code

1
<a href="javascript:openPopup('name.html','640','480')">Linkname</a>

oder:

Source code

1
<a href="#" onClick="openPopup('name.html','640','480')">Linkname</a>

This post has been edited 2 times, last edit by "Tsu_G_" (Apr 10th 2006, 8:00pm)