![]() |
|
Ik ben op zoek naar de code die ik kan gebruiken voor mijn site die pop-ups mogelijk maakt. Ik bedoel: bij het klikken op een link moet er een klein venstertje geopend worden.
Voorbeeld: PPC Ik heb uiteraard de bron van deze site bekeken maar ik kom er niet uit. Ook heb ik verder gezocht, en ik vind inderdaad wel codes die het mogelijk moeten maken om popups te laten verschijnen. Zoals deze: HERE'S HOW YOU DO IT: 1) Put this code at the top of the page that the window is opening from. You put the code at the top of your page, between the two tags that say <HEAD> and </HEAD> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=400, height=200');"); } // End --> </script> 2) In my example, the pop up window is a page called "http://www.roxydoll12.com/help/popupwindow.html." Make sure you put in the name that you are going to give to the pop up page on your site. 3) Now make your pop up page. Put on it the content you want to show when it pops up. Remember that it will probably be much smaller, so take this into consideration. 4) Put the following in your html code on the main page where you want the visitor to click to make the popup window appear. <A HREF="javascript:popUp('http://www.roxydoll12.com/help/popupwindows.html')">Click Here</A> Note that in place of "click here" you can write in any message you want to be used to open the window. 5) You can change the width and height of the dimensions to make your window bigger or smaller. You can also change the other preferences listed. Mijn probleem: ik heb mijn pagina's lokaal opgeslagen. Bij het invullen in de code van het lokale adres van mijn pagina krijg ik een foutmelding (make sure the path is correct) zodra ik opsla en ga testen of inderdaad mijn pagina in een pop-up venster te voor schijn komt. Iemand raad?
__________________
Er zijn slechts twee manieren om je leven te leven: doen alsof niets een wonder is, en doen alsof alles een wonder is. Ik geloof in de laatste manier.
|
Advertentie | |
|
![]() |
|
![]() |
Lokaal je webpage opslaan voor eigen gebruik/testen kan, maar zodra je op het net wilt zit je toch met een probleem aangezien het in het algemeen de bedoeling is dat niemand anders in je computer kan...
voor een lokaal adres in iexplore gebruik je file://<file hier> ipv http://... Http:// is alleen voor een http server zoals Apache.
__________________
Account had been terminated
|
![]() |
||
Citaat:
![]() Verder ga ik die file stuff even proberen ![]()
__________________
Er zijn slechts twee manieren om je leven te leven: doen alsof niets een wonder is, en doen alsof alles een wonder is. Ik geloof in de laatste manier.
|
![]() |
|
Verwijderd
|
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Titel</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <script language="JavaScript" type="text/JavaScript"> function openpopup(page) { window.open(page, "sasite", "width=640,height=480,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=no,resize=no"); } </script> </head> <body> <p> <a href="javascript:openpopup('popup.html');">link</a> </p> </body> </html> |
![]() |
|
|