Ich habe die Farbbox jQuery Leuchtkasten für meine Lightbox verwendet. Aber darin sollte man auf den Knopf klicken. Ich möchte automatisch Popup immer wenn das Fenster geladen wird.Öffnen Sie jQuery ColorBox automatisch beim Laden der Seite
Mein Code für Lichtbox ist
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="../jquery.colorbox.js"></script>
<script>
$(document).ready(function(){
$(".ajax").colorbox();
});
</script>
</head>
<body>
<h2>Other Content Types</h2>
<p><a class='ajax' href="../content/daisy.jpg" title="Homer Defined">Outside HTML (Ajax)</a></p>
</html>
Jetzt möchte ich auf ein automatisches Popup, wenn das Fenster geladen wird.