Quote:
Originally Posted by Ravenstorm
Das geht nicht, sowohl confirm als auch alert und prompt können nur mit Text umgehen.
Möglich wäre das mit einem jQuery UI Element.
[Only registered and activated users can see links. Click Here To Register...]
Um es in jQuery UI zu implementieren:
PHP Code:
<div id="dialog">
<p><a href='youtube.com'>Nutzungsbedingungen</a></p>
</div>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
$(function() {
$( "#dialog" ).dialog();
});
</script>
|
Vielen Dank!
Hab das Modal Confirmation Script genommen und den Code nach meinen Wünschen geändert.
So kann ich auch gleich die Nutzungsbedingungen in das Fenster schreiben! :)
Vielen Dank!!!
Code:
<!DOCTYPE html!>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
$(function() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height:700,
width:1000,
modal: true,
buttons: {
"Ich akzeptiere die Nutzungsbedingungen": function() {
$( this ).dialog( "close" );
},
"Ich akzeptiere die Nutzungsbedingungen NICHT": function() {
history.back();
}
}
});
});
</script>
</head>
<body>
<div id="dialog-confirm" title="Seite betreten">
<p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>These items will be permanently deleted and cannot be recovered. Are you sure?</p>
</div>
</body>
</html>