It is currently 19. Aug 2019 06:45  


  User Information

Guest Avatar




Facebook, Google Login
Registration

  Hot Links



  Board Categories








Post new topic Reply to topic  [ 1 post ] 
FollowersFollowers: 0
BookmarksBookmarks: 0
Views: 187

 [JAVA] Werbe Popup 
AuthorMessage
FkP Moderator
User avatar

Joined: 03.2014
Posts: 123
Gender: Male
Highscores: 2
Post [JAVA] Werbe Popup
Der Code öffnet ein Popupfenster, dessen Parameter beliebig einstellbar sind, nach Zeit x und schließt es nach Zeit y.

Code:
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<title>Popup</title>

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
closetime = 10; // Fenster schließen, nach welcher Zeit?
// 0 = nicht schließen

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function doPopup() {
url = "popfenster.html"; // URL + Dateiname des Popupfensters
width = 300; // Breite des Fensters
height = 200; // Höhe des Fensters
delay = 3; // Zeit bevor es aufpoppt
timer = setTimeout("Start(url, width, height)", delay*1000);
}
// -->
</script>
</head>

<BODY OnLoad="doPopup();">

Inhalte der Seite...

</body>
</html>

_________________
Image
Image
Image


7. Apr 2014 13:58
Profile Visit website
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© phpBB® Forum Software | designed by Vjacheslav Trushkin for Free Forums 3 & Free Forums/DivisionCore.
phpBB3 free Forum by UserBoard.org | All Rights Reserved.