Goede dag beste leden.
Ik heb op internet een script gevonden voor een soort fancybox. maar als ik het met een $_POST doe dan werkt het wel maar zonder niet
wat is er fout aan onderstaande code
PHP
<?php
if($player['xp'] > $player['nodig']){
echo"
<script class=example type=text/javascript>
$(document).ready(function()
{
$(document.body).qtip(
{
content: {
title: {
text: 'Je bent zojuist een level gestegen!',
button: 'X'
},
url: 'xp.php&nodig=500&beloning=10000'
},
position: {
target: $(document.body), // Position it via the document body...
corner: 'center' // ...at the center of the viewport
},
show: {
when: true,
ready: true,
solo: true
},
hide: '',
style: {
width: 430,
padding: '14px',
title: {'text-shadow': '#000 1px 1px 1px'},
border: {
width: 9,
radius: 9
},
name: 'dark'
},
api: {
beforeShow: function()
{
$('#qtip-blanket-1').fadeIn(this.options.show.effect.length);
},
beforeHide: function()
{
$('#qtip-blanket-1').fadeOut(this.options.hide.effect.length);
}
}
});
$('<div id=qtip-blanket-1>')
.css({
position: 'absolute',
top: $(document).scrollTop(), // Use document scrollTop so it's on-screen even if the window is scrolled
left: 0,
height: $(document).height(), // Span the full document height...
width: '100%', // ...and full width
opacity: 0.7, // Make it slightly transparent
backgroundColor: 'black',
zIndex: 5501 // Make sure the zIndex is below 6000 to keep it below tooltips!
})
.appendTo(document.body) // Append to the document body
.show(); // Hide it initially
});
</script>
";
}
?>
Toon Meer
groetjes arendjee