Type de mise à jour : javascipt
Descriptif de la mise à jour :Passage d'une chat-box classique en bas de page a une chat-box latérale
Justification (si besoin) : juste parce que c'est cool !
Copie des éléments de code changés : création d'un nouveau javascipt avec
ce tuto- - Avant : du crée un javascript
- - Après :
- Code:
-
jQuery(document).ready(function() { jQuery('body').append('<table style="position: fixed; bottom: 50px; left: 0px;background-color: #000000;z-index:10000;"><tr><td><div id="panneau" scrolling="no" style="width: 800px; height: 400px; display: none;" marginwidth="0" marginheight="0" frameborder="0"><iframe src="/chatbox/index.forum?page=front" style="width: 800px; height: 400px;" ></iframe></div></td><td style="vertical-align: bottom;"><img src="http://img195.imageshack.us/img195/9120/chatboxouvrir.png" onClick="document.getElementById(\'panneau\').style.display=(this.src==\'http://img195.imageshack.us/img195/9120/chatboxouvrir.png\')?\'block\':\'none\';this.src=(this.src==\'http://img195.imageshack.us/img195/9120/chatboxouvrir.png\')?\'http://img835.imageshack.us/img835/8483/chatboxfermer.png\':\'http://img195.imageshack.us/img195/9120/chatboxouvrir.png\';"/></td></tr></table>'); } );