MichaelMafiosa
Gebruiker
- Lid geworden
- 11 apr 2007
- Berichten
- 77
Hoi programmeurs,
[JS]$(document).ready(function () {
$('#content input.contact, #contact-form a.contact').click(function (e) {
e.preventDefault();
// load the contact form using ajax
$.get("data/contact.php", function(data){
// create a modal dialog with the data
$(data).modal({
closeHTML: "<a href='#' title='Close' class='modal-close'>x</a>",
position: ["35%",],
overlayId: 'contact-overlay',
containerId: 'contact-container',
onOpen: contact.open,
onShow: contact.show,
onClose: contact.close
});
});
});[/JS]
Ik heb hier een stukje jQuery code. Er staat een "element": 'position: ["35%",],'
dit percentage is alleen om te positioneren van boven naar benenden.
Hoe kan ik ook positioneren van links naar rechts?
Hoop dat jullie zo voldoende info hebben!
Greetz Michael
[JS]$(document).ready(function () {
$('#content input.contact, #contact-form a.contact').click(function (e) {
e.preventDefault();
// load the contact form using ajax
$.get("data/contact.php", function(data){
// create a modal dialog with the data
$(data).modal({
closeHTML: "<a href='#' title='Close' class='modal-close'>x</a>",
position: ["35%",],
overlayId: 'contact-overlay',
containerId: 'contact-container',
onOpen: contact.open,
onShow: contact.show,
onClose: contact.close
});
});
});[/JS]
Ik heb hier een stukje jQuery code. Er staat een "element": 'position: ["35%",],'
dit percentage is alleen om te positioneren van boven naar benenden.
Hoe kan ik ook positioneren van links naar rechts?
Hoop dat jullie zo voldoende info hebben!
Greetz Michael