-
Notifications
You must be signed in to change notification settings - Fork 5
/
estilo.css
115 lines (109 loc) · 3.29 KB
/
estilo.css
1
2
3
4
5
6
7
8
9
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
body
{
background-color : #EEEEEE;
background-image : url("/images/fondotodo.jpg");
}
body.educa
{
background-color : #EEEEEE;
background-image : url("/images/fondoeduca.jpg");
}
body.educa
{
background-color : #EEEEEE;
background-image : url("/images/fondoba.jpg");
}
body.apoyo
{
background-color : #FFFFFF;
}
div.mapa
{
text-align:center;
}
pre
{
border-style:dashed;
border-width:1pt;
background-color: #FFFFEE;
padding: 10pt;
margin: 10 50 10 20;
}
/* <my:misbehavior xmlns:my="http://dean.edwards.name/space" id="noIE"> */
/* version 1.0.4 */
html{behavior:expression(function(element){
runtimeStyle.behavior = "none"; // trash this expression
/* <script type="text/javascript"> */
var path; // the next (external) page
// accoring to ppk at quirksmode.org, these are the appropriate offset parents
var scrollParent = (document.compatMode != "CSS1Compat") ? document.body : document.documentElement;
// catch onclick event for a hyperlink
function intercept() {
// which link was clicked?
var link = event.srcElement;
var innerText = link.alt || link.title;
while (link && link.tagName != "A") link = link.parentElement;
if (!link) return;
innerText = link.innerText || link.alt || link.title || innerText;
// store the new location, we go there later
var href = link.href;
// is this an external link?
if (href.slice(0,4) == "http" && (!location.host || href.indexOf(location.host) == -1)) {
// prevent the link from being activated
event.returnValue = false;
// create the popup
var noIE = document.createElement("iframe");
noIE.id = "noIE_dekko";
// use the path we extracted earlier to locate the html for the popup
noIE.src = "noIE/index.html";
document.body.appendChild(noIE);
// fixed positioning tweak
if (document.body.currentStyle.backgroundImage == "none")
document.body.runtimeStyle.backgroundImage = "url(http:)"; // dummy
document.body.runtimeStyle.backgroundAttachment = "fixed";
// centre the popup
noIE.runtimeStyle.scrollParent = scrollParent;
noIE.runtimeStyle.screenLeft = (scrollParent.clientWidth - noIE.offsetWidth) / 2;
noIE.runtimeStyle.screenTop = (scrollParent.clientHeight - noIE.offsetHeight) / 3;
// force a quick repaint (not sure if this actually does anything)
offscreenBuffering = false;
// show the popup
noIE.style.visibility = "visible";
// preserve the link info
runtimeStyle.noIE = {href:href, innerText:innerText};
}
};
// initialisation...
function init() {
// get the path to this style sheet
for (var i = 0; i < document.styleSheets.length; i++) {
path = document.styleSheets[i].href;
if (path.slice(-8) == "noIE.css") {
// remove the file name
path = path.slice(0, -8);
// stop looping
break;
}
}
// intercept hyperlinks
for (var i = 0; i < document.links.length; i++)
document.links[i].attachEvent("onclick", intercept);
};
if (document.readyState == "complete") init();
else window.attachEvent("onload", init);
/* </script> */
}(this))}
/* <style type="text/css"> */
#noIE_dekko {
/* hide until centered */
visibility: hidden;
position: absolute;
left: expression(runtimeStyle.screenLeft+runtimeStyle.scrollParent.scrollLeft);
top: expression(runtimeStyle.screenTop+runtimeStyle.scrollParent.scrollTop);
width: 480px;
height: 160px;
/* always on top */
z-index: 99;
}
/* </style> */
/* </my:misbehavior> */