Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Suche Zufallsgenerator!

Empfohlene Antworten

Hier mein vorhandenes Skript, leicht modelliert aus SelfHTML :

<script language="JavaScript">

popup = window.open("subpages\\pop_up.htm", "Zweitfenster", "width=250,height=255");

function URL_Zeile()

{

if(popporsche.locationbar.visible == false)

{

popporsche.close();

}

}

</script>

Ein Fenster "poppt" auf mit meinem HTML Dokument:"pop_up.html".

Ich hätte gerne einen Zufallsgenerator, der zufällig ein anderes html Dokuent, z.B. "pop_up2.htm", öffnet.

Kann mir jemand weiterhelfen?

Hi hier n kleiner Zufallzahlengenerator:

function zufall () {

a=Math.random()*6+1;

b=parseInt(a)

alert (B)

}

a "Ergibt deine Zufallszahlen zwischen 1 und 6, deswegn 6+1

b "ParseInt (a) schneidet alle Nachkommazahlen ab damit de ne gerade Zahl bekommst

alert (B) gibt dir die Zahl dann aus !

Lass dir einfach Zufallzahlen von a-b z. B. 1-6 erzeugen und arbeite dann mit ner Switch - Case Anweisung die gewürfelten Fälle ab.

Hoffe das hilft dir n bischn weiter, kannst ja nochma posten wenn de nich klar kommst.

Angel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.