Dga
09/04/2007, 16h50
Avec votre adaptation pour les images attaché sa ma donné une petit idée pour l'ajouté en bbcode, je sais pas si c'est très propre la façon dont j'ai procédè donc tout conseil sont les bienvenue ;)
-Tout d'abord téléchargez Highslide JS (http://vikjavev.no/highslide/) gratuitement.
-Dezipper le .rar puis copier/coller le dossier higslide dans la racine de votre forum
-Ensuite direction le panel d'admin
-Balise BB personnalisées --> Ajouter une nouvelle balise BB
Intitulé: Hightslide
Balise: HS
Code:
Version avec miniature:
<script type="text/javascript" src="highslide/highslide.js"></script>
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 10pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid silver;
}
.highslide-image {
border-bottom: 1px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border-bottom: 1px solid white;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: silver;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
</style>
<a href="{param}" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})">
<img src="{option}" alt="Highslide JS"
title="Click to enlarge" height="80" width="120" /></a>Example:
Utiliser un second paramètre {option}: Oui
Comment ça marche:
L'url de votre image reduit correspond à {option}
L'url de l'image taille réelle correspond à {param}
Ce qui nous donne:
[HS=http://www.monsite.tld/images/thumb.ext]http://www.monsite.tld/images/full.ext
Version sans miniature:
<script type="text/javascript" src="highslide/highslide.js"></script> <script type="text/javascript"> hs.graphicsDir = 'highslide/graphics/'; window.onload = function() { hs.preloadImages(5); } </script> <style type="text/css"> * { font-family: Verdana, Helvetica; font-size: 10pt; } .highslide { cursor: url(highslide/graphics/zoomin.cur), pointer; outline: none; } .highslide img { border: 2px solid gray; } .highslide:hover img { border: 2px solid silver; } .highslide-image { border-bottom: 1px solid white; } .highslide-image-blur { } .highslide-caption { display: none; border-bottom: 1px solid white; font-family: Verdana, Helvetica; font-size: 10pt; padding: 5px; background-color: silver; } .highslide-loading { display: block; color: white; font-size: 9px; font-weight: bold; text-transform: uppercase; text-decoration: none; padding: 3px; border-top: 1px solid white; border-bottom: 1px solid white; background-color: black; /* padding-left: 22px; background-image: url(highslide/graphics/loader.gif); background-repeat: no-repeat; background-position: 3px 1px; */ } a.highslide-credits, a.highslide-credits i { padding: 2px; color: silver; text-decoration: none; font-size: 10px; } a.highslide-credits:hover, a.highslide-credits:hover i { color: white; background-color: gray; } .highslide-display-block { display: block; } .highslide-display-none { display: none; } </style> <a href="{param}" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})"> <img src="{param}" alt="Highslide JS" title="Click to enlarge" height="80" width="120" /></a>
Utilisation:
http://www.monsite.tld/images/full.ext
Version sans miniature avec un texte
<script type="text/javascript" src="highslide/highslide.js"></script> <script type="text/javascript"> hs.graphicsDir = 'highslide/graphics/'; window.onload = function() { hs.preloadImages(5); } </script> <style type="text/css"> * { font-family: Verdana, Helvetica; font-size: 10pt; } .highslide { cursor: url(highslide/graphics/zoomin.cur), pointer; outline: none; } .highslide img { border: 2px solid gray; } .highslide:hover img { border: 2px solid silver; } .highslide-image { border-bottom: 1px solid white; } .highslide-image-blur { } .highslide-caption { display: none; border-bottom: 1px solid white; font-family: Verdana, Helvetica; font-size: 10pt; padding: 5px; background-color: silver; } .highslide-loading { display: block; color: white; font-size: 9px; font-weight: bold; text-transform: uppercase; text-decoration: none; padding: 3px; border-top: 1px solid white; border-bottom: 1px solid white; background-color: black; /* padding-left: 22px; background-image: url(highslide/graphics/loader.gif); background-repeat: no-repeat; background-position: 3px 1px; */ } a.highslide-credits, a.highslide-credits i { padding: 2px; color: silver; text-decoration: none; font-size: 10px; } a.highslide-credits:hover, a.highslide-credits:hover i { color: white; background-color: gray; } .highslide-display-block { display: block; } .highslide-display-none { display: none; } </style> <a href="{param}" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})"> <img src="{param}" alt="Highslide JS" title="Click to enlarge" height="80" width="120" /></a>
<div class='highslide-caption' id='caption1'>
{option}
</div>
Utilisation:
http://www.monsite.tld/images/full.ext
Demo:
http://clan.berserkers.free.fr/forum/showthread.php?goto=newpost&t=314
-Tout d'abord téléchargez Highslide JS (http://vikjavev.no/highslide/) gratuitement.
-Dezipper le .rar puis copier/coller le dossier higslide dans la racine de votre forum
-Ensuite direction le panel d'admin
-Balise BB personnalisées --> Ajouter une nouvelle balise BB
Intitulé: Hightslide
Balise: HS
Code:
Version avec miniature:
<script type="text/javascript" src="highslide/highslide.js"></script>
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 10pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid silver;
}
.highslide-image {
border-bottom: 1px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border-bottom: 1px solid white;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: silver;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
</style>
<a href="{param}" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})">
<img src="{option}" alt="Highslide JS"
title="Click to enlarge" height="80" width="120" /></a>Example:
Utiliser un second paramètre {option}: Oui
Comment ça marche:
L'url de votre image reduit correspond à {option}
L'url de l'image taille réelle correspond à {param}
Ce qui nous donne:
[HS=http://www.monsite.tld/images/thumb.ext]http://www.monsite.tld/images/full.ext
Version sans miniature:
<script type="text/javascript" src="highslide/highslide.js"></script> <script type="text/javascript"> hs.graphicsDir = 'highslide/graphics/'; window.onload = function() { hs.preloadImages(5); } </script> <style type="text/css"> * { font-family: Verdana, Helvetica; font-size: 10pt; } .highslide { cursor: url(highslide/graphics/zoomin.cur), pointer; outline: none; } .highslide img { border: 2px solid gray; } .highslide:hover img { border: 2px solid silver; } .highslide-image { border-bottom: 1px solid white; } .highslide-image-blur { } .highslide-caption { display: none; border-bottom: 1px solid white; font-family: Verdana, Helvetica; font-size: 10pt; padding: 5px; background-color: silver; } .highslide-loading { display: block; color: white; font-size: 9px; font-weight: bold; text-transform: uppercase; text-decoration: none; padding: 3px; border-top: 1px solid white; border-bottom: 1px solid white; background-color: black; /* padding-left: 22px; background-image: url(highslide/graphics/loader.gif); background-repeat: no-repeat; background-position: 3px 1px; */ } a.highslide-credits, a.highslide-credits i { padding: 2px; color: silver; text-decoration: none; font-size: 10px; } a.highslide-credits:hover, a.highslide-credits:hover i { color: white; background-color: gray; } .highslide-display-block { display: block; } .highslide-display-none { display: none; } </style> <a href="{param}" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})"> <img src="{param}" alt="Highslide JS" title="Click to enlarge" height="80" width="120" /></a>
Utilisation:
http://www.monsite.tld/images/full.ext
Version sans miniature avec un texte
<script type="text/javascript" src="highslide/highslide.js"></script> <script type="text/javascript"> hs.graphicsDir = 'highslide/graphics/'; window.onload = function() { hs.preloadImages(5); } </script> <style type="text/css"> * { font-family: Verdana, Helvetica; font-size: 10pt; } .highslide { cursor: url(highslide/graphics/zoomin.cur), pointer; outline: none; } .highslide img { border: 2px solid gray; } .highslide:hover img { border: 2px solid silver; } .highslide-image { border-bottom: 1px solid white; } .highslide-image-blur { } .highslide-caption { display: none; border-bottom: 1px solid white; font-family: Verdana, Helvetica; font-size: 10pt; padding: 5px; background-color: silver; } .highslide-loading { display: block; color: white; font-size: 9px; font-weight: bold; text-transform: uppercase; text-decoration: none; padding: 3px; border-top: 1px solid white; border-bottom: 1px solid white; background-color: black; /* padding-left: 22px; background-image: url(highslide/graphics/loader.gif); background-repeat: no-repeat; background-position: 3px 1px; */ } a.highslide-credits, a.highslide-credits i { padding: 2px; color: silver; text-decoration: none; font-size: 10px; } a.highslide-credits:hover, a.highslide-credits:hover i { color: white; background-color: gray; } .highslide-display-block { display: block; } .highslide-display-none { display: none; } </style> <a href="{param}" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})"> <img src="{param}" alt="Highslide JS" title="Click to enlarge" height="80" width="120" /></a>
<div class='highslide-caption' id='caption1'>
{option}
</div>
Utilisation:
http://www.monsite.tld/images/full.ext
Demo:
http://clan.berserkers.free.fr/forum/showthread.php?goto=newpost&t=314