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 116 117 118 119 120
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Author" content="Daniel Hagnoul" />
<meta name="Description" content="Expace de travail du webmestre." />
<meta name="Keywords" content="jquery, javascript, json, html, css, exercices, plugin, documentation" />
<meta http-equiv="Robots" content="none, noindex, nofollow" />
<meta name="Robots" content="none, noindex, nofollow" />
<title>Test de qTip</title>
<style type="text/css">
body {
background-color:#696969;
color:#000000;
font-family:Arial, Helvetica, sans-serif;
font-size:medium;
font-style:normal;
font-weight:normal;
line-height:normal;
letter-spacing:normal;
}
div,p,h1,h2,h3,h4,h5,h6,ul,ol,dl,form,table,img {
margin:0px;
padding:0px;
}
div#conteneur {
width:95%;
margin:12px auto;
padding:6px;
background-color:#FFFFFF;
color:#000000;
border:1px solid red;
font-size:0.8em;
}
form#choisir {
display:block;
margin:12px;
width:300px;
background-color:#FFFFCC;
border:1px solid red;
}
ul#pressroom {
display:block;
margin:12px;
width:300px;
background-color:#99FFCC;
border:1px solid red;
}
</style>
<script type="text/javascript" src="../scripts/jquery.js"></script>
<script type="text/javascript" src="../scripts/jquery.qtip-1.0.0-beta4.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#pays option").each(function(i, item) {
$(item).qtip({
content: item.value,
style: {
width: 200,
padding: 5,
background: '#A2D959',
color: 'black',
textAlign: 'center',
border: {
width: 7,
radius: 5,
color: '#A2D959'
},
name: 'dark',
tip: true
},
position: {
corner: {
target: 'topRight',
tooltip: 'leftMiddle'
}
}
});
});
$("li").each(function(i, item) {
$(item).qtip({
content: $(item).find("a").text(),
style: {
name: 'red',
tip: true
},
position: {
corner: {
target: 'topRight',
tooltip: 'leftMiddle'
}
}
});
});
});
</script>
</head>
<body>
<div id="conteneur">
<form id="choisir">
<select id="pays" name="liste_pays">
<option value="rien" selected="selected">Veuillez choisir</option>
<option value="Autriche">Autriche</option>
<option value="Belgique">Belgique</option>
<option value="Espagne">Espagne</option>
<option value="France">France</option>
</select>
</form>
<div id="affiche"></div>
<ul id="pressroom">
<li id="press1"><a href="#">Xpand2 design NaturalServers.com</a></li>
<li id="press2"><a href="#">Brother Ali fansite in progress</a></li>
<li id="press3"><a href="#">Xpand2 makes XMann identity</a></li>
<li id="press4"><a href="#">Email newsletter for Savo AS</a></li>
<li id="press5"><a href="#">Human-Resource.no launched!</a></li>
</ul>
</div>
</body>
</html> |
Partager