- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
$(document).ready(function(){
$("#dialog-a, #dialog-b, #dialog-c, #dialog-d, #dialog-e, #dialog-f, #dialog-g, #dialog-h, #dialog-i, #dialog-j, #dialog-k, #dialog-l, #dialog-m, #dialog-n, #dialog-o, #dialog-p, #dialog-q, #dialog-r, #dialog-s, #dialog-t, #dialog-u, #dialog-v, #dialog-w, #dialog-x, #dialog-y, #dialog-z").dialog(
{
autoOpen: false,
buttons: { 'OK': function() { $(this).dialog("close"); } },
modal: true,
width: 200
});
$("#button-a-dialog").click(function (event) {
$("#dialog-a").dialog('open');
event.preventDefault();
});
$("#button-b-dialog").click(function (event) {
$("#dialog-b").dialog('open');
event.preventDefault();
});
$("#button-c-dialog").click(function (event) {
$("#dialog-c").dialog('open');
event.preventDefault();
});
$("#button-d-dialog").click(function (event) {
$("#dialog-d").dialog('open');
event.preventDefault();
});
$("#button-e-dialog").click(function (event) {
$("#dialog-e").dialog('open');
event.preventDefault();
});
$("#button-f-dialog").click(function (event) {
$("#dialog-f").dialog('open');
event.preventDefault();
});
$("#button-g-dialog").click(function (event) {
$("#dialog-g").dialog('open');
event.preventDefault();
});
$("#button-h-dialog").click(function (event) {
$("#dialog-h").dialog('open');
event.preventDefault();
});
$("#button-i-dialog").click(function (event) {
$("#dialog-i").dialog('open');
event.preventDefault();
});
$("#button-j-dialog").click(function (event) {
$("#dialog-j").dialog('open');
event.preventDefault();
});
$("#button-k-dialog").click(function (event) {
$("#dialog-k").dialog('open');
event.preventDefault();
});
$("#button-l-dialog").click(function (event) {
$("#dialog-l").dialog('open');
event.preventDefault();
});
$("#button-m-dialog").click(function (event) {
$("#dialog-m").dialog('open');
event.preventDefault();
});
$("#button-n-dialog").click(function (event) {
$("#dialog-n").dialog('open');
event.preventDefault();
});
$("#button-o-dialog").click(function (event) {
$("#dialog-o").dialog('open');
event.preventDefault();
});
$("#button-p-dialog").click(function (event) {
$("#dialog-p").dialog('open');
event.preventDefault();
});
$("#button-q-dialog").click(function (event) {
$("#dialog-q").dialog('open');
event.preventDefault();
});
$("#button-r-dialog").click(function (event) {
$("#dialog-r").dialog('open');
event.preventDefault();
});
$("#button-s-dialog").click(function (event) {
$("#dialog-s").dialog('open');
event.preventDefault();
});
$("#button-t-dialog").click(function (event) {
$("#dialog-t").dialog('open');
event.preventDefault();
});
$("#button-u-dialog").click(function (event) {
$("#dialog-u").dialog('open');
event.preventDefault();
});
$("#button-v-dialog").click(function (event) {
$("#dialog-v").dialog('open');
Dreyk 16.02.2010 23:08 # +1
nolka4 17.02.2010 08:45 # 0
guest 17.02.2010 14:07 # 0
guest 17.02.2010 17:17 # +1
nolka4 17.02.2010 18:51 # 0
guest 17.02.2010 22:44 # 0
guest 17.02.2010 18:02 # −1
guest 17.02.2010 22:40 # 0
guest 17.02.2010 09:20 # −1
Ваш К.О.
guest 17.02.2010 14:05 # 0
guest 17.02.2010 15:46 # 0
ixth 17.02.2010 22:07 # +0.8
И да, вместо превентдефолта можно заюзать return false?
guest 17.02.2010 23:08 # +0.2
guest 17.02.2010 23:09 # +1
c = String.fromCharCode(i);
$("#button-"+c+"-dialog").click(function (event) {
$("#dialog-"+c).dialog('open');
event.preventDefault();
});
}
не?
guest 19.02.2010 09:25 # 0
guest 17.02.2010 12:03 # +1
pasha 18.02.2010 19:13 # 0
nil 19.02.2010 10:10 # 0
guest 19.02.2010 10:14 # +1